Server Trust Groups - List By Instance
按实例名称获取服务器信任组。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
managed
|
path | True |
string |
托管实例的名称。 |
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功检索服务器信任组。 |
|
| Other Status Codes |
错误响应: ***
|
示例
List server trust groups by managed instance
示例请求
示例响应
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/Japan East/serverTrustGroups/server-trust-group-test",
"name": "server-trust-group-test",
"properties": {
"groupMembers": [
{
"serverId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1"
},
{
"serverId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-2"
}
],
"trustScopes": [
"GlobalTransactions",
"ServiceBroker"
]
},
"type": "Microsoft.Sql/locations/serverTrustGroups"
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/Japan East/serverTrustGroups/server-trust-group-test-2",
"name": "server-trust-group-test-2",
"properties": {
"groupMembers": [
{
"serverId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-1"
},
{
"serverId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/managedInstance-3"
}
],
"trustScopes": [
"GlobalTransactions",
"ServiceBroker"
]
},
"type": "Microsoft.Sql/locations/serverTrustGroups"
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Server |
服务器信任组的服务器信息。 |
|
Server |
服务器信任组。 |
|
Server |
服务器信任组的列表。 |
|
Trust |
服务器信任组的信任范围。 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ServerInfo
服务器信任组的服务器信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| serverId |
string |
服务器 ID。 |
ServerTrustGroup
服务器信任组。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| name |
string |
资源名称。 |
| properties.groupMembers |
服务器信任组的组成员信息。 |
|
| properties.trustScopes |
服务器信任组的信任范围。 |
|
| type |
string |
资源类型。 |
ServerTrustGroupListResult
服务器信任组的列表。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于检索下一页结果的链接。 |
| value |
结果数组。 |
TrustScope
服务器信任组的信任范围。
| 值 | 说明 |
|---|---|
| GlobalTransactions | |
| ServiceBroker |