crypto_keys_protected_resources_summary
Creates, updates, deletes, gets or lists a crypto_keys_protected_resources_summary
resource.
Overview
Name | crypto_keys_protected_resources_summary |
Type | Resource |
Id | google.kmsinventory.crypto_keys_protected_resources_summary |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary |
cloudProducts | object | The number of resources protected by the key grouped by Cloud product. |
locations | object | The number of resources protected by the key grouped by region. |
projectCount | integer | The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key. |
resourceCount | string | The total number of protected resources in the same Cloud organization as the key. |
resourceTypes | object | The number of resources protected by the key grouped by resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_protected_resources_summary | SELECT | cryptoKeysId, keyRingsId, locationsId, projectsId | Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed. |
SELECT
examples
Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. Only resources within the same Cloud organization as the key will be returned. The project that holds the key must be part of an organization in order for this call to succeed.
SELECT
name,
cloudProducts,
locations,
projectCount,
resourceCount,
resourceTypes
FROM google.kmsinventory.crypto_keys_protected_resources_summary
WHERE cryptoKeysId = '{{ cryptoKeysId }}'
AND keyRingsId = '{{ keyRingsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';