Skip to main content

allowed_connections

Creates, updates, deletes, gets or lists an allowed_connections resource.

Overview

Nameallowed_connections
TypeResource
Idazure.security.allowed_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
locationstringLocation where the resource is stored
propertiesobjectDescribes the allowed traffic between Azure resources
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
getselectsubscriptionId, resourceGroupName, ascLocation, connectionTypeapi-versionGets the list of all possible traffic between resources for the subscription and location, based on connection type.
list_by_home_regionselectsubscriptionId, ascLocationapi-versionGets the list of all possible traffic between resources for the subscription and location.
listselectsubscriptionIdapi-versionGets the list of all possible traffic between resources for the 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
ascLocationstringThe location where ASC stores the data of the subscription. can be retrieved from Get locations
connectionTypestringThe type of allowed connections (Internal, External)
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Gets the list of all possible traffic between resources for the subscription and location, based on connection type.

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.security.allowed_connections
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND ascLocation = '{{ ascLocation }}' -- required
AND connectionType = '{{ connectionType }}' -- required
AND api-version = '{{ api-version }}'
;