Interface Identity.DefinitionStages.WithAccess
- All Known Subinterfaces:
Identity.Definition
,Identity.DefinitionStages.WithCreate
- Enclosing interface:
- Identity.DefinitionStages
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 TypeMethodDescriptionwithAccessTo
(Resource resource, BuiltInRole role) Specifies that the identity should have the given access (described by the role) on an ARM resource.withAccessTo
(Resource resource, String roleDefinitionId) Specifies that the identity should have the given access (described by the role definition) on an ARM resource.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.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.Specifies that the identity should have the given access (described by the role) on the resource group that identity resides.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
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:
resource
- the resource to accessrole
- access role to assigned to the identity- Returns:
- the next stage of the definition
-
withAccessTo
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:
resourceId
- id of the resource to accessrole
- access role to assigned to the identity- Returns:
- the next stage of the definition
-
withAccessToCurrentResourceGroup
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:
role
- access role to assigned to the identity- Returns:
- the next stage of the definition
-
withAccessTo
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:
resource
- scope of the access represented as ARM resourceroleDefinitionId
- access role definition to assigned to the identity- Returns:
- the next stage of the definition
-
withAccessTo
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:
resourceId
- id of the resource to accessroleDefinitionId
- access role definition to assigned to the identity- Returns:
- the next stage of the definition
-
withAccessToCurrentResourceGroup
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:
roleDefinitionId
- access role definition to assigned to the identity- Returns:
- the next stage of the definition
-