RoleAssignment.DefinitionStages.WithScope Interface
public interface WithScope
The stage of role assignment definition allowing specifying the scope of the assignment.
Method Summary
Modifier and Type | Method and Description |
---|---|
Role |
withResourceGroupScope(ResourceGroup resourceGroup)
Specifies the scope of the role assignment to be a resource group. |
Role |
withResourceScope(Resource resource)
Specifies the scope of the role assignment to be a specific resource. |
Role |
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. |
Role |
withSubscriptionScope(String subscriptionId)
Specifies the scope of the role assignment to be an entire subscription. |
Method Details
withResourceGroupScope
public WithCreate withResourceGroupScope(ResourceGroup resourceGroup)
Specifies the scope of the role assignment to be a resource group.
Parameters:
Returns:
withResourceScope
public WithCreate withResourceScope(Resource resource)
Specifies the scope of the role assignment to be a specific resource.
Parameters:
Returns:
withScope
public WithCreate 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.
Parameters:
Returns:
withSubscriptionScope
public WithCreate withSubscriptionScope(String subscriptionId)
Specifies the scope of the role assignment to be an entire subscription.
Parameters:
Returns:
Applies to
Azure SDK for Java