Disassociating an Instance from an LTS Log Stream
Function
This API is used to disassociate an instance from an LTS log stream. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
Debugging
You can debug this API in API Explorer.
URI
DELETE /v3/{project_id}/instances/logs/lts-config
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition User token. You can obtain the token by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the token value. Constraints N/A Range N/A Default Value N/A |
X-Language |
No |
String |
Definition Language. Constraints N/A Range
Default Value en-us |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
list |
Yes |
Array Table 4 of objects |
Definition List of instance logs for delivering configurations. The list can contain up to 1,000 entries. Constraints N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_id |
Yes |
String |
Definition Instance ID. Constraints N/A Range The value can contain 36 characters. Only letters and digits are allowed. Default Value N/A |
log_type |
Yes |
String |
Definition Log type. Constraints N/A Range audit_log: audit log Default Value N/A |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
job_id |
String |
Definition ID of the job for creating an instance. Range N/A |
Example Request
Disassociating an instance from an LTS log stream
DELETE https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/4879de6859e345c780f1a22d8bc6f229/instances/logs/lts-config { "list": [ { "instance_id": "4dfd90b8c59f46b7aefe8c5da903328ein14", "log_type": "audit_log" } ] }
Example Response
{ "job_id": "d7b73e60-4237-43d0-9007-097b7678495d" }
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot