{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stackit/json-schema/stackit-key-pair-list-response-schema.json",
  "title": "KeyPairListResponse",
  "description": "SSH keypair list response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-keypairs-api-openapi.yml#/components/schemas/KeyPairListResponse",
  "properties": {
    "items": {
      "$ref": "#/$defs/KeyPairList"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "CreatedAt": {
      "description": "Date-time when resource was created.",
      "format": "date-time",
      "type": "string"
    },
    "KeyPairFingerprint": {
      "description": "Object that represents an SSH keypair MD5 fingerprint.",
      "maxLength": 47,
      "minLength": 47,
      "pattern": "^([0-9A-Fa-f]{2}[:-]){15}([0-9A-Fa-f]{2})$",
      "type": "string"
    },
    "KeyPairList": {
      "description": "A list of SSH keypairs.",
      "items": {
        "$ref": "#/$defs/Keypair"
      },
      "type": "array"
    },
    "KeyPairName": {
      "description": "The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-].",
      "maxLength": 127,
      "pattern": "^[A-Za-z0-9@._-]*$",
      "type": "string"
    },
    "Keypair": {
      "description": "Object that represents the public key of an SSH keypair and its name.",
      "properties": {
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/CreatedAt"
            }
          ],
          "readOnly": true
        },
        "fingerprint": {
          "allOf": [
            {
              "$ref": "#/$defs/KeyPairFingerprint"
            }
          ],
          "readOnly": true
        },
        "labels": {
          "$ref": "#/$defs/Labels"
        },
        "name": {
          "$ref": "#/$defs/KeyPairName"
        },
        "publicKey": {
          "$ref": "#/$defs/SSHPublicKey"
        },
        "updatedAt": {
          "allOf": [
            {
              "$ref": "#/$defs/UpdatedAt"
            }
          ],
          "readOnly": true
        }
      },
      "required": [
        "publicKey"
      ],
      "type": "object"
    },
    "Labels": {
      "description": "Object that represents the labels as key-value pairs of a resource.\nKey constraints: - May contain an optional domain prefix separated by a slash (`/`). - Domain prefix must be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 and 63 characters. - Must begin and end with an alphanumerical character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between. - Keys starting with the prefix `stackit-` or having a domain prefix of `stackit.cloud` (including its subdomains, e.g., `*.stackit.cloud/`) are reserved for system use.\nValue constraints: - Must be less than or equal to 63 characters long (can be empty). - If not empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics in between.\nA resource can have a maximum of 64 labels. Reserved labels are excluded from this count. Providing a `null` value for a key will remove that key.",
      "format": "json",
      "type": "object"
    },
    "SSHPublicKey": {
      "description": "Object that represents a public SSH key.",
      "pattern": "^(ssh-rsa|ssh-ed25519|ecdsa-sha2-nistp(256|384|521))\\s+[A-Za-z0-9+/]+[=]{0,3}(\\s+.+)?\\s*$",
      "type": "string"
    },
    "UpdatedAt": {
      "description": "Date-time when resource was last updated.",
      "format": "date-time",
      "type": "string"
    }
  }
}