Shrinking Database Logs (Not Recommended)
Function
This API is used to shrink database logs of an RDS for SQL Server instance.
This API will be unavailable on December 30, 2024. You are advised to switch workloads to the new API (Shrinking Database Logs) before then.
- Before calling an API, you need to understand the API in Authentication.
URI
- URI format
- Parameter description
Table 1 Parameters Parameter
Mandatory
Description
project_id
Yes
Project ID of a tenant in a region.
To obtain it, refer to Obtaining a Project ID.
instance_id
Yes
Instance ID.
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
db_name |
Yes |
String |
Database name. |
Example Request
Shrinking database logs
POST https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/161e33e453954e21acfff65bfa3dbfebin04/db_shrink { "db_name": "test1" }
Response
- Normal response
Table 3 Parameters Parameter
Type
Description
resp
String
Returns successful if the invoking is successful, or returns failed if the invoking fails.
- Example normal response
{ "resp": "successful" }
- 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