{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-key-list-result-schema.json",
  "title": "KeyListResult",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-listkeys-api-openapi.yml#/components/schemas/KeyListResult",
  "type": "object",
  "properties": {
    "keys": {
      "type": "array",
      "description": "Lists the automation keys.",
      "items": {
        "$ref": "#/$defs/Key"
      },
      "x-ms-identifiers": [
        "KeyName"
      ]
    }
  },
  "$defs": {
    "AutomationKeyName": {
      "type": "string",
      "description": "Automation key name.",
      "enum": [
        "Primary",
        "Secondary"
      ],
      "x-ms-enum": {
        "name": "AutomationKeyName",
        "modelAsString": true,
        "values": [
          {
            "name": "Primary",
            "value": "Primary",
            "description": "Primary"
          },
          {
            "name": "Secondary",
            "value": "Secondary",
            "description": "Secondary"
          }
        ]
      }
    },
    "AutomationKeyPermissions": {
      "type": "string",
      "description": "Automation key permissions.",
      "enum": [
        "Read",
        "Full"
      ],
      "x-ms-enum": {
        "name": "AutomationKeyPermissions",
        "modelAsString": true,
        "values": [
          {
            "name": "Read",
            "value": "Read",
            "description": "Read"
          },
          {
            "name": "Full",
            "value": "Full",
            "description": "Full"
          }
        ]
      }
    },
    "Key": {
      "type": "object",
      "description": "Automation key which is used to register a DSC Node",
      "properties": {
        "KeyName": {
          "$ref": "#/$defs/AutomationKeyName",
          "description": "Automation key name.",
          "readOnly": true
        },
        "Permissions": {
          "$ref": "#/$defs/AutomationKeyPermissions",
          "description": "Automation key permissions.",
          "readOnly": true
        },
        "Value": {
          "type": "string",
          "description": "Value of the Automation Key used for registration.",
          "readOnly": true
        }
      }
    }
  }
}