{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-describe-instance-information-result-schema.json",
  "title": "DescribeInstanceInformationResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-managed-instances-api-openapi.yml#/components/schemas/DescribeInstanceInformationResult",
  "type": "object",
  "properties": {
    "InstanceInformationList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InstanceInformation"
      },
      "description": "The managed node information list."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of items. If there are no additional items to return, the string is empty."
    }
  },
  "$defs": {
    "InstanceAggregatedAssociationOverview": {
      "type": "object",
      "properties": {
        "DetailedStatus": {
          "type": "string",
          "description": "Detailed status information about the aggregated associations."
        },
        "InstanceAssociationStatusAggregatedCount": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "The number of associations for the managed nodes."
        }
      }
    },
    "InstanceInformation": {
      "type": "object",
      "properties": {
        "InstanceId": {
          "type": "string",
          "description": "The managed node ID."
        },
        "PingStatus": {
          "type": "string",
          "enum": [
            "Online",
            "ConnectionLost",
            "Inactive"
          ],
          "description": "Connection status of SSM Agent. The status Inactive has been deprecated and is no longer in use."
        },
        "LastPingDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the agent last pinged the Systems Manager service."
        },
        "AgentVersion": {
          "type": "string",
          "description": "The version of SSM Agent running on your Linux managed node."
        },
        "IsLatestVersion": {
          "type": "boolean",
          "description": "Indicates whether the latest version of SSM Agent is running on your Linux managed node. This field doesn't indicate whether or not the latest version is installed on Windows managed nodes, because some older versions of Windows Server use the EC2Config service to process Systems Manager requests."
        },
        "PlatformType": {
          "type": "string",
          "enum": [
            "Windows",
            "Linux",
            "MacOS"
          ],
          "description": "The operating system platform type."
        },
        "PlatformName": {
          "type": "string",
          "description": "The name of the operating system platform running on your managed node."
        },
        "PlatformVersion": {
          "type": "string",
          "description": "The version of the OS platform running on your managed node."
        },
        "ActivationId": {
          "type": "string",
          "description": "The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was registered."
        },
        "IamRole": {
          "type": "string",
          "description": "The role assigned to an Amazon EC2 instance configured with a Systems Manager Quick Setup host management configuration or the role assigned to an on-premises managed node. This call doesn't return the IAM role for unmanaged Amazon EC2 instances (instances not configured for Systems Manager). To retrieve the role for an unmanaged instance, use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference."
        },
        "RegistrationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the server or VM was registered with Amazon Web Services as a managed node."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "ManagedInstance",
            "EC2Instance"
          ],
          "description": "The type of instance. Instances are either EC2 instances or managed instances."
        },
        "Name": {
          "type": "string",
          "description": "The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName property using the CreateActivation command. It is applied to the managed node by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as explained in How to install SSM Agent on hybrid Linux nodes and How to install SSM Agent on hybrid Windows Server nodes. To retrieve the Name tag of an EC2 instance, use the Amazon EC2 DescribeInstances operation. For information, see Descr"
        },
        "IPAddress": {
          "type": "string",
          "description": "The IP address of the managed node."
        },
        "ComputerName": {
          "type": "string",
          "description": "The fully qualified host name of the managed node."
        },
        "AssociationStatus": {
          "type": "string",
          "description": "The status of the association."
        },
        "LastAssociationExecutionDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the association was last run."
        },
        "LastSuccessfulAssociationExecutionDate": {
          "type": "string",
          "format": "date-time",
          "description": "The last date the association was successfully run."
        },
        "AssociationOverview": {
          "$ref": "#/$defs/InstanceAggregatedAssociationOverview"
        },
        "SourceId": {
          "type": "string",
          "description": "The ID of the source resource. For IoT Greengrass devices, SourceId is the Thing name."
        },
        "SourceType": {
          "type": "string",
          "enum": [
            "AWS::EC2::Instance",
            "AWS::IoT::Thing",
            "AWS::SSM::ManagedInstance",
            "Microsoft.Compute/virtualMachines"
          ],
          "description": "The type of the source resource. For IoT Greengrass devices, SourceType is AWS::IoT::Thing. For Azure Virtual Machines, SourceType is Microsoft.Compute/virtualMachines."
        },
        "SourceLocation": {
          "type": "string",
          "description": "The location of the source resource in the third-party cloud environment."
        }
      }
    }
  }
}