次の方法で共有


Role Assignment Schedules - List For Scope

リソース スコープのロール割り当てスケジュールを取得します。

GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules?api-version=2020-10-01
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules?$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

RoleAssignmentScheduleListResult

OK - ロールの割り当てスケジュールの配列を返します。

Other Status Codes

CloudError

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

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

GetRoleAssignmentSchedulesByScope

要求のサンプル

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

応答のサンプル

{
  "value": [
    {
      "properties": {
        "linkedRoleEligibilityScheduleId": "b1477448-2cc6-4ceb-93b4-54a202a89413",
        "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": "Provisioned",
        "roleAssignmentScheduleRequestId": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentScheduleRequests/fea7a502-9a96-4806-a26f-eee560e52045",
        "startDateTime": "2020-09-09T21:35:27.91Z",
        "endDateTime": "2020-09-10T05:35:17.91Z",
        "memberType": "Direct",
        "createdOn": "2020-09-09T21:35:27.91Z",
        "updatedOn": "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": "c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
      "id": "/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/RoleAssignmentSchedules/c9e264ff-3133-4776-a81a-ebc7c33c8ec6",
      "type": "Microsoft.Authorization/RoleAssignmentSchedules"
    }
  ]
}

定義

名前 説明
AssignmentType

ロールの割り当てスケジュールの割り当ての種類

CloudError

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

CloudErrorBody

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

ExpandedProperties
MemberType

ロールの割り当てスケジュールのメンバーシップの種類

Principal

プリンシパルの詳細

principalType

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

RoleAssignmentSchedule

ロールの割り当てスケジュール

RoleAssignmentScheduleListResult

ロールの割り当てスケジュール一覧の操作の結果。

RoleDefinition

ロール定義の詳細

Scope

リソース スコープの詳細

Status

ロールの割り当てスケジュールの状態。

AssignmentType

ロールの割り当てスケジュールの割り当ての種類

説明
Activated
Assigned

CloudError

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

名前 説明
error

CloudErrorBody

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

CloudErrorBody

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

名前 説明
code

string

エラーの識別子。 コードは不変であり、プログラムで使用することを目的としています。

message

string

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

ExpandedProperties

名前 説明
principal

Principal

プリンシパルの詳細

roleDefinition

RoleDefinition

ロール定義の詳細

scope

Scope

リソース スコープの詳細

MemberType

ロールの割り当てスケジュールのメンバーシップの種類

説明
Direct
Group
Inherited

Principal

プリンシパルの詳細

名前 説明
displayName

string

プリンシパルの表示名

email

string

プリンシパルの電子メール ID

id

string

プリンシパルの ID

type

string

プリンシパルの種類

principalType

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

説明
Device
ForeignGroup
Group
ServicePrincipal
User

RoleAssignmentSchedule

ロールの割り当てスケジュール

名前 説明
id

string

ロールの割り当てスケジュール ID。

name

string

ロールの割り当てスケジュール名。

properties.assignmentType

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)

ロールの割り当てスケジュールが作成された日時

properties.endDateTime

string (date-time)

ロールの割り当てスケジュールの終了日時

properties.expandedProperties

ExpandedProperties

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

properties.linkedRoleEligibilityScheduleId

string

この roleAssignmentSchedule をアクティブ化するために使用された roleEligibilitySchedule の ID

properties.memberType

MemberType

ロールの割り当てスケジュールのメンバーシップの種類

properties.principalId

string

プリンシパル ID。

properties.principalType

principalType

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

properties.roleAssignmentScheduleRequestId

string

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

properties.roleDefinitionId

string

ロール定義 ID。

properties.scope

string

ロールの割り当てスケジュールスコープ。

properties.startDateTime

string (date-time)

ロールの割り当てスケジュール時に DateTime を開始する

properties.status

Status

ロールの割り当てスケジュールの状態。

properties.updatedOn

string (date-time)

ロールの割り当てスケジュールが変更された日時

type

string

ロールの割り当てスケジュールの種類。

RoleAssignmentScheduleListResult

ロールの割り当てスケジュール一覧の操作の結果。

名前 説明
nextLink

string

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

value

RoleAssignmentSchedule[]

ロールの割り当てスケジュールの一覧。

RoleDefinition

ロール定義の詳細

名前 説明
displayName

string

ロール定義の表示名

id

string

ロール定義の ID

type

string

ロール定義の種類

Scope

リソース スコープの詳細

名前 説明
displayName

string

リソースの表示名

id

string

リソースのスコープ ID

type

string

リソースの種類

Status

ロールの割り当てスケジュールの状態。

説明
Accepted
AdminApproved
AdminDenied
Canceled
Denied
Failed
FailedAsResourceIsLocked
Granted
Invalid
PendingAdminDecision
PendingApproval
PendingApprovalProvisioning
PendingEvaluation
PendingExternalProvisioning
PendingProvisioning
PendingRevocation
PendingScheduleCreation
Provisioned
ProvisioningStarted
Revoked
ScheduleCreated
TimedOut