このページの一部またはすべての情報は、S3NS の Trusted Cloud に適用されない場合があります。
Method: organizations.protectedResources.search
指定された Cloud 組織の指定された Cloud KMS CryptoKey
によって保護されているリソースのメタデータを返します。
HTTP リクエスト
GET https://kmsinventory.googleapis.com/v1/{scope=organizations/*}/protectedResources:search
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
scope |
string
必須。組織のリソース名。例: organizations/123
認可には、指定されたリソース scope に対する次の IAM の権限が必要です。
cloudkms.protectedResources.search
|
クエリ パラメータ
パラメータ |
cryptoKey |
string
必須。CryptoKey のリソース名。
認可には、指定されたリソース cryptoKey に対する次の IAM の権限が必要です。
|
pageSize |
integer
返されるリソースの最大数。サービスが返す値はこれよりも少ないことがあります。指定されていない場合は、最大で 500 個のリソースが返されます。最大値は 500 です。500 を超える値は 500 に強制変換されます。
|
pageToken |
string
前回の KeyTrackingService.SearchProtectedResources 呼び出しから受け取ったページトークン。後続のページを取得するにはこれを指定します。 ページ分割を行う場合、KeyTrackingService.SearchProtectedResources に指定する他のすべてのパラメータは、ページトークンを提供した呼び出しと一致する必要があります。
|
resourceTypes[] |
string
省略可。このリクエストが検索するリソースタイプのリスト。空の場合、すべてのトラッキング可能なリソースタイプが検索されます。 正規表現もサポートされています。次に例を示します。
compute.googleapis.com.* は、タイプが compute.googleapis.com で始まるリソースのみに限定します。
.*Image は、タイプが Image で終わるリソースのみに限定します。
.*Image.* は、タイプに Image を含むリソースのみに限定します。
サポートされているすべての正規表現の構文については、RE2 をご覧ください。正規表現が、サポートされているリソースタイプと一致しない場合は、INVALID_ARGUMENT エラーが返されます。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文に次の構造のデータが含まれます。
JSON 表現 |
{
"protectedResources": [
{
object (ProtectedResource )
}
],
"nextPageToken": string
} |
フィールド |
protectedResources[] |
object (ProtectedResource )
このページの保護対象リソース。
|
nextPageToken |
string
次のページを取得するために pageToken として送信できるトークン。このフィールドを省略すると、後続のページはなくなります。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-07-02 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-07-02 UTC。"],[],[],null,["# Method: organizations.protectedResources.search\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.SearchProtectedResourcesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns metadata about the resources protected by the given Cloud KMS [CryptoKey](/kms/docs/reference/inventory/rest/v1/projects.cryptoKeys#CryptoKey) in the given Cloud organization.\n\n### HTTP request\n\n`GET https://kmsinventory.googleapis.com/v1/{scope=organizations/*}/protectedResources:search`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for [KeyTrackingService.SearchProtectedResources](/kms/docs/reference/inventory/rest/v1/organizations.protectedResources/search#google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]