{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-interconnects-get-macsec-config-response-schema.json",
  "title": "InterconnectsGetMacsecConfigResponse",
  "description": "Response for the InterconnectsGetMacsecConfigRequest.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-interconnects-api-openapi.yml#/components/schemas/InterconnectsGetMacsecConfigResponse",
  "properties": {
    "result": {
      "$ref": "#/$defs/InterconnectMacsecConfig"
    },
    "etag": {
      "type": "string",
      "description": "end_interface: MixerGetResponseWithEtagBuilder"
    }
  },
  "type": "object",
  "$defs": {
    "InterconnectMacsecConfig": {
      "description": "MACsec configuration information for the Interconnect connection. Contains\nthe generated Connectivity Association Key Name (CKN) and the key (CAK) for\nthis Interconnect connection.",
      "type": "object",
      "properties": {
        "preSharedKeys": {
          "description": "A keychain placeholder describing a set of named key objects\nalong with their start times. A MACsec CKN/CAK is generated for each key in\nthe key chain. Google router automatically picks the key with the most\nrecent startTime when establishing or re-establishing a MACsec secure link.",
          "items": {
            "$ref": "#/$defs/InterconnectMacsecConfigPreSharedKey"
          },
          "type": "array"
        }
      }
    },
    "InterconnectMacsecConfigPreSharedKey": {
      "description": "Describes a pre-shared key used to setup MACsec in static connectivity\nassociation key (CAK) mode.",
      "type": "object",
      "properties": {
        "name": {
          "description": "User provided name for this pre-shared key.",
          "type": "string"
        },
        "cak": {
          "type": "string",
          "description": "An auto-generated Connectivity Association Key (CAK) for this key."
        },
        "ckn": {
          "description": "An auto-generated Connectivity Association Key Name (CKN) for this key.",
          "type": "string"
        },
        "startTime": {
          "type": "string",
          "description": "User provided timestamp on or after which this key is valid."
        }
      }
    }
  }
}