Role Assignment Schedule Instances - List For Scope
获取角色分配计划的角色分配计划实例。
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances?api-version=2020-10-01
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances?$filter={$filter}&api-version=2020-10-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
scope
|
path | True |
string |
角色分配计划的范围。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
|
$filter
|
query |
string |
要应用于作的筛选器。 使用 $filter=atScope() 返回范围或以上的所有角色分配计划。 使用 $filter=principalId eq {id} 返回指定主体范围上方或以下的所有角色分配计划。 使用 $filter=assignedTo('{userId}') 返回用户的所有角色分配计划实例。 使用 $filter=asTarget() 返回为当前用户创建的所有角色分配计划实例。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
确定 - 返回角色分配计划实例的数组。 |
|
| Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
GetRoleAssignmentScheduleInstancesByScope
示例请求
GET https://management.azure.com/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleAssignmentScheduleInstances?$filter=assignedTo('a3bb8764-cb92-4276-9d2a-ca1e895e55ea')&api-version=2020-10-01
示例响应
{
"value": [
{
"properties": {
"originRoleAssignmentId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleAssignments/ed9b8180-cef7-4c77-a63c-b8566ecfc412",
"linkedRoleEligibilityScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413",
"linkedRoleEligibilityScheduleInstanceId": "21e4b59a-0499-4fe0-a3c3-43a3055b773a",
"assignmentType": "Assigned",
"scope": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
"roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
"principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
"principalType": "User",
"status": "Accepted",
"roleAssignmentScheduleId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentSchedules/c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
"startDateTime": "2020-09-09T21:35:27.91Z",
"endDateTime": "2020-09-10T05:35:17.91Z",
"memberType": "Direct",
"createdOn": "2020-09-09T21:35:27.91Z",
"condition": "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'",
"conditionVersion": "1.0",
"expandedProperties": {
"scope": {
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
"displayName": "Pay-As-You-Go",
"type": "subscription"
},
"roleDefinition": {
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/c8d4ff99-41c3-41a8-9f60-21dfdad59608",
"displayName": "Contributor",
"type": "BuiltInRole"
},
"principal": {
"id": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
"displayName": "User Account",
"email": "user@my-tenant.com",
"type": "User"
}
}
},
"name": "ed9b8180-cef7-4c77-a63c-b8566ecfc412",
"id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleInstances/ed9b8180-cef7-4c77-a63c-b8566ecfc412",
"type": "Microsoft.Authorization/RoleAssignmentScheduleInstances"
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Assignment |
角色分配计划的分配类型 |
|
Cloud |
服务的错误响应。 |
|
Cloud |
服务的错误响应。 |
|
Expanded |
|
|
Member |
角色分配计划的成员身份类型 |
| Principal |
主体的详细信息 |
|
principal |
分配的主体 ID 的主体类型。 |
|
Role |
有关当前或即将启动的角色分配计划实例的信息 |
|
Role |
角色分配计划实例列表作结果。 |
|
Role |
角色定义的详细信息 |
| Scope |
资源范围的详细信息 |
| Status |
角色分配计划实例的状态。 |
AssignmentType
角色分配计划的分配类型
| 值 | 说明 |
|---|---|
| Activated | |
| Assigned |
CloudError
服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
服务的错误响应。 |
CloudErrorBody
服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
| message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
ExpandedProperties
| 名称 | 类型 | 说明 |
|---|---|---|
| principal |
主体的详细信息 |
|
| roleDefinition |
角色定义的详细信息 |
|
| scope |
资源范围的详细信息 |
MemberType
角色分配计划的成员身份类型
| 值 | 说明 |
|---|---|
| Inherited | |
| Direct | |
| Group |
Principal
主体的详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| displayName |
string |
主体的显示名称 |
|
string |
主体的电子邮件 ID |
|
| id |
string |
主体的 ID |
| type |
string |
主体的类型 |
principalType
分配的主体 ID 的主体类型。
| 值 | 说明 |
|---|---|
| User | |
| Group | |
| ServicePrincipal | |
| ForeignGroup | |
| Device |
RoleAssignmentScheduleInstance
有关当前或即将启动的角色分配计划实例的信息
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
角色分配计划实例 ID。 |
| name |
string |
角色分配计划实例名称。 |
| properties.assignmentType |
角色分配计划的分配类型 |
|
| properties.condition |
string |
角色分配的条件。 这会限制可分配给的资源。例如:@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase “foo_storage_container” |
| properties.conditionVersion |
string |
条件的版本。 当前接受的值为“2.0” |
| properties.createdOn |
string (date-time) |
创建角色分配计划时的 DateTime |
| properties.endDateTime |
string (date-time) |
角色分配计划实例的 endDateTime |
| properties.expandedProperties |
主体、范围和角色定义的其他属性 |
|
| properties.linkedRoleEligibilityScheduleId |
string |
roleEligibilityScheduleId 用于激活 |
| properties.linkedRoleEligibilityScheduleInstanceId |
string |
roleEligibilityScheduleInstanceId 链接到此 roleAssignmentScheduleInstance |
| properties.memberType |
角色分配计划的成员身份类型 |
|
| properties.originRoleAssignmentId |
string |
外部系统中的角色分配 ID |
| properties.principalId |
string |
主体 ID。 |
| properties.principalType |
分配的主体 ID 的主体类型。 |
|
| properties.roleAssignmentScheduleId |
string |
主角色分配计划的 ID |
| properties.roleDefinitionId |
string |
角色定义 ID。 |
| properties.scope |
string |
角色分配计划范围。 |
| properties.startDateTime |
string (date-time) |
角色分配计划实例的 startDateTime |
| properties.status |
角色分配计划实例的状态。 |
|
| type |
string |
角色分配计划实例类型。 |
RoleAssignmentScheduleInstanceListResult
角色分配计划实例列表作结果。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于获取下一组结果的 URL。 |
| value |
角色分配计划实例列表。 |
RoleDefinition
角色定义的详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| displayName |
string |
角色定义的显示名称 |
| id |
string |
角色定义的 ID |
| type |
string |
角色定义的类型 |
Scope
资源范围的详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| displayName |
string |
资源的显示名称 |
| id |
string |
资源的范围 ID |
| type |
string |
资源的类型 |
Status
角色分配计划实例的状态。
| 值 | 说明 |
|---|---|
| Accepted | |
| PendingEvaluation | |
| Granted | |
| Denied | |
| PendingProvisioning | |
| Provisioned | |
| PendingRevocation | |
| Revoked | |
| Canceled | |
| Failed | |
| PendingApprovalProvisioning | |
| PendingApproval | |
| FailedAsResourceIsLocked | |
| PendingAdminDecision | |
| AdminApproved | |
| AdminDenied | |
| TimedOut | |
| ProvisioningStarted | |
| Invalid | |
| PendingScheduleCreation | |
| ScheduleCreated | |
| PendingExternalProvisioning |