DenyAssignments interface

Interface representing a DenyAssignments.

Methods

get(string, string, DenyAssignmentsGetOptionalParams)

Get the specified deny assignment.

getById(string, DenyAssignmentsGetByIdOptionalParams)

Gets a deny assignment by ID.

list(DenyAssignmentsListOptionalParams)

Gets all deny assignments for the subscription.

listForResource(string, string, string, string, string, DenyAssignmentsListForResourceOptionalParams)

Gets deny assignments for a resource.

listForResourceGroup(string, DenyAssignmentsListForResourceGroupOptionalParams)

Gets deny assignments for a resource group.

listForScope(string, DenyAssignmentsListForScopeOptionalParams)

Gets deny assignments for a scope.

Method Details

get(string, string, DenyAssignmentsGetOptionalParams)

Get the specified deny assignment.

function get(scope: string, denyAssignmentId: string, options?: DenyAssignmentsGetOptionalParams): Promise<DenyAssignment>

Parameters

scope

string

The scope of the deny assignment.

denyAssignmentId

string

The ID of the deny assignment to get.

options
DenyAssignmentsGetOptionalParams

The options parameters.

Returns

Promise<DenyAssignment>

getById(string, DenyAssignmentsGetByIdOptionalParams)

Gets a deny assignment by ID.

function getById(denyAssignmentId: string, options?: DenyAssignmentsGetByIdOptionalParams): Promise<DenyAssignment>

Parameters

denyAssignmentId

string

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.

options
DenyAssignmentsGetByIdOptionalParams

The options parameters.

Returns

Promise<DenyAssignment>

list(DenyAssignmentsListOptionalParams)

Gets all deny assignments for the subscription.

function list(options?: DenyAssignmentsListOptionalParams): PagedAsyncIterableIterator<DenyAssignment, DenyAssignment[], PageSettings>

Parameters

options
DenyAssignmentsListOptionalParams

The options parameters.

Returns

listForResource(string, string, string, string, string, DenyAssignmentsListForResourceOptionalParams)

Gets deny assignments for a resource.

function listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: DenyAssignmentsListForResourceOptionalParams): PagedAsyncIterableIterator<DenyAssignment, DenyAssignment[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceProviderNamespace

string

The namespace of the resource provider.

parentResourcePath

string

The parent resource identity.

resourceType

string

The resource type of the resource.

resourceName

string

The name of the resource to get deny assignments for.

options
DenyAssignmentsListForResourceOptionalParams

The options parameters.

Returns

listForResourceGroup(string, DenyAssignmentsListForResourceGroupOptionalParams)

Gets deny assignments for a resource group.

function listForResourceGroup(resourceGroupName: string, options?: DenyAssignmentsListForResourceGroupOptionalParams): PagedAsyncIterableIterator<DenyAssignment, DenyAssignment[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
DenyAssignmentsListForResourceGroupOptionalParams

The options parameters.

Returns

listForScope(string, DenyAssignmentsListForScopeOptionalParams)

Gets deny assignments for a scope.

function listForScope(scope: string, options?: DenyAssignmentsListForScopeOptionalParams): PagedAsyncIterableIterator<DenyAssignment, DenyAssignment[], PageSettings>

Parameters

scope

string

The scope of the deny assignments.

options
DenyAssignmentsListForScopeOptionalParams

The options parameters.

Returns