你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Server Trust Groups - List By Location

Lists服务器信任组。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups?api-version=2021-11-01

URI 参数

名称 必需 类型 说明
locationName
path True

string

资源所在的区域的名称。

resourceGroupName
path True

string

包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。

subscriptionId
path True

string

用于标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

响应

名称 类型 说明
200 OK

ServerTrustGroupListResult

已成功检索服务器信任组。

Other Status Codes

错误响应:***

  • 404 ServerTrustGroupNotFound - 不存在具有指定名称的服务器信任组。

  • 404 ResourceNotFound - 找不到请求的资源。

  • 406 ServerTrustGroupMemberIsBusy - 组成员“”{0}不处于有效状态,无法执行服务器信任组操作。

  • 406 ServerTrustGroupInInvalidState - SQL 信任组“”{0}正忙,无法执行请求的操作。

  • 406 ServerTrustGroupMemberNotFound - 找不到组成员“”{0},因此无法执行服务器信任组操作。

示例

List server trust groups

Sample Request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/locations/Japan East/serverTrustGroups?api-version=2021-11-01

Sample Response

{
  "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"
    }
  ]
}

定义

名称 说明
ServerInfo

服务器信任组的服务器信息。

ServerTrustGroup

服务器信任组。

ServerTrustGroupListResult

服务器信任组的列表。

TrustScopes

服务器信任组的信任范围。

ServerInfo

服务器信任组的服务器信息。

名称 类型 说明
serverId

string

服务器 ID。

ServerTrustGroup

服务器信任组。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.groupMembers

ServerInfo[]

服务器信任组的组成员信息。

properties.trustScopes

TrustScopes[]

服务器信任组的信任范围。

type

string

资源类型。

ServerTrustGroupListResult

服务器信任组的列表。

名称 类型 说明
nextLink

string

用于检索下一页结果的链接。

value

ServerTrustGroup[]

结果数组。

TrustScopes

服务器信任组的信任范围。

名称 类型 说明
GlobalTransactions

string

ServiceBroker

string