CmdID

CmdID / aws / aws ssm

aws ssm list-ops-item-related-items

Lists all related-item resources associated with a Systems Manager OpsCenter OpsItem. AWS CLI reference

1 example 4 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 list the related-item resources of an OpsItem

The following list-ops-item-related-items example lists the related-item resources of an OpsItem.

aws ssm list-ops-item-related-items --ops-item-id "oi-f99f2EXAMPLE"Identify
--ops-item-idThe ID of the OpsItem for which you want to list all related-item resources.
Its output
{
    "Summaries": [
        {
            "OpsItemId": "oi-f99f2EXAMPLE",
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "ResourceType": "AWS::SSMIncidents::IncidentRecord",
            "AssociationType": "IsParentOf",
            "ResourceUri": "arn:aws:ssm-incidents::123456789012:incident-record/example-response/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "CreatedBy": {
                "Arn": "arn:aws:sts::123456789012:assumed-role/AWSServiceRoleForIncidentManager/IncidentResponse"
            },
            "CreatedTime": "2021-08-11T18:47:14.994000+00:00",
            "LastModifiedBy": {
                "Arn": "arn:aws:sts::123456789012:assumed-role/AWSServiceRoleForIncidentManager/IncidentResponse"
            },
            "LastModifiedTime": "2021-08-11T18:47:14.994000+00:00"
        }
    ]
}

For more information, see Creating an incident for an OpsItem in the AWS Systems Manager User Guide.

Options

4 in the AWS CLI reference
--filtersOne or more OpsItem filters.
--max-resultsThe maximum number of items to return for this call.
--next-tokenThe token for the next set of items to return.
--ops-item-idThe ID of the OpsItem for which you want to list all related-item resources.