Skip to main content

network_managers

Creates, updates, deletes, gets or lists a network_managers resource.

Overview

Namenetwork_managers
TypeResource
Idazure.network.network_managers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
descriptionstringA description of the network manager.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
networkManagerScopeAccessesarrayScope Access.
networkManagerScopesobjectScope of Network Manager. Required.
provisioningStatestringThe provisioning state of the network manager resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringUnique identifier for this resource.
systemDataobjectThe system metadata related to this resource.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_manager_name, subscription_idGets the specified Network Manager.
listselectresource_group_name, subscription_id$top, $skipTokenList network managers in a resource group.
list_by_subscriptionselectsubscription_id$top, $skipTokenList all network managers in a subscription.
create_or_updateinsertresource_group_name, network_manager_name, subscription_idCreates or updates a Network Manager.
create_or_updatereplaceresource_group_name, network_manager_name, subscription_idCreates or updates a Network Manager.
deletedeleteresource_group_name, network_manager_name, subscription_idforceDeletes a network manager.
patchexecresource_group_name, network_manager_name, subscription_idPatch 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.

NameDatatypeDescription
network_manager_namestringThe name of the network manager. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringSkipToken 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.
$topintegerAn optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None.
forcebooleanDeletes 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

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
;

INSERT examples

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
;

REPLACE examples

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

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 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 }}"
}'
;