managers
Creates, updates, deletes, gets or lists a managers
resource.
Overview
Name | managers |
Type | Resource |
Id | azure.network.managers |
Fields
- vw_managers
- managers
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
description | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
location | text | Resource location. |
networkManagerName | text | field from the properties object |
network_manager_scope_accesses | text | field from the properties object |
network_manager_scopes | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_guid | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
properties | object | Properties of Managed Network |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkManagerName, resourceGroupName, subscriptionId | Gets the specified Network Manager. |
list | SELECT | resourceGroupName, subscriptionId | List network managers in a resource group. |
list_by_subscription | SELECT | subscriptionId | List all network managers in a subscription. |
create_or_update | INSERT | networkManagerName, resourceGroupName, subscriptionId | Creates or updates a Network Manager. |
delete | DELETE | networkManagerName, resourceGroupName, subscriptionId | Deletes a network manager. |
patch | UPDATE | networkManagerName, resourceGroupName, subscriptionId | Patch NetworkManager. |
SELECT
examples
List all network managers in a subscription.
- vw_managers
- managers
SELECT
id,
name,
description,
etag,
location,
networkManagerName,
network_manager_scope_accesses,
network_manager_scopes,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
system_data,
tags,
type
FROM azure.network.vw_managers
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
location,
properties,
systemData,
tags,
type
FROM azure.network.managers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new managers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.managers (
networkManagerName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: networkManagerScopes
value:
- name: managementGroups
value:
- string
- name: subscriptions
value:
- string
- name: crossTenantScopes
value:
- - name: tenantId
value: string
- name: managementGroups
value:
- string
- name: subscriptions
value:
- string
- name: networkManagerScopeAccesses
value:
- []
- name: provisioningState
value: []
- name: resourceGuid
value: string
- name: etag
value: string
- 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
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a managers
resource.
/*+ update */
UPDATE azure.network.managers
SET
tags = '{{ tags }}'
WHERE
networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified managers
resource.
/*+ delete */
DELETE FROM azure.network.managers
WHERE networkManagerName = '{{ networkManagerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';