REST Resource: organizations.protectedResources

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 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 used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in cryptoKeyVersion.

createTime

string (Timestamp format)

Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Methods

Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization.