CmdID

CmdID / aws / aws ssm

aws ssm list-inventory-entries

A list of inventory items returned by the request. AWS CLI reference

2 examples 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

Example 1: To view specific inventory type entries for an instance

The following list-inventory-entries example lists the inventory entries for the AWS:Application inventory type on a specific instance.

aws ssm list-inventory-entries --instance-id "i-1234567890abcdef0" --type-name "AWS:Application"Identify
--instance-idThe managed node ID for which you want inventory information.
--type-nameThe type of inventory item for which you want information.
Its output
{
    "TypeName": "AWS:Application",
    "InstanceId": "i-1234567890abcdef0",
    "SchemaVersion": "1.1",
    "CaptureTime": "2019-02-15T12:17:55Z",
    "Entries": [
        {
            "Architecture": "i386",
            "Name": "Amazon SSM Agent",
            "PackageId": "{a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}",
            "Publisher": "Amazon Web Services",
            "Version": "2.3.274.0"
        },
        {
            "Architecture": "x86_64",
            "InstalledTime": "2018-05-03T13:42:34Z",
            "Name": "AmazonCloudWatchAgent",
            "Publisher": "",
            "Version": "1.200442.0"
        }
    ]
}

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

Example 2: To view custom inventory entries assigned to an instance

The following list-inventory-entries example lists a custom inventory entry assigned to an instance.

aws ssm list-inventory-entries --instance-id "i-1234567890abcdef0" --type-name "Custom:RackInfo"Identify
--instance-idThe managed node ID for which you want inventory information.
--type-nameThe type of inventory item for which you want information.
Its output
{
    "TypeName": "Custom:RackInfo",
    "InstanceId": "i-1234567890abcdef0",
    "SchemaVersion": "1.0",
    "CaptureTime": "2021-05-22T10:01:01Z",
    "Entries": [
        {
            "RackLocation": "Bay B/Row C/Rack D/Shelf E"
        }
    ]
}

For more information, see Assigning custom inventory metadata to a managed node in the AWS Systems Manager User Guide.

Options

5 in the AWS CLI reference
--filtersOne or more filters.
--instance-idThe managed node ID for which you want inventory information.
--max-resultsThe maximum number of items to return for this call.
--next-tokenThe token for the next set of items to return.
--type-nameThe type of inventory item for which you want information.