{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-kms/json-schema/google-cloud-kms-google-cloud-kms-inventory-v1-search-protected-resources-response-schema.json",
  "title": "GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse",
  "description": "Response message for KeyTrackingService.SearchProtectedResources.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-kms-kmsinventory-organizations-api-openapi.yml#/components/schemas/GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse",
  "properties": {
    "protectedResources": {
      "type": "array",
      "description": "Protected resources for this page.",
      "items": {
        "$ref": "#/$defs/GoogleCloudKmsInventoryV1ProtectedResource"
      }
    },
    "nextPageToken": {
      "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudKmsInventoryV1ProtectedResource": {
      "properties": {
        "resourceType": {
          "description": "Example: `compute.googleapis.com/Disk`",
          "type": "string"
        },
        "createTime": {
          "description": "Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.",
          "readOnly": true,
          "type": "string",
          "format": "google-datetime"
        },
        "name": {
          "description": "The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.",
          "type": "string"
        },
        "cryptoKeyVersion": {
          "description": "The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) 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 crypto_key_versions.",
          "type": "string"
        },
        "location": {
          "description": "Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.",
          "type": "string"
        },
        "cloudProduct": {
          "description": "The Cloud product that owns the resource. Example: `compute`",
          "type": "string"
        },
        "projectId": {
          "type": "string",
          "description": "The ID of the project that owns the resource."
        },
        "cryptoKeyVersions": {
          "items": {
            "type": "string"
          },
          "description": "The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) 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 crypto_key_version.",
          "type": "array"
        },
        "project": {
          "description": "Format: `projects/{PROJECT_NUMBER}`.",
          "type": "string"
        },
        "labels": {
          "description": "A key-value pair of the resource's labels (v1) to their values.",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        }
      },
      "type": "object",
      "description": "Metadata about a resource protected by a Cloud KMS key."
    }
  }
}