Share via


Role Eligibility Schedules - List For Scope

リソース スコープのロールの適格性スケジュールを取得します。

GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules?api-version=2020-10-01
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules?$filter={$filter}&api-version=2020-10-01

URI パラメーター

名前 / 必須 説明
scope
path True

string

ロールの適格性スケジュールのスコープ。

api-version
query True

string

この操作に使用する API バージョン。

$filter
query

string

操作に適用するフィルター。 スコープ以上のすべてのロール適格性スケジュールを返すには、$filter=atScope() を使用します。 $filter=principalId eq {id} を使用して、指定したプリンシパルのスコープの上または下にあるすべてのロール適格性スケジュールを返します。 $filter=assignedTo('{userId}') を使用して、ユーザーのすべてのロール適格性スケジュールを返します。 現在のユーザーに対して作成されたすべてのロール適格性スケジュールを返すには、$filter=asTarget() を使用します。

応答

名前 説明
200 OK

RoleEligibilityScheduleListResult

OK - ロールの適格性スケジュールの配列を返します。

Other Status Codes

CloudError

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

GetRoleEligibilitySchedulesByScope

Sample Request

GET https://management.azure.com/providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleEligibilitySchedules?$filter=assignedTo('a3bb8764-cb92-4276-9d2a-ca1e895e55ea')&api-version=2020-10-01

Sample Response

{
  "value": [
    {
      "properties": {
        "scope": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f",
        "roleDefinitionId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
        "principalId": "a3bb8764-cb92-4276-9d2a-ca1e895e55ea",
        "principalType": "User",
        "status": "Provisioned",
        "roleEligibilityScheduleRequestId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleEligibilityScheduleRequests/64caffb6-55c0-4deb-a585-68e948ea1ad6",
        "startDateTime": "2020-09-09T21:33:14.557Z",
        "endDateTime": "2021-09-09T21:32:28.49Z",
        "memberType": "Direct",
        "createdOn": "2020-09-09T21:33:06.3Z",
        "updatedOn": "2020-09-09T22:27:00.513Z",
        "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": "b1477448-2cc6-4ceb-93b4-54a202a89413",
      "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleEligibilitySchedules/b1477448-2cc6-4ceb-93b4-54a202a89413",
      "type": "Microsoft.Authorization/RoleEligibilitySchedules"
    }
  ]
}

定義

名前 説明
CloudError

サービスからのエラー応答。

CloudErrorBody

サービスからのエラー応答。

ExpandedProperties
MemberType

ロールの適格性スケジュールのメンバーシップの種類

Principal

プリンシパルの詳細

principalType

割り当てられたプリンシパル ID のプリンシパルの種類。

RoleDefinition

ロール定義の詳細

RoleEligibilitySchedule

ロールの適格性スケジュール

RoleEligibilityScheduleListResult

ロールの適格性スケジュール一覧の操作結果。

Scope

リソース スコープの詳細

Status

ロールの適格性スケジュールの状態。

CloudError

サービスからのエラー応答。

名前 説明
error

CloudErrorBody

サービスからのエラー応答。

CloudErrorBody

サービスからのエラー応答。

名前 説明
code

string

エラーの識別子。 コードは不変であり、プログラムによって使用されることを意図しています。

message

string

ユーザー インターフェイスでの表示に適したエラーを説明するメッセージ。

ExpandedProperties

名前 説明
principal

Principal

プリンシパルの詳細

roleDefinition

RoleDefinition

ロール定義の詳細

scope

Scope

リソース スコープの詳細

MemberType

ロールの適格性スケジュールのメンバーシップの種類

名前 説明
Direct

string

Group

string

Inherited

string

Principal

プリンシパルの詳細

名前 説明
displayName

string

プリンシパルの表示名

email

string

プリンシパルのEmail ID

id

string

プリンシパルの ID

type

string

プリンシパルの種類

principalType

割り当てられたプリンシパル ID のプリンシパルの種類。

名前 説明
Device

string

ForeignGroup

string

Group

string

ServicePrincipal

string

User

string

RoleDefinition

ロール定義の詳細

名前 説明
displayName

string

ロール定義の表示名

id

string

ロール定義の ID

type

string

ロール定義の種類

RoleEligibilitySchedule

ロールの適格性スケジュール

名前 説明
id

string

ロールの適格性スケジュール ID。

name

string

ロールの適格性スケジュール名。

properties.condition

string

ロールの割り当てに関する条件。 これにより、割り当て可能なリソースが制限されます。例: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'

properties.conditionVersion

string

条件のバージョン。 現在受け入れ可能な値は '2.0' です

properties.createdOn

string

ロールの適格性スケジュールが作成された日時

properties.endDateTime

string

ロールの適格性スケジュールの終了日時

properties.expandedProperties

ExpandedProperties

プリンシパル、スコープ、ロール定義の追加プロパティ

properties.memberType

MemberType

ロールの適格性スケジュールのメンバーシップの種類

properties.principalId

string

プリンシパル ID。

properties.principalType

principalType

割り当てられたプリンシパル ID のプリンシパルの種類。

properties.roleDefinitionId

string

ロール定義 ID

properties.roleEligibilityScheduleRequestId

string

この roleAssignmentSchedule の作成に使用される roleEligibilityScheduleRequest の ID

properties.scope

string

ロールの適格性スケジュール スコープ。

properties.startDateTime

string

ロールの適格性スケジュール時に DateTime を開始する

properties.status

Status

ロールの適格性スケジュールの状態。

properties.updatedOn

string

ロールの適格性スケジュールが変更された日時

type

string

ロールの適格性スケジュールの種類。

RoleEligibilityScheduleListResult

ロールの適格性スケジュール一覧の操作結果。

名前 説明
nextLink

string

次の結果セットを取得するために使用する URL。

value

RoleEligibilitySchedule[]

ロールの適格性スケジュールの一覧。

Scope

リソース スコープの詳細

名前 説明
displayName

string

リソースの表示名

id

string

リソースのスコープ ID

type

string

リソースの種類

Status

ロールの適格性スケジュールの状態。

名前 説明
Accepted

string

AdminApproved

string

AdminDenied

string

Canceled

string

Denied

string

Failed

string

FailedAsResourceIsLocked

string

Granted

string

Invalid

string

PendingAdminDecision

string

PendingApproval

string

PendingApprovalProvisioning

string

PendingEvaluation

string

PendingExternalProvisioning

string

PendingProvisioning

string

PendingRevocation

string

PendingScheduleCreation

string

Provisioned

string

ProvisioningStarted

string

Revoked

string

ScheduleCreated

string

TimedOut

string