virtual_network_links
Creates, updates, deletes, gets or lists a virtual_network_links
resource.
Overview
Name | virtual_network_links |
Type | Resource |
Id | azure.dns_resolver.virtual_network_links |
Fields
- vw_virtual_network_links
- virtual_network_links
Name | Datatype | Description |
---|---|---|
dnsForwardingRulesetName | text | field from the properties object |
etag | text | ETag of the virtual network link. |
metadata | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
virtualNetworkLinkName | text | field from the properties object |
virtual_network | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
etag | string | ETag of the virtual network link. |
properties | object | Represents the properties of a virtual network link. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkName | Gets properties of a virtual network link to a DNS forwarding ruleset. |
list | SELECT | dnsForwardingRulesetName, resourceGroupName, subscriptionId | Lists virtual network links to a DNS forwarding ruleset. |
create_or_update | INSERT | dnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkName, data__properties | Creates or updates a virtual network link to a DNS forwarding ruleset. |
delete | DELETE | dnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkName | Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone. |
update | UPDATE | dnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkName | Updates a virtual network link to a DNS forwarding ruleset. |
SELECT
examples
Lists virtual network links to a DNS forwarding ruleset.
- vw_virtual_network_links
- virtual_network_links
SELECT
dnsForwardingRulesetName,
etag,
metadata,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
virtualNetworkLinkName,
virtual_network
FROM azure.dns_resolver.vw_virtual_network_links
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
properties,
systemData
FROM azure.dns_resolver.virtual_network_links
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new virtual_network_links
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dns_resolver.virtual_network_links (
dnsForwardingRulesetName,
resourceGroupName,
subscriptionId,
virtualNetworkLinkName,
data__properties,
properties
)
SELECT
'{{ dnsForwardingRulesetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkLinkName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: etag
value: string
- name: properties
value:
- name: virtualNetwork
value:
- name: id
value: string
- name: metadata
value: object
- name: provisioningState
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
UPDATE
example
Updates a virtual_network_links
resource.
/*+ update */
UPDATE azure.dns_resolver.virtual_network_links
SET
properties = '{{ properties }}'
WHERE
dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}';
DELETE
example
Deletes the specified virtual_network_links
resource.
/*+ delete */
DELETE FROM azure.dns_resolver.virtual_network_links
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}';