nav-img
Advanced

Deleting a Cluster Daemonset

Function

This API is used to delete a cluster daemonset.

URI

DELETE /v5/{project_id}/container/kubernetes/clusters/{cluster_id}/daemonsets

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

cluster_id

Yes

String

Cluster ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

No

String

Enterprise project ID. To query all enterprise projects, set this parameter to all_granted_eps.

invoked_service

No

String

Calling service. The default value is hss, which is used in the CCE integration protection calling scenario. The options are as follows:

  • hss

  • cce: CCE service. The CCE parameter needs to be transferred when the CCE integration protection is called.

Request Parameters

Table 3 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.

region

Yes

String

Region ID

Response Parameters

None

Example Requests

This API is used to delete a cluster daemonset.

DELETE https://{endpoint}/v5/{project_id}/container/kubernetes/clusters/{cluster_id}/daemonsets

Example Responses

None

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes