Disabling Log Ingestion to LTS for Instances in Batches (RDS for MySQL)
Function
This API is used to disable log ingestion to LTS for instances in batches.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about request header parameters.
Constraints
You can remove log streams for a maximum of 20 instances at a time. If you remove log streams for audit logs, you can specify a maximum of 10 instances at a time.
URI
- Parameter description
Table 1 Parameters Parameter
Mandatory
Description
project_id
Yes
Definition
Project ID of a tenant in a region.
To obtain the value, see Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
engine
Yes
Definition
Instance engine to be queried.
Constraints
Only the MySQL engine is supported.
Range
mysql
Default Value
N/A
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
log_configs |
Yes |
Array of objects |
Definition Instance log configurations. For details, see Table 3. Constraints N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
instance_id |
Yes |
String |
Definition Instance ID. Constraints N/A Range N/A Default Value N/A |
log_type |
Yes |
String |
Definition Log type. Constraints N/A Range
Default Value N/A |
Example Request
Disable log ingestion to LTS for RDS for MySQL instances in batches.
DELETE https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/mysql/instances/logs/lts-configs { "log_configs": [ { "instance_id": "2b1d07d2c9c04d62a95d627c607dbbfein01", "log_type": "audit_log" } ] }
Response
- Example normal response
{}
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
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