Get-RdsRoleDefinition
列出可供指派的所有角色。
語法
Get-RdsRoleDefinition
[-RoleDefinitionName <String>]
[-TenantGroupName <String>]
[-TenantName <String>]
[-HostPoolName <String>]
[-AppGroupName <String>]
[<CommonParameters>]
Get-RdsRoleDefinition
[-RoleDefinitionName <String>]
[-TenantGroupName <String>]
[-TenantName <String>]
[-HostPoolName <String>]
[-AppGroupName <String>]
[<CommonParameters>]
Get-RdsRoleDefinition
-Id <Guid>
[-TenantGroupName <String>]
[-TenantName <String>]
[-HostPoolName <String>]
[-AppGroupName <String>]
[<CommonParameters>]
Description
Get-RdsRoleDefinition Cmdlet 會列出所有可供指派的角色。 您可以藉由提供角色定義的名稱或識別碼來查看特定角色。 目前不支援自定義角色。
範例
範例 1:列出所有可用的角色
PS C:\> Get-RdsRoleDefinition
RoleDefinitionName : RDS Owner
Id : 3b14baea-8d82-4610-f5da-08d623dd1cc4
Scope : /
IsCustom : False
Description : Can perform all operations on any RDS objects.
Actions : {*}
AssignableScopes : {}
Item :
RoleDefinitionName : RDS Reader
Id : 2ea11dc0-46e3-4ee8-f5db-08d623dd1cc4
Scope : /
IsCustom : False
Description : Can Read properties of RDS objects
Actions : {*/Read}
AssignableScopes : {}
Item :
RoleDefinitionName : RDS Contributor
Id : f5dc85e1-b94d-48f0-f5dc-08d623dd1cc4
Scope : /
IsCustom : False
Description : Can perform all operations on any RDS object, except role assignment
Actions : {Microsoft.RDS.Resources/*, Microsoft.RDS.Diagnostics/*}
AssignableScopes : {}
Item :
RoleDefinitionName : RDS Operator
Id : 827a079d-aa89-4d0d-f5dd-08d623dd1cc4
Scope : /
IsCustom : False
Description : Can Read diagnostics information.
Actions : {Microsoft.RDS.Diagnostics/Read}
AssignableScopes : {}
Item :
此命令會列出所有可指派的可用角色。
參數
-AppGroupName
應用程式群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-HostPoolName
主機集區的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-Id
特定角色定義的識別碼。
類型: | Guid |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-RoleDefinitionName
角色定義的名稱。 預設角色定義名稱包括:
- RDS 擁有者
- RDS 讀取器
- RDS 參與者
- RDS 運算子
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-TenantGroupName
租使用者群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-TenantName
租用戶的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
System.String
System.Guid
輸出
System.Object