Skip to main content

access_control_lists

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

Overview

Nameaccess_control_lists
TypeResource
Idazure_extras.managed_network_fabric.access_control_lists

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.
aclTypestringAccess Control List (ACL) Type. Known values are: "ControlPlaneTrafficPolicy", "Tenant", "Management", and "ControlPlaneAcl". (ControlPlaneTrafficPolicy, Tenant, Management, ControlPlaneAcl)
aclsUrlstringAccess Control List file URL.
administrativeStatestringAdministrative state of the resource. Known values are: "Enabled", "Disabled", "MAT", "RMA", "UnderMaintenance", and "EnabledDegraded". (Enabled, Disabled, MAT, RMA, UnderMaintenance, EnabledDegraded)
annotationstringSwitch configuration description.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
configurationTypestringInput method to configure Access Control List. Required. Known values are: "File" and "Inline". (File, Inline)
controlPlaneAclConfigurationarrayAccess Control List (ACL) configurations.
defaultActionstringDefault action that needs to be applied when no condition is matched. Example: Permit | Deny. Known values are: "Permit" and "Deny". (Permit, Deny)
deviceRolestringDevice Role. Known values are: "CE", "ToR", "NPB", and "ManagementSwitch". (CE, ToR, NPB, ManagementSwitch)
dynamicMatchConfigurationsarrayList of dynamic match configurations.
globalAccessControlListActionsobjectGlobal Access Control List (ACL) actions.
lastOperationobjectDetails of the last operation performed on the resource.
lastSyncedTimestring (date-time)The last synced timestamp.
locationstringThe geo-location where the resource lives. Required.
matchConfigurationsarrayList of match configurations.
networkFabricIdsarrayAssociated Network Fabric Resource IDs.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, access_control_list_name, subscription_idImplements Access Control List GET method.
list_by_resource_groupselectresource_group_name, subscription_idImplements AccessControlLists list by resource group GET method.
list_by_subscriptionselectsubscription_idImplements AccessControlLists list by subscription GET method.
createinsertresource_group_name, access_control_list_name, subscription_id, location, propertiesImplements Access Control List PUT method.
updateupdateresource_group_name, access_control_list_name, subscription_idAPI to update certain properties of the Access Control List resource.
deletedeleteresource_group_name, access_control_list_name, subscription_idImplements Access Control List DELETE method.
update_administrative_stateexecresource_group_name, access_control_list_name, subscription_idImplements the operation to the underlying resources.
resyncexecresource_group_name, access_control_list_name, subscription_idImplements the operation to the underlying resources.
validate_configurationexecresource_group_name, access_control_list_name, subscription_idImplements the operation to the underlying resources.

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
access_control_list_namestringName of the Access Control List. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Implements Access Control List GET method.

SELECT
id,
name,
aclType,
aclsUrl,
administrativeState,
annotation,
configurationState,
configurationType,
controlPlaneAclConfiguration,
defaultAction,
deviceRole,
dynamicMatchConfigurations,
globalAccessControlListActions,
lastOperation,
lastSyncedTime,
location,
matchConfigurations,
networkFabricIds,
provisioningState,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.access_control_lists
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND access_control_list_name = '{{ access_control_list_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements Access Control List PUT method.

INSERT INTO azure_extras.managed_network_fabric.access_control_lists (
tags,
location,
properties,
resource_group_name,
access_control_list_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ access_control_list_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

API to update certain properties of the Access Control List resource.

UPDATE azure_extras.managed_network_fabric.access_control_lists
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND access_control_list_name = '{{ access_control_list_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Implements Access Control List DELETE method.

DELETE FROM azure_extras.managed_network_fabric.access_control_lists
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND access_control_list_name = '{{ access_control_list_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Implements the operation to the underlying resources.

EXEC azure_extras.managed_network_fabric.access_control_lists.update_administrative_state 
@resource_group_name='{{ resource_group_name }}' --required,
@access_control_list_name='{{ access_control_list_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"resourceIds": "{{ resourceIds }}",
"state": "{{ state }}"
}'
;