リスト accessPackageResourceRoleScopesList accessPackageResourceRoleScopes
名前空間: microsoft.graphNamespace: microsoft.graph
重要
/beta
Microsoft Graph のバージョンの api は変更される可能性があります。APIs under the /beta
version in Microsoft Graph are subject to change. 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。Use of these APIs in production applications is not supported. API が v2.0 で利用できるかどうかを確認するには、 バージョン セレクターを使用します。To determine whether an API is available in v1.0, use the Version selector.
AccessPackageResourceRoleScopeオブジェクトのリストを使用して、access パッケージを取得します。Retrieve an access package with a list of accessPackageResourceRoleScope objects. 各オブジェクトは、 accessPackageResourceRole と accessPackageResourceScopeにリンクされています。Each object links to an accessPackageResourceRole and an accessPackageResourceScope.
アクセス許可Permissions
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
アクセス許可の種類Permission type | アクセス許可 (特権の小さいものから大きいものへ)Permissions (from least to most privileged) |
---|---|
委任 (職場または学校のアカウント)Delegated (work or school account) | EntitlementManagement、EntitlementManagement のいずれかを取得します。EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
委任 (個人用 Microsoft アカウント)Delegated (personal Microsoft account) | サポートされていません。Not supported. |
アプリケーションApplication | サポートされていません。Not supported. |
HTTP 要求HTTP request
GET /identityGovernance/entitlementManagement/accessPackages/{id}?$expand=accessPackageResourceRoleScopes($expand=accessPackageResourceRole,accessPackageResourceScope)
オプションのクエリ パラメーターOptional query parameters
このメソッドは、OData クエリパラメーターを使用して応答をカスタマイズします。This method uses OData query parameters to customize the response. 一般的な情報については、「OData クエリ パラメーター」を参照してください。For general information, see OData query parameters.
要求ヘッダーRequest headers
名前Name | 説明Description |
---|---|
AuthorizationAuthorization | ベアラー {トークン}。Bearer {token}. 必須です。Required. |
要求本文Request body
このメソッドには、要求本文を指定しません。Do not supply a request body for this method.
応答Response
成功した場合、このメソッドは 200 OK
応答コードと、応答本文でaccessPackageResourceRoleScopeオブジェクトのコレクションを含むaccessPackageを返します。If successful, this method returns a 200 OK
response code and an accessPackage containing a collection of accessPackageResourceRoleScope objects in the response body.
例Examples
要求Request
要求の例を次に示します。The following is an example of the request.
GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackages/{id}?$expand=accessPackageResourceRoleScopes($expand=accessPackageResourceRole,accessPackageResourceScope)
応答Response
応答の例を次に示します。The following is an example of the response.
注: 読みやすくするために、ここに示す応答オブジェクトは短縮されている場合があります。実際の呼び出しからは、すべてのプロパティが返されます。Note: The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
HTTP/1.1 200 OK
Content-type: application/json
{
"id": "933a4822-aed1-445b-9623-62116cd07a39",
"catalogId": "32efb28c-9a7a-446c-986b-ca6528c6669d",
"displayName": "Test Package 9-9",
"description": "Test Package 9-9",
"isHidden": false,
"accessPackageResourceRoleScopes": [
{
"id": "70113acf-4dcb-453f-b517-2394598d974e_22bfd707-ab6f-404f-b0b5-a5e6f5d0ba36",
"createdBy": "alice@contoso.com",
"createdDateTime": "2019-09-09T19:54:14.853Z",
"modifiedBy": "alice@contoso.com",
"modifiedDateTime": "2019-09-09T19:54:14.853Z",
"accessPackageResourceRole": {
"id": "70113acf-4dcb-453f-b517-2394598d974e",
"displayName": "Owner",
"originSystem": "origin-type",
"originId": "Owner_7b56ede0-9b58-40bd-b11e-b3d18fc32698"
},
"accessPackageResourceScope": {
"id": "22bfd707-ab6f-404f-b0b5-a5e6f5d0ba36",
"displayName": "Root",
"description": "Root Scope",
"originId": "7b56ede0-9b58-40bd-b11e-b3d18fc32698",
"originSystem": "origin-type",
"isRootScope": true
}
}
]
}