{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/leaseweb/main/json-schema/leaseweb-credential-list-schema.json",
  "title": "credentialList",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leaseweb-networkequipment-openapi.yml#/components/schemas/credentialList",
  "properties": {
    "_metadata": {
      "$ref": "#/$defs/_metadata"
    },
    "credentials": {
      "description": "An array of credentials",
      "items": {
        "$ref": "#/$defs/credentialWithoutPassword"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "_metadata": {
      "description": "Metadata about the collection",
      "properties": {
        "totalCount": {
          "description": "Total amount of elements in this collection",
          "minimum": 0,
          "type": "integer"
        },
        "offset": {
          "default": 0,
          "description": "The offset used to generate this response",
          "minimum": 0,
          "type": "integer"
        },
        "limit": {
          "default": 5,
          "description": "The limit used to generate this response",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "limit",
        "offset",
        "totalCount"
      ],
      "title": "metadata",
      "type": "object"
    },
    "credentialType": {
      "description": "The type of the credential.",
      "enum": [
        "OPERATING_SYSTEM",
        "RESCUE_MODE",
        "REMOTE_MANAGEMENT",
        "CONTROL_PANEL",
        "SWITCH",
        "PDU",
        "FIREWALL",
        "LOAD_BALANCER",
        "VNC",
        "TEMPORARY_OPERATING_SYSTEM",
        "VPN_USER",
        "COMBINATION_LOCK",
        "DATABASE"
      ],
      "type": "string"
    },
    "credentialWithoutPassword": {
      "properties": {
        "type": {
          "$ref": "#/$defs/credentialType"
        },
        "username": {
          "description": "The username",
          "type": "string"
        }
      },
      "required": [
        "type",
        "username"
      ],
      "title": "credentialWithoutPassword",
      "type": "object"
    }
  }
}