Managed Server Dns Aliases - List By Managed Instance
Gets a list of managed server DNS aliases for a managed server.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/dnsAliases?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 list of managed server DNS aliases. |
|
| Other Status Codes |
*** Error Responses: ***
|
Examples
List managed server DNS aliases
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/dns-mi/dnsAliases/dns-alias-mi",
"name": "dns-alias-mi",
"type": "Microsoft.Sql/managedInstances/dnsAliases",
"properties": {
"azureDnsRecord": "dns-alias-mi.abcd1234.database.windows.net",
"publicAzureDnsRecord": "dns-alias-mi.public.abcd1234.database.windows.net"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/dns-mi/dnsAliases/dns-alias-mi-2",
"name": "dns-alias-mi-2",
"type": "Microsoft.Sql/managedInstances/dnsAliases",
"properties": {
"azureDnsRecord": "dns-alias-mi-2.abcd1234.database.windows.net",
"publicAzureDnsRecord": "dns-alias-mi-2.public.abcd1234.database.windows.net"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Managed |
A managed server DNS alias. |
|
Managed |
A list of managed server DNS aliases. |
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. |
ManagedServerDnsAlias
A managed server DNS alias.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID. |
| name |
string |
Resource name. |
| properties.azureDnsRecord |
string |
The fully qualified DNS record for managed server alias |
| properties.publicAzureDnsRecord |
string |
The fully qualified public DNS record for managed server alias |
| type |
string |
Resource type. |
ManagedServerDnsAliasListResult
A list of managed server DNS aliases.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
Link to retrieve next page of results. |
| value |
Array of results. |