Identity.DefinitionStages.WithAccess Interface
public static interface Identity.DefinitionStages.WithAccess
The stage of the identity definition allowing to set access role (permission) for it to access a resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withAccessTo(Resource resource, BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on an ARM resource. |
abstract
With |
withAccessTo(Resource resource, String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on an ARM resource. |
abstract
With |
withAccessTo(String resourceId, BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on an ARM resource identified by the given resource id. |
abstract
With |
withAccessTo(String resourceId, String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on an ARM resource identified by the given resource id. |
abstract
With |
withAccessToCurrentResourceGroup(BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on the resource group that identity resides. |
abstract
With |
withAccessToCurrentResourceGroup(String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on the resource group that identity resides. |
Method Details
withAccessTo
public abstract Identity.DefinitionStages.WithCreate withAccessTo(Resource resource, BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on an ARM resource. An applications running on an Azure service with this identity can use this permission to access the resource.
Parameters:
Returns:
withAccessTo
public abstract Identity.DefinitionStages.WithCreate withAccessTo(Resource resource, String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on an ARM resource. An applications running on an Azure service with this identity can use this permission to access the resource.
Parameters:
Returns:
withAccessTo
public abstract Identity.DefinitionStages.WithCreate withAccessTo(String resourceId, BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on an ARM resource identified by the given resource id. An applications running on an Azure service with this identity can use this permission to access the resource.
Parameters:
Returns:
withAccessTo
public abstract Identity.DefinitionStages.WithCreate withAccessTo(String resourceId, String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on an ARM resource identified by the given resource id. An applications running on an Azure service with this identity can use this permission to access the resource.
Parameters:
Returns:
withAccessToCurrentResourceGroup
public abstract Identity.DefinitionStages.WithCreate withAccessToCurrentResourceGroup(BuiltInRole role)
Specifies that the identity should have the given access (described by the role) on the resource group that identity resides. An applications running on an Azure service with this identity can use this permission to access the resource group.
Parameters:
Returns:
withAccessToCurrentResourceGroup
public abstract Identity.DefinitionStages.WithCreate withAccessToCurrentResourceGroup(String roleDefinitionId)
Specifies that the identity should have the given access (described by the role definition) on the resource group that identity resides. An applications running on an Azure service with this identity can use this permission to access the resource group.
Parameters:
Returns:
Applies to
Azure SDK for Java