- [Resource: ProtectedResource](https://docs.cloud.google.com/kms/docs/reference/inventory/rest/v1/organizations.protectedResources#ProtectedResource)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/inventory/rest/v1/organizations.protectedResources#ProtectedResource.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/kms/docs/reference/inventory/rest/v1/organizations.protectedResources#METHODS_SUMMARY)

## Resource: ProtectedResource

Metadata about a resource protected by a Cloud KMS key.

| JSON representation |
|---|
| ``` { "name": string, "project": string, "projectId": string, "cloudProduct": string, "resourceType": string, "location": string, "labels": { string: string, ... }, "cryptoKeyVersion": string, "cryptoKeyVersions": [ string ], "createTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. |
| `project` | `string` Format: `projects/{PROJECT_NUMBER}`. |
| `projectId` | `string` The ID of the project that owns the resource. |
| `cloudProduct` | `string` The Cloud product that owns the resource. Example: `compute` |
| `resourceType` | `string` Example: `compute.googleapis.com/Disk` |
| `location` | `string` Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`. |
| `labels` | `map (key: string, value: string)` A key-value pair of the resource's labels (v1) to their values. |
| `cryptoKeyVersion` | `string` The name of the Cloud KMS [CryptoKeyVersion](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion) used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of cryptoKeyVersions. |
| `cryptoKeyVersions[]` | `string` The names of the Cloud KMS [CryptoKeyVersion](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions#CryptoKeyVersion) used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. The first element of this field is stored in cryptoKeyVersion. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/kms/docs/reference/inventory/rest/v1/organizations.protectedResources/search` | Returns metadata about the resources protected by the given Cloud KMS [CryptoKey](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey) in the given Cloud organization or project. |