resourceActions の一覧表示
名前空間: microsoft.graph
重要
Microsoft Graph のバージョンの /beta
API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 API が v1.0 で使用できるかどうかを判断するには、 バージョン セレクターを使用します。
unifiedRbacResourceAction オブジェクトとそのプロパティの一覧を取得します。
アクセス許可
この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
アクセス許可の種類 | アクセス許可 (特権の小さいものから大きいものへ) |
---|---|
委任 (職場または学校のアカウント) | RoleManagement.Read.Directory、RoleManagement.Read.All、RoleManagement.ReadWrite.Directory |
委任 (個人用 Microsoft アカウント) | サポートされていません。 |
アプリケーション | RoleManagement.Read.Directory、RoleManagement.Read.All、RoleManagement.ReadWrite.Directory |
HTTP 要求
GET /roleManagement/directory/resourceNamespaces/{unifiedRbacResourceNamespaceId}/resourceActions
オプションのクエリ パラメーター
このメソッドは、応答のカスタマイズに $filter
役立つ、 $select
、 $top
、および $skipToken
OData クエリ パラメーターをサポートします。 このメソッドは、$filter
actionVerb、description、id、および name プロパティの (eq
) をサポートします。 このメソッドは、100 resourceActions の既定のページ サイズを返し、ページングと $skipToken
をサポート$top
します。 一般的な情報については、「OData クエリ パラメーター」を参照してください。
要求ヘッダー
名前 | 説明 |
---|---|
Authorization | ベアラー {token}。 必須です。 |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは応答コードと、応答本文の unifiedRbacResourceAction オブジェクトのコレクションを返200 OK
します。
例
例 1: microsoft.directory アクションを取得する
次の例では、 の識別子を持つリソース名前空間の microsoft.directory
アクションを取得します。
このメソッドは、最大 100 個のアクションを返します。 さらにアクションがある場合は、 を使用 @odata.nextLink
して、次のアクションセットを取得できます。
要求
GET https://graph.microsoft.com/beta/roleManagement/directory/resourceNamespaces/microsoft.directory/resourceActions
応答
注: ここに示す応答オブジェクトは、読みやすさのために短縮されています。
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#roleManagement/directory/resourceNamespaces('microsoft.directory')/resourceActions",
"@odata.nextLink": "https://graph.microsoft.com/beta/roleManagement/directory/resourceNamespaces/microsoft.directory/resourceActions?$skiptoken=bWljcm9z...",
"value": [
{
"actionVerb": null,
"description": "Create and delete access reviews, and read and update all properties of access reviews in Azure AD",
"id": "microsoft.directory-accessReviews-allProperties-allTasks",
"name": "microsoft.directory/accessReviews/allProperties/allTasks",
"resourceScopeId": null
},
{
"actionVerb": "GET",
"description": "Read all properties of access reviews",
"id": "microsoft.directory-accessReviews-allProperties-read-get",
"name": "microsoft.directory/accessReviews/allProperties/read",
"resourceScopeId": null
},
{
"actionVerb": null,
"description": "Manage access reviews of application role assignments in Azure AD",
"id": "microsoft.directory-accessReviews-definitions.applications-allProperties-allTasks",
"name": "microsoft.directory/accessReviews/definitions.applications/allProperties/allTasks",
"resourceScopeId": null
}
]
}
例 2: microsoft.insights アクションを取得する
次の例では、 の識別子を持つリソース名前空間の microsoft.insights
アクションを取得します。
要求
GET https://graph.microsoft.com/beta/roleManagement/directory/resourceNamespaces/microsoft.insights/resourceActions
応答
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#roleManagement/directory/resourceNamespaces('microsoft.insights')/resourceActions",
"value": [
{
"actionVerb": null,
"description": "Manage all aspects of Insights app",
"id": "microsoft.insights-allEntities-allProperties-allTasks",
"name": "microsoft.insights/allEntities/allProperties/allTasks",
"resourceScopeId": null
},
{
"actionVerb": null,
"description": "Read all aspects of Viva Insights",
"id": "microsoft.insights-allEntities-allProperties-read",
"name": "microsoft.insights/allEntities/allProperties/read",
"resourceScopeId": null
},
{
"actionVerb": "PATCH",
"description": "Deploy and manage programs in Insights app",
"id": "microsoft.insights-programs-allProperties-update-patch",
"name": "microsoft.insights/programs/allProperties/update",
"resourceScopeId": null
},
{
"actionVerb": null,
"description": "Run and manage queries in Viva Insights",
"id": "microsoft.insights-queries-allProperties-allTasks",
"name": "microsoft.insights/queries/allProperties/allTasks",
"resourceScopeId": null
},
{
"actionVerb": "GET",
"description": "View reports and dashboard in Insights app",
"id": "microsoft.insights-reports-allProperties-read-get",
"name": "microsoft.insights/reports/allProperties/read",
"resourceScopeId": null
}
]
}