DisassociateOpsItemRelatedItem - AWS Systems Manager

DisassociateOpsItemRelatedItem

Deletes the association between an OpsItem and a related item. For example, this API operation can delete an Incident Manager incident from an OpsItem. Incident Manager is a capability of AWS Systems Manager.

Request Syntax

{ "AssociationId": "string", "OpsItemId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

AssociationId

The ID of the association for which you want to delete an association between the OpsItem and a related item.

Type: String

Required: Yes

OpsItemId

The ID of the OpsItem for which you want to delete an association between the OpsItem and a related item.

Type: String

Pattern: ^(oi)-[0-9a-f]{12}$

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

An error occurred on the server side.

HTTP Status Code: 500

OpsItemConflictException

The specified OpsItem is in the process of being deleted.

HTTP Status Code: 400

OpsItemInvalidParameterException

A specified parameter argument isn't valid. Verify the available arguments and try again.

HTTP Status Code: 400

OpsItemNotFoundException

The specified OpsItem ID doesn't exist. Verify the ID and try again.

HTTP Status Code: 400

OpsItemRelatedItemAssociationNotFoundException

The association wasn't found using the parameters you specified in the call. Verify the information and try again.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DisassociateOpsItemRelatedItem.

Sample Request

POST / HTTP/1.1 Host: ssm.us-east-1.amazonaws.com Accept-Encoding: identity X-Amz-Target: AmazonSSM.DisassociateOpsItemRelatedItem Content-Type: application/x-amz-json-1.1 User-Agent: aws-cli/2.2.4 Python/3.8.8 Linux/5.4.129-72.229.amzn2int.x86_64 exe/x86_64.amzn.2 prompt/off command/ssm.disassociate-ops-item-related-item X-Amz-Date: 20240910T182919Z Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20240910/us-east-1/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=39c3b3042cd2aEXAMPLE Content-Length: 89 { "OpsItemId": "oi-f99f2EXAMPLE", "AssociationId": "e2036148-cccb-490e-ac2a-390e5EXAMPLE" }

Sample Response

{}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: