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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
calculatedDateTimestring (date-time)The UTC time on which the allowed connections resource was calculated.
connectableResourcesarrayList of connectable resources.
locationstringLocation where the resource is stored. Required.
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, asc_location, connection_type, subscription_idGets the list of all possible traffic between resources for the subscription and location, based on connection type.
list_by_home_regionselectasc_location, subscription_idGets the list of all possible traffic between resources for the subscription and location.
listselectsubscription_idGets 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
asc_locationstringThe location where ASC stores the data of the subscription. can be retrieved from Get locations. Required.
connection_typestringThe type of allowed connections (Internal, External). Known values are: "Internal" and "External". Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

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

SELECT
id,
name,
calculatedDateTime,
connectableResources,
location,
systemData,
type
FROM azure.security.allowed_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND asc_location = '{{ asc_location }}' -- required
AND connection_type = '{{ connection_type }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;