Deletes a trigger of a repository.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteRepoTrigger

The operation that you want to perform. Set the value to DeleteRepoTrigger.

InstanceId String Yes cri-xkx6vujuhay0****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-xwvi3osiy4ff****

The ID of the repository.

TriggerId String Yes crw-0z4pf81pgz35****

The ID of the trigger that you want to delete.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful. Valid values:

  • true: successful
  • false: failed
RequestId String 85180AE4-9A57-48F8-9EF9-68ECCE54B552

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteRepoTrigger
&InstanceId=cri-xkx6vujuhay0****
&RegionId=cn-shanghai
&RepoId=crr-xwvi3osiy4ff****
&TriggerId=crw-0z4pf81pgz35****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>85180AE4-9A57-48F8-9EF9-68ECCE54B552</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess":true,
    "RequestId":"85180AE4-9A57-48F8-9EF9-68ECCE54B552",
    "Code":"success"
}

Error codes

For a list of error codes, visit the API Error Center.