Skip to main content

subscription_network_manager_connections

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

Overview

Namesubscription_network_manager_connections
TypeResource
Idazure.network.subscription_network_manager_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
connectionStatestringConnection state. Known values are: "Connected", "Pending", "Conflict", "Revoked", and "Rejected". (Connected, Pending, Conflict, Revoked, Rejected)
descriptionstringA description of the network manager connection.
etagstringA unique read-only string that changes whenever the resource is updated.
networkManagerIdstringNetwork Manager Id.
systemDataobjectThe system metadata related to this resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnetwork_manager_connection_name, subscription_idGet a specified connection created by this subscription.
listselectsubscription_id$top, $skipTokenList all network manager connections created by this subscription.
create_or_updateinsertnetwork_manager_connection_name, subscription_idCreate a network manager connection on this subscription.
create_or_updatereplacenetwork_manager_connection_name, subscription_idCreate a network manager connection on this subscription.
deletedeletenetwork_manager_connection_name, subscription_idDelete specified connection created by this subscription.

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_connection_namestringName for the network manager connection. 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.

SELECT examples

Get a specified connection created by this subscription.

SELECT
id,
name,
connectionState,
description,
etag,
networkManagerId,
systemData,
type
FROM azure.network.subscription_network_manager_connections
WHERE network_manager_connection_name = '{{ network_manager_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a network manager connection on this subscription.

INSERT INTO azure.network.subscription_network_manager_connections (
properties,
network_manager_connection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ network_manager_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Create a network manager connection on this subscription.

REPLACE azure.network.subscription_network_manager_connections
SET
properties = '{{ properties }}'
WHERE
network_manager_connection_name = '{{ network_manager_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Delete specified connection created by this subscription.

DELETE FROM azure.network.subscription_network_manager_connections
WHERE network_manager_connection_name = '{{ network_manager_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;