Dns Forwarding Rulesets - List
Lists DNS forwarding rulesets in all resource groups of a subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets?api-version=2020-04-01-preview
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets?api-version=2020-04-01-preview&$top={$top}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
$top
|
query |
integer int32 |
The maximum number of results to return. If not specified, returns up to 100 results. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
List of DNS forwarding rulesets in the subscription. |
|
Other Status Codes |
Default response. It will be deserialized as per the Error definition. |
Examples
List DNS forwarding rulesets by subscription
Sample Request
GET https://management.azure.com/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/providers/Microsoft.Network/dnsForwardingRulesets?api-version=2020-04-01-preview
Sample Response
{
"value": [
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsForwardingRulesets/sampleDnsForwardingRuleset",
"name": "sampleDnsForwardingRuleset",
"type": "Microsoft.Network/dnsForwardingRulesets",
"tags": {
"key1": "value1"
},
"systemData": {
"createdByType": "Application",
"createdAt": "2021-04-03T01:01:01.1075056Z",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-04-04T02:03:01.1974346Z"
},
"location": "westus2",
"etag": "00000000-0000-0000-0000-000000000000",
"properties": {
"dnsResolverOutboundEndpoints": [
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint0"
},
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint1"
}
],
"provisioningState": "Succeeded",
"resourceGuid": "a7e1a32c-498c-401c-a805-5bc3518257b8"
}
},
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsForwardingRulesets/sampleDnsForwardingRuleset1",
"name": "sampleDnsForwardingRuleset",
"type": "Microsoft.Network/dnsForwardingRulesets",
"tags": {
"key1": "value1"
},
"systemData": {
"createdByType": "Application",
"createdAt": "2021-04-04T01:01:01.1075056Z",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-04-05T02:03:01.1974346Z"
},
"location": "westus2",
"etag": "00000000-0000-0000-0000-000000000000",
"properties": {
"dnsResolverOutboundEndpoints": [
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint2"
},
{
"id": "/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint3"
}
],
"provisioningState": "Succeeded",
"resourceGuid": "a7e1a32c-498c-401c-a805-5bc3518257b8"
}
}
],
"nextLink": "https://management.azure.com/api/mresolver/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/providers/Microsoft.Network/dnsForwardingRulesets?$skipToken=skipToken&api-version=2020-04-01-preview"
}
Definitions
Name | Description |
---|---|
Cloud |
An error message |
Cloud |
The body of an error message |
created |
The type of identity that created the resource. |
Dns |
Describes a DNS forwarding ruleset. |
Dns |
The response to an enumeration operation on DNS forwarding rulesets. |
Provisioning |
The current provisioning state of the resource. |
Sub |
Reference to another ARM resource. |
system |
Metadata pertaining to creation and last modification of the resource. |
CloudError
An error message
Name | Type | Description |
---|---|---|
error |
The error message body |
CloudErrorBody
The body of an error message
Name | Type | Description |
---|---|---|
code |
string |
The error code |
details |
Extra error information |
|
message |
string |
A description of what caused the error |
target |
string |
The target resource of the error message |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DnsForwardingRuleset
Describes a DNS forwarding ruleset.
Name | Type | Description |
---|---|---|
etag |
string |
ETag of the DNS forwarding ruleset. |
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.dnsResolverOutboundEndpoints |
The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. |
|
properties.provisioningState |
The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this value will be ignored. |
|
properties.resourceGuid |
string |
The resourceGuid for the DNS forwarding ruleset. |
systemData |
Metadata pertaining to creation and last modification of the resource. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
DnsForwardingRulesetListResult
The response to an enumeration operation on DNS forwarding rulesets.
Name | Type | Description |
---|---|---|
nextLink |
string |
The continuation token for the next page of results. |
value |
Enumeration of the DNS forwarding rulesets. |
ProvisioningState
The current provisioning state of the resource.
Name | Type | Description |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
SubResource
Reference to another ARM resource.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |