{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-list-agents-response-schema.json",
  "title": "ListAgentsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-agent-api-openapi.yml#/components/schemas/ListAgentsResponse",
  "type": "object",
  "properties": {
    "Agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentListEntry"
      },
      "description": "A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs)."
    },
    "NextToken": {
      "type": "string",
      "description": "The opaque string that indicates the position to begin the next list of results in the response."
    }
  },
  "$defs": {
    "AgentListEntry": {
      "type": "object",
      "properties": {
        "AgentArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a DataSync agent."
        },
        "Name": {
          "type": "string",
          "description": "The name of an agent."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ONLINE",
            "OFFLINE"
          ],
          "description": "The status of an agent. If the status is ONLINE, the agent is configured properly and ready to use. If the status is OFFLINE, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?"
        },
        "Platform": {
          "$ref": "#/$defs/Platform"
        }
      }
    },
    "Platform": {
      "type": "object",
      "properties": {
        "Version": {
          "type": "string",
          "description": "The version of the DataSync agent."
        }
      }
    }
  }
}