Skip to main content

managers

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

Overview

Namemanagers
TypeResource
Idazure.network.managers

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextResource location.
networkManagerNametextfield from the properties object
network_manager_scope_accessestextfield from the properties object
network_manager_scopestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkManagerName, resourceGroupName, subscriptionIdGets the specified Network Manager.
listSELECTresourceGroupName, subscriptionIdList network managers in a resource group.
list_by_subscriptionSELECTsubscriptionIdList all network managers in a subscription.
create_or_updateINSERTnetworkManagerName, resourceGroupName, subscriptionIdCreates or updates a Network Manager.
deleteDELETEnetworkManagerName, resourceGroupName, subscriptionIdDeletes a network manager.
patchUPDATEnetworkManagerName, resourceGroupName, subscriptionIdPatch NetworkManager.

SELECT examples

List all network managers in a subscription.

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

INSERT example

Use the following StackQL query and manifest file to create a new managers resource.

/*+ create */
INSERT INTO azure.network.managers (
networkManagerName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ networkManagerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

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