Otorisasi memerlukan izin IAM berikut pada resource cryptoKey yang ditentukan:
cloudkms.cryptoKeys.get
pageSize
integer
Jumlah maksimum resource yang akan ditampilkan. Layanan mungkin menampilkan lebih sedikit dari nilai ini. Jika tidak ditentukan, maksimal 500 resource akan ditampilkan. Nilai maksimum adalah 500; nilai di atas 500 akan dikonversi menjadi 500.
Saat melakukan penomoran halaman, semua parameter lain yang disediakan ke KeyTrackingService.SearchProtectedResources harus cocok dengan panggilan yang disediakan token halaman.
resourceTypes[]
string
Opsional. Daftar jenis resource yang ditelusuri permintaan ini. Jika kosong, sistem akan menelusuri semua jenis resource yang dapat dilacak.
Ekspresi reguler juga didukung. Contoh:
compute.googleapis.com.* snapshot resource yang jenisnya dimulai dengan compute.googleapis.com.
.*Image snapshot resource yang jenisnya diakhiri dengan Image.
.*Image.* snapshot resource yang jenisnya berisi Image.
Lihat RE2 untuk semua sintaksis ekspresi reguler yang didukung. Jika ekspresi reguler tidak cocok dengan jenis resource yang didukung, error INVALID_ARGUMENT akan ditampilkan.
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-04-24 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/)."]]