ArmAuthorizationModelFactory.AccessReviewScope Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Authorization.Models.AccessReviewScope AccessReviewScope(Azure.Core.ResourceIdentifier resourceId = default, string roleDefinitionId = default, Azure.ResourceManager.Authorization.Models.AccessReviewScopePrincipalType? principalType = default, Azure.ResourceManager.Authorization.Models.AccessReviewScopeAssignmentState? assignmentState = default, TimeSpan? inactiveDuration = default, bool? isExpandNestedMemberships = default, bool? isIncludeInheritedAccess = default, bool? isIncludeAccessBelowResource = default, Azure.Core.ResourceIdentifier excludeResourceId = default, string excludeRoleDefinitionId = default);
static member AccessReviewScope : Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Authorization.Models.AccessReviewScopePrincipalType> * Nullable<Azure.ResourceManager.Authorization.Models.AccessReviewScopeAssignmentState> * Nullable<TimeSpan> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * string -> Azure.ResourceManager.Authorization.Models.AccessReviewScope
Public Shared Function AccessReviewScope (Optional resourceId As ResourceIdentifier = Nothing, Optional roleDefinitionId As String = Nothing, Optional principalType As Nullable(Of AccessReviewScopePrincipalType) = Nothing, Optional assignmentState As Nullable(Of AccessReviewScopeAssignmentState) = Nothing, Optional inactiveDuration As Nullable(Of TimeSpan) = Nothing, Optional isExpandNestedMemberships As Nullable(Of Boolean) = Nothing, Optional isIncludeInheritedAccess As Nullable(Of Boolean) = Nothing, Optional isIncludeAccessBelowResource As Nullable(Of Boolean) = Nothing, Optional excludeResourceId As ResourceIdentifier = Nothing, Optional excludeRoleDefinitionId As String = Nothing) As AccessReviewScope
Parameters
- resourceId
- ResourceIdentifier
ResourceId in which this review is getting created.
- roleDefinitionId
- String
This is used to indicate the role being reviewed.
- principalType
- Nullable<AccessReviewScopePrincipalType>
The identity type user/servicePrincipal to review.
- assignmentState
- Nullable<AccessReviewScopeAssignmentState>
The role assignment state eligible/active to review.
Duration users are inactive for. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
Flag to indicate whether to expand nested memberships or not.
Flag to indicate whether to expand nested memberships or not.
Flag to indicate whether to expand nested memberships or not.
- excludeResourceId
- ResourceIdentifier
This is used to indicate the resource id(s) to exclude.
- excludeRoleDefinitionId
- String
This is used to indicate the role definition id(s) to exclude.
Returns
A new AccessReviewScope instance for mocking.