CmdID

CmdID / aws / aws ssm

aws ssm get-inventory

Query inventory information. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To view your inventory

The following get-inventory example gets the custom metadata for your inventory.

aws ssm get-inventoryIdentify
Its output
{
    "Entities": [
        {
            "Data": {
                "AWS:InstanceInformation": {
                    "Content": [
                        {
                            "ComputerName": "ip-172-31-44-222.us-west-2.compute.internal",
                            "InstanceId": "i-0cb2b964d3e14fd9f",
                            "IpAddress": "172.31.44.222",
                            "AgentType": "amazon-ssm-agent",
                            "ResourceType": "EC2Instance",
                            "AgentVersion": "2.0.672.0",
                            "PlatformVersion": "2016.09",
                            "PlatformName": "Amazon Linux AMI",
                            "PlatformType": "Linux"
                        }
                    ],
                    "TypeName": "AWS:InstanceInformation",
                    "SchemaVersion": "1.0",
                    "CaptureTime": "2017-02-20T18:03:58Z"
                }
            },
            "Id": "i-0cb2b964d3e14fd9f"
        }
    ]
}

For more information, see AWS Systems Manager Inventory in the AWS Systems Manager User Guide.

Options

5 in the AWS CLI reference
--aggregatorsReturns counts of inventory types based on one or more expressions.
--filtersOne or more filters.
--max-resultsThe maximum number of items to return for this call.
--next-tokenThe token for the next set of items to return.
--result-attributesThe list of inventory item types to return.