azure.mgmt.authorization.v2018_07_01_preview.operations module¶
Bases:
objectWarning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient’sdeny_assignmentsattribute.Get the specified deny assignment.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DenyAssignment or the result of cls(response)
- Return type
- Raises
Gets a deny assignment by ID.
- Parameters
deny_assignment_id (str) – The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DenyAssignment or the result of cls(response)
- Return type
- Raises
Gets all deny assignments for the subscription.
- Parameters
filter (str) – The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq ‘{name}’ to search deny assignments by name at specified scope. Use $filter=principalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned. Default value is None.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either DenyAssignment or the result of cls(response)
- Return type
- Raises
Gets deny assignments for a resource.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
resource_provider_namespace (str) – The namespace of the resource provider. Required.
parent_resource_path (str) – The parent resource identity. Required.
resource_type (str) – The resource type of the resource. Required.
resource_name (str) – The name of the resource to get deny assignments for. Required.
filter (str) – The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq ‘{name}’ to search deny assignments by name at specified scope. Use $filter=principalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned. Default value is None.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either DenyAssignment or the result of cls(response)
- Return type
- Raises
Gets deny assignments for a resource group.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.
filter (str) – The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq ‘{name}’ to search deny assignments by name at specified scope. Use $filter=principalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned. Default value is None.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either DenyAssignment or the result of cls(response)
- Return type
- Raises
Gets deny assignments for a scope.
- Parameters
scope (str) – The scope of the deny assignments. Required.
filter (str) – The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq ‘{name}’ to search deny assignments by name at specified scope. Use $filter=principalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq ‘{id}’ to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned. Default value is None.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either DenyAssignment or the result of cls(response)
- Return type
- Raises