Updated on 2025-08-28 GMT+08:00

Deleting an Event Immediately

Function

The specified event is deleted immediately and cannot be restored. If an event is referenced by a secret, the event cannot be deleted. Disassociate the event from the secret first.

Constraints

Secrets deleted via this API cannot be restored.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/csms/events/{event_name}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

event_name

Yes

String

Name of an event notification.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

Response Parameters

Status code: 204

Request succeeded.

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 4 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 6 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 403

Table 7 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 8 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 404

Table 9 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 10 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 500

Table 11 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 12 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 502

Table 13 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 14 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Status code: 504

Table 15 Response body parameters

Parameter

Type

Description

error

ErrorDetail object

Error message

Table 16 ErrorDetail

Parameter

Type

Description

error_code

String

Error code returned for an error request.

error_msg

String

Error information returned for an error request.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

204

Request succeeded.

400

Invalid request parameter.

401

A username and password are required.

403

Authentication failed.

404

The requested resource does not exist or is not found.

500

Internal service error.

502

Failed to complete the request because the server receives an invalid response from an upstream server.

504

Gateway timed out.

Error Codes

See Error Codes.