デプロイ: testIamPermissions
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
承認が必要
指定したリソースに対して呼び出し元が持っている権限を返します。
リクエスト
HTTP リクエスト
POST https://www.googleapis.com/deploymentmanager/v2/projects/project/global/deployments/resource/testIamPermissions
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
project |
string |
このリクエストのプロジェクト ID。
|
resource |
string |
このリクエストのリソースの名前。
|
承認
このリクエストには、次の 1 つ以上のスコープの承認が必要です(認証と承認についてはこちらをご覧ください)。
スコープ |
https://www.googleapis.com/auth/cloud-platform |
https://www.googleapis.com/auth/ndev.cloudman |
リクエストの本文
リクエストの本文には、以下の構造を使用してデータを指定してください:
{
"permissions": [
string
]
}
プロパティ名 |
値 |
説明 |
注 |
permissions[] |
list |
'resource' で確認する権限のセット。ワイルドカード付きの権限( '*' や 'storage.*' など)は使用できません。 |
|
レスポンス
成功すると、このメソッドによって次の構造を含むレスポンスの本文が返されます。
{
"permissions": [
string
]
}
プロパティ名 |
値 |
説明 |
注 |
permissions[] |
list |
呼び出し元が許可されている `TestPermissionsRequest.permissions` のサブセット。 |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2017-01-26 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"わかりにくい"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"情報またはサンプルコードが不正確"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"必要な情報 / サンプルがない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]