managed_networks
Creates, updates, deletes, gets or lists a managed_networks
resource.
Overview
Name | managed_networks |
Type | Resource |
Id | azure.managed_network.managed_networks |
Fields
- vw_managed_networks
- managed_networks
Name | Datatype | Description |
---|---|---|
connectivity | text | field from the properties object |
etag | text | field from the properties object |
managedNetworkName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scope | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of Managed Network |
tags | object | Resource tags |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managedNetworkName, resourceGroupName, subscriptionId | The Get ManagedNetworks operation gets a Managed Network Resource, specified by the resource group and Managed Network name |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | The ListByResourceGroup ManagedNetwork operation retrieves all the Managed Network resources in a resource group in a paginated format. |
list_by_subscription | SELECT | subscriptionId | The ListBySubscription ManagedNetwork operation retrieves all the Managed Network Resources in the current subscription in a paginated format. |
create_or_update | INSERT | managedNetworkName, resourceGroupName, subscriptionId | The Put ManagedNetworks operation creates/updates a Managed Network Resource, specified by resource group and Managed Network name |
delete | DELETE | managedNetworkName, resourceGroupName, subscriptionId | The Delete ManagedNetworks operation deletes a Managed Network Resource, specified by the resource group and Managed Network name |
update | UPDATE | managedNetworkName, resourceGroupName, subscriptionId | Updates the specified Managed Network resource tags. |
SELECT
examples
The ListBySubscription ManagedNetwork operation retrieves all the Managed Network Resources in the current subscription in a paginated format.
- vw_managed_networks
- managed_networks
SELECT
connectivity,
etag,
managedNetworkName,
provisioning_state,
resourceGroupName,
scope,
subscriptionId,
tags
FROM azure.managed_network.vw_managed_networks
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
properties,
tags
FROM azure.managed_network.managed_networks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new managed_networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network.managed_networks (
managedNetworkName,
resourceGroupName,
subscriptionId,
properties,
tags
)
SELECT
'{{ managedNetworkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: scope
value:
- name: managementGroups
value:
- - name: id
value: string
- name: subscriptions
value:
- - name: id
value: string
- name: virtualNetworks
value:
- - name: id
value: string
- name: subnets
value:
- - name: id
value: string
- name: connectivity
value:
- name: groups
value:
- - name: properties
value:
- name: managementGroups
value:
- - name: id
value: string
- name: subscriptions
value:
- - name: id
value: string
- name: virtualNetworks
value:
- - name: id
value: string
- name: subnets
value:
- - name: id
value: string
- name: provisioningState
value: string
- name: etag
value: string
- name: kind
value: string
- name: peerings
value:
- - name: properties
value:
- name: type
value: string
- name: hub
value:
- name: id
value: string
- name: spokes
value:
- - name: id
value: string
- name: mesh
value:
- - name: id
value: string
- name: provisioningState
value: string
- name: etag
value: string
- name: provisioningState
value: string
- name: etag
value: string
- name: tags
value: object
UPDATE
example
Updates a managed_networks
resource.
/*+ update */
UPDATE azure.managed_network.managed_networks
SET
tags = '{{ tags }}'
WHERE
managedNetworkName = '{{ managedNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified managed_networks
resource.
/*+ delete */
DELETE FROM azure.managed_network.managed_networks
WHERE managedNetworkName = '{{ managedNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';