Skip to main content

network_security_perimeter_links

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

Overview

Namenetwork_security_perimeter_links
TypeResource
Idazure.network.network_security_perimeter_links

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
autoApprovedRemotePerimeterResourceIdstringPerimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
descriptionstringA message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
localInboundProfilesarrayLocal Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
localOutboundProfilesarrayLocal Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
provisioningStatestringThe provisioning state of the NSP Link resource. Known values are: "Succeeded", "Creating", "Updating", "Deleting", "Accepted", "Failed", and "WaitForRemoteCompletion". (Succeeded, Creating, Updating, Deleting, Accepted, Failed, WaitForRemoteCompletion)
remoteInboundProfilesarrayRemote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
remoteOutboundProfilesarrayRemote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
remotePerimeterGuidstringRemote NSP Guid with which the link gets created.
remotePerimeterLocationstringRemote NSP location with which the link gets created.
statusstringThe NSP link state. Known values are: "Approved", "Pending", "Rejected", and "Disconnected". (Approved, Pending, Rejected, Disconnected)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_security_perimeter_name, link_name, subscription_idGets the specified NSP link resource.
listselectresource_group_name, network_security_perimeter_name, subscription_id$top, $skipTokenLists the NSP Link resources in the specified network security perimeter.
create_or_updateinsertresource_group_name, network_security_perimeter_name, link_name, subscription_idCreates or updates NSP link resource.
create_or_updatereplaceresource_group_name, network_security_perimeter_name, link_name, subscription_idCreates or updates NSP link resource.
deletedeleteresource_group_name, network_security_perimeter_name, link_name, subscription_idDeletes an NSP Link resource.

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_security_perimeter_namestringThe name of the network security perimeter. 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.

SELECT examples

Gets the specified NSP link resource.

SELECT
id,
name,
autoApprovedRemotePerimeterResourceId,
description,
localInboundProfiles,
localOutboundProfiles,
provisioningState,
remoteInboundProfiles,
remoteOutboundProfiles,
remotePerimeterGuid,
remotePerimeterLocation,
status,
systemData,
type
FROM azure.network.network_security_perimeter_links
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_security_perimeter_name = '{{ network_security_perimeter_name }}' -- required
AND link_name = '{{ link_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates NSP link resource.

INSERT INTO azure.network.network_security_perimeter_links (
properties,
resource_group_name,
network_security_perimeter_name,
link_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_security_perimeter_name }}',
'{{ link_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates NSP link resource.

REPLACE azure.network.network_security_perimeter_links
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_security_perimeter_name = '{{ network_security_perimeter_name }}' --required
AND link_name = '{{ link_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an NSP Link resource.

DELETE FROM azure.network.network_security_perimeter_links
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_security_perimeter_name = '{{ network_security_perimeter_name }}' --required
AND link_name = '{{ link_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;