Bagikan melalui


RoleAssignment Constructors

Definition

Overloads

RoleAssignment()

Initializes a new instance of the RoleAssignment class.

RoleAssignment(String, String, String, String, String, String, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String)

Initializes a new instance of the RoleAssignment class.

RoleAssignment()

Initializes a new instance of the RoleAssignment class.

public RoleAssignment ();
Public Sub New ()

Applies to

RoleAssignment(String, String, String, String, String, String, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String)

Initializes a new instance of the RoleAssignment class.

public RoleAssignment (string roleDefinitionId, string principalId, string id = default, string name = default, string type = default, string scope = default, string principalType = default, string description = default, string condition = default, string conditionVersion = default, DateTime? createdOn = default, DateTime? updatedOn = default, string createdBy = default, string updatedBy = default, string delegatedManagedIdentityResourceId = default);
new Microsoft.Azure.Management.Authorization.Models.RoleAssignment : string * string * string * string * string * string * string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * string * string * string -> Microsoft.Azure.Management.Authorization.Models.RoleAssignment
Public Sub New (roleDefinitionId As String, principalId As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional scope As String = Nothing, Optional principalType As String = Nothing, Optional description As String = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTime) = Nothing, Optional updatedOn As Nullable(Of DateTime) = Nothing, Optional createdBy As String = Nothing, Optional updatedBy As String = Nothing, Optional delegatedManagedIdentityResourceId As String = Nothing)

Parameters

roleDefinitionId
String

The role definition ID.

principalId
String

The principal ID.

id
String

The role assignment ID.

name
String

The role assignment name.

type
String

The role assignment type.

scope
String

The role assignment scope.

principalType
String

The principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'

description
String

Description of role assignment

condition
String

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'

conditionVersion
String

Version of the condition. Currently accepted value is '2.0'

createdOn
Nullable<DateTime>

Time it was created

updatedOn
Nullable<DateTime>

Time it was updated

createdBy
String

Id of the user who created the assignment

updatedBy
String

Id of the user who updated the assignment

delegatedManagedIdentityResourceId
String

Id of the delegated managed identity resource

Applies to