Forcing Rotation for Audit Logs
Function
This API is used to force rotation for audit logs.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about the request header parameters.
Authorization Information
- If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
| rds:auditlog:rotate | write | instance | - g:EnterpriseProjectId - g:ResourceTag/<tag-key> | rds:auditlog:rotate | - |
Constraints
This API is only available for RDS for MySQL instances.
URI
- URI format
POST /v3/{project_id}/instances/{instance_id}/auditlog-rotate
- Parameter description
Table 1 Parameters 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
N/A
Default Value
N/A
instance_id
Yes
String
Definition
Instance ID.
You can obtain the value of this parameter from id in Table 4 by calling the API for querying DB instances.
Constraints
N/A
Range
N/A
Default Value
N/A
Request
Empty request body.
Example Request
Force rotation for audit logs.
POST https://{Endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/cee5265e1e5845649e354841234567dfin01/auditlog-rotate
{} Response
- Normal response
Table 2 Parameters Parameter
Type
Description
instance_id
String
Definition
Instance ID.
Range
N/A
- Example normal response
{ "instance_id" : "f130881e38fd41da8be87711cb79f43bin01" } - Abnormal response
For details, see Abnormal Response Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
What is your overall rating for this page?
Thank 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