informationProtectionLabel: listLabels
名前空間: microsoft.graph
重要
Microsoft Graph のバージョンの /beta API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 API が v1.0 で使用できるかどうかを確認するには、 バージョン セレクターを使用します。
ユーザーまたは組織が使用できる 情報保護ラベル のコレクションを取得します。
アクセス許可
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
| アクセス許可の種類 | アクセス許可 (特権の小さいものから大きいものへ) |
|---|---|
| 委任 (職場または学校のアカウント) | InformationProtectionPolicy.Read |
| 委任 (個人用 Microsoft アカウント) | サポートされていません。 |
| アプリケーション | InformationProtectionPolicy.Read.All |
HTTP 要求
サインインしているユーザーまたは指定したユーザーが使用できるラベルを取得するには、
GET /me/informationProtection/policy/labels
GET /users/{id | user-principal-name}/informationProtection/policy/labels
組織で使用できるラベルを取得するには:
GET /informationProtection/policy/labels
省略可能なクエリ パラメーター
また、このメソッドは応答をカスタマイズするための一部の OData クエリ パラメーターをサポートします。 一般的な情報については、「OData クエリ パラメーター」を参照してください。
要求ヘッダー
| 名前 | 説明 |
|---|---|
| Authorization | ベアラー {token}。必須。 |
| User-Agent | 呼び出し元のアプリケーションの名前とバージョンについて説明します。 詳細は Azure Information Protection Analytics に表示されます。 推奨される形式は ApplicationName/Version です。 省略可能。 |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは 200 OK 応答コードと応答本文の informationProtectionLabel オブジェクトのコレクションを返します。
例
要求
要求の例を次に示します。
GET https://graph.microsoft.com/beta/me/informationProtection/policy/labels
応答
応答の例を次に示します。
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
Content-type: application/json
User-agent: ContosoLOBApp/1.0
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users('1e36d926-d716-4197-ba86-a6e18eb910b9')/informationProtection/policy/labels",
"value": [
{
"id": "3a80e051-487c-40d4-b491-73ad25d997e6",
"name": "General",
"description": "Consult Contoso data labeling policy for more details.",
"color": "",
"sensitivity": 1,
"tooltip": "Data classified as Contoso General.",
"isActive": true,
"parent": null
},
{
"id": "4662f9a3-dd50-4a20-b984-a7be82e0e79c",
"name": "Confidential",
"description": "Consult Contoso data labeling policy for more details.",
"color": "",
"sensitivity": 2,
"tooltip": "Data classificed as Contoso Confidential.",
"isActive": true,
"parent": null
},
{
"id": "4b18e8bb-b4a5-4695-85d0-8ae23ef27892",
"name": "Highly Confidential",
"description": "Consult Contoso data labeling policy for more details.",
"color": "",
"sensitivity": 3,
"tooltip": "Data classified as Contoso Highly Confidential.",
"isActive": true,
"parent": null
},
{
"id": "a20cbae4-0c05-448c-b342-cb6c618d0957",
"name": "Contoso Full Time Employees",
"description": "Consult Contoso data labeling policy for more details.",
"color": "",
"sensitivity": 4,
"tooltip": "Data classified as Contoso Highly Confidential for Contoso Full Time Employees",
"isActive": true,
"parent": {
"id": "4b18e8bb-b4a5-4695-85d0-8ae23ef27892",
"name": "Highly Confidential",
"description": "Consult Contoso data labeling policy for more details.",
"color": "",
"sensitivity": 3,
"tooltip": "Data classified as Contoso Highly Confidential.",
"isActive": true,
"parent": null
}
}
]
}
フィードバック
フィードバックの送信と表示