RoleAssignment.DefinitionStages.WithScope 接口

定义

The stage of role assignment definition allowing specifying the scope of the assignment.

public interface WithScope

方法

withResourceGroupScope(ResourceGroup resourceGroup)

Specifies the scope of the role assignment to be a resource group.

withResourceScope(Resource resource)

Specifies the scope of the role assignment to be a specific resource.

withScope(String scope)

Specifies the scope of the role assignment. The scope is usually the ID of a subscription, a resource group, a resource, etc.

withSubscriptionScope(String subscriptionId)

Specifies the scope of the role assignment to be an entire subscription.

适用于