aws ssm describe-inventory-deletions
Describes a specific delete inventory operation. AWS CLI reference
2 examples 3 options Its page in the AWS CLI reference
Examples
Example 1: To get inventory deletions
The following describe-inventory-deletions example retrieves details for inventory deletion operations.
aws ssm describe-inventory-deletionsIdentifyIts output, shortened
{
"InventoryDeletions": [
{
"DeletionId": "6961492a-8163-44ec-aa1e-01234567850",
"TypeName": "Custom:RackInformation",
"DeletionStartTime": 1550254911.0,
"LastStatus": "InProgress",
"LastStatusMessage": "The Delete is in progress",
"DeletionSummary": {
"TotalCount": 0,
"RemainingCount": 0,
"SummaryItems": []
},
"LastStatusUpdateTime": 1550254911.0
},
{
"DeletionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"TypeName": "Custom:RackInfo",
"DeletionStartTime": 1550254859.0,
"LastStatus": "InProgress",
"LastStatusMessage": "The Delete is in progress",
"DeletionSummary": {
"TotalCount": 1,
"RemainingCount": 1,
"SummaryItems": [
{
"Version": "1.0",
"Count": 1,
"RemainingCount": 1
}
… 6 more linesFor more information, see Working with custom inventory in the AWS Systems Manager User Guide.
Example 2: To get details of a specific inventory deletion
The following describe-inventory-deletions example retrieves details for a specific inventory deletion operation.
aws ssm describe-inventory-deletions --deletion-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--deletion-idSpecify the delete inventory ID for which you want information.Its output
{
"InventoryDeletions": [
{
"DeletionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"TypeName": "Custom:RackInfo",
"DeletionStartTime": 1550254859.0,
"LastStatus": "InProgress",
"LastStatusMessage": "The Delete is in progress",
"DeletionSummary": {
"TotalCount": 1,
"RemainingCount": 1,
"SummaryItems": [
{
"Version": "1.0",
"Count": 1,
"RemainingCount": 1
}
]
},
"LastStatusUpdateTime": 1550254859.0
}
]
}For more information, see Working with custom inventory in the AWS Systems Manager User Guide.
Options
--deletion-idSpecify the delete inventory ID for which you want information.--max-resultsThe maximum number of items to return for this call.--next-tokenA token to start the list.