Domain name for API request: tke.tencentcloudapi.com.
This API is used to delete collection rules within the cluster.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DeleteLogConfigs. |
Version | Yes | String | Common Params. The value used for this API: 2018-05-25. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ClusterId | Yes | String | Cluster ID |
LogConfigNames | Yes | String | Name of the collection rule to be deleted. For multiple collection rules, they are separated by ",". |
ClusterType | No | String | Cluster type: tke/eks. The default is tke cluster. |
Parameter Name | Type | Description |
---|---|---|
Message | String | Returns the error causes when encountering an error in deleting a collection rule Note: This field may return "null", indicating that no valid value can be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to call the feature when deleting collection rules.
POST / HTTP/1.1
Host: tke.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DeleteLogConfigs
<Common request parameters>
{
"ClusterId": "cls-bz7ge4wl",
"LogConfigNames": "test6,test7"
}
{
"Response": {
"RequestId": "3c140219-cfe9-470e-b241-907877d6fb03"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.K8sClientBuildError | Failed to create the Kubernetes client. |
FailedOperation.KubernetesDeleteOperationError | Kubernetes Delete operation error. |
FailedOperation.KubernetesGetOperationError | |
FailedOperation.KubernetesListOperationError | Failed to obtain the kubernetes resource list. |
FailedOperation.KubernetesResourceNotFound | Kubernetes is not found. |
FailedOperation.Param | Invalid parameter. |
Was this page helpful?