network_managers
Creates, updates, deletes, gets or lists a network_managers resource.
Overview
| Name | network_managers |
| Type | Resource |
| Id | azure.network.network_managers |
Fields
The following fields are returned by SELECT queries:
- get
- list
- list_by_subscription
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
description | string | A description of the network manager. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
networkManagerScopeAccesses | array | Scope Access. |
networkManagerScopes | object | Scope of Network Manager. Required. |
provisioningState | string | The provisioning state of the network manager resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | Unique identifier for this resource. |
systemData | object | The system metadata related to this resource. |
tags | object | Resource tags. |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
description | string | A description of the network manager. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
networkManagerScopeAccesses | array | Scope Access. |
networkManagerScopes | object | Scope of Network Manager. Required. |
provisioningState | string | The provisioning state of the network manager resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | Unique identifier for this resource. |
systemData | object | The system metadata related to this resource. |
tags | object | Resource tags. |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
description | string | A description of the network manager. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
networkManagerScopeAccesses | array | Scope Access. |
networkManagerScopes | object | Scope of Network Manager. Required. |
provisioningState | string | The provisioning state of the network manager resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
resourceGuid | string | Unique identifier for this resource. |
systemData | object | The system metadata related to this resource. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, network_manager_name, subscription_id | Gets the specified Network Manager. | |
list | select | resource_group_name, subscription_id | $top, $skipToken | List network managers in a resource group. |
list_by_subscription | select | subscription_id | $top, $skipToken | List all network managers in a subscription. |
create_or_update | insert | resource_group_name, network_manager_name, subscription_id | Creates or updates a Network Manager. | |
create_or_update | replace | resource_group_name, network_manager_name, subscription_id | Creates or updates a Network Manager. | |
delete | delete | resource_group_name, network_manager_name, subscription_id | force | Deletes a network manager. |
patch | exec | resource_group_name, network_manager_name, subscription_id | Patch NetworkManager. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
network_manager_name | string | The name of the network manager. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$skipToken | string | SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. |
$top | integer | An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. |
force | boolean | Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. |
SELECT examples
- get
- list
- list_by_subscription
Gets the specified Network Manager.
SELECT
id,
name,
description,
etag,
location,
networkManagerScopeAccesses,
networkManagerScopes,
provisioningState,
resourceGuid,
systemData,
tags,
type
FROM azure.network.network_managers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_manager_name = '{{ network_manager_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List network managers in a resource group.
SELECT
id,
name,
description,
etag,
location,
networkManagerScopeAccesses,
networkManagerScopes,
provisioningState,
resourceGuid,
systemData,
tags,
type
FROM azure.network.network_managers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;
List all network managers in a subscription.
SELECT
id,
name,
description,
etag,
location,
networkManagerScopeAccesses,
networkManagerScopes,
provisioningState,
resourceGuid,
systemData,
tags,
type
FROM azure.network.network_managers
WHERE subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
AND $skipToken = '{{ $skipToken }}'
;
INSERT examples
- create_or_update
- Manifest
Creates or updates a Network Manager.
INSERT INTO azure.network.network_managers (
id,
location,
tags,
properties,
resource_group_name,
network_manager_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_manager_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: network_managers
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the network_managers resource.
- name: network_manager_name
value: "{{ network_manager_name }}"
description: Required parameter for the network_managers resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the network_managers resource.
- name: id
value: "{{ id }}"
description: |
Resource ID.
- name: location
value: "{{ location }}"
description: |
Resource location.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: properties
description: |
The network manager properties.
value:
description: "{{ description }}"
networkManagerScopes:
managementGroups:
- "{{ managementGroups }}"
subscriptions:
- "{{ subscriptions }}"
crossTenantScopes:
- tenantId: "{{ tenantId }}"
managementGroups: "{{ managementGroups }}"
subscriptions: "{{ subscriptions }}"
networkManagerScopeAccesses:
- "{{ networkManagerScopeAccesses }}"
provisioningState: "{{ provisioningState }}"
resourceGuid: "{{ resourceGuid }}"
REPLACE examples
- create_or_update
Creates or updates a Network Manager.
REPLACE azure.network.network_managers
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;
DELETE examples
- delete
Deletes a network manager.
DELETE FROM azure.network.network_managers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;
Lifecycle Methods
- patch
Patch NetworkManager.
EXEC azure.network.network_managers.patch
@resource_group_name='{{ resource_group_name }}' --required,
@network_manager_name='{{ network_manager_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;