Server Trust Groups - List By Instance
Gets a server trust groups by instance name.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups?api-version=2023-08-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
managed
|
path | True |
string |
The name of the managed instance. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved the server trust groups. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
List server trust groups by managed instance
Sample request
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"
}
]
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Server |
Server info for the server trust group. |
Server |
A server trust group. |
Server |
A list of server trust groups. |
Trust |
Trust scope of the server trust group. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ServerInfo
Server info for the server trust group.
Name | Type | Description |
---|---|---|
serverId |
string |
Server Id. |
ServerTrustGroup
A server trust group.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.groupMembers |
Group members information for the server trust group. |
|
properties.trustScopes |
Trust scope of the server trust group. |
|
type |
string |
Resource type. |
ServerTrustGroupListResult
A list of server trust groups.
Name | Type | Description |
---|---|---|
nextLink |
string |
Link to retrieve next page of results. |
value |
Array of results. |
TrustScope
Trust scope of the server trust group.
Value | Description |
---|---|
GlobalTransactions | |
ServiceBroker |