{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-register-agent-request-schema.json",
  "title": "RegisterAgentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-agent-api-openapi.yml#/components/schemas/RegisterAgentRequest",
  "type": "object",
  "properties": {
    "discoveryData": {
      "$ref": "#/$defs/DiscoveryData"
    },
    "agentDetails": {
      "$ref": "#/$defs/AgentDetails"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags assigned to an Agent."
    }
  },
  "required": [
    "discoveryData",
    "agentDetails"
  ],
  "$defs": {
    "AgentDetails": {
      "type": "object",
      "properties": {
        "agentVersion": {
          "type": "string",
          "description": "Current agent version."
        },
        "instanceId": {
          "type": "string",
          "description": "ID of EC2 instance agent is running on."
        },
        "instanceType": {
          "type": "string",
          "description": "Type of EC2 instance agent is running on."
        },
        "reservedCpuCores": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "This field should not be used. Use agentCpuCores instead. List of CPU cores reserved for processes other than the agent running on the EC2 instance."
        },
        "agentCpuCores": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "List of CPU cores reserved for the agent."
        },
        "componentVersions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentVersion"
          },
          "description": "List of versions being used by agent components."
        }
      },
      "required": [
        "agentVersion",
        "instanceId",
        "instanceType",
        "componentVersions"
      ]
    },
    "ComponentVersion": {
      "type": "object",
      "properties": {
        "componentType": {
          "type": "string",
          "description": "Component type."
        },
        "versions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of versions."
        }
      },
      "required": [
        "componentType",
        "versions"
      ]
    },
    "DiscoveryData": {
      "type": "object",
      "properties": {
        "publicIpAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of public IP addresses to associate with agent."
        },
        "privateIpAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of private IP addresses to associate with agent."
        },
        "capabilityArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of capabilities to associate with agent."
        }
      },
      "required": [
        "publicIpAddresses",
        "privateIpAddresses",
        "capabilityArns"
      ]
    }
  }
}