DisassociateOpsItemRelatedItem - AWS Systems Manager

DisassociateOpsItemRelatedItem

Deletes the association between an OpsItem and a related resource. 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 resource.

Type: String

Required: Yes

OpsItemId

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

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

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

See Also

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