You can call the ModifyUserCustomLogConfig operation to modify a custom log configuration.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to ModifyUserCustomLogConfig.
ConfigId String Yes The ID of the log configuration to be modified.
Tag String  Yes The tag information of the log configuration. The tag information cannot be more than 256 characters in length.

Response parameters

Parameter Type Description
RequestID String The ID of the request.

Examples

Sample request

https://cdn.aliyuncs.com?Action=ModifyUserCustomLogConfig&Tag=xxxx<Common request parameters>

Sample success response

JSON format

{
"RequestId":"CEC1492F-EB71-4481-94CF-34BA007DC8E1"
}

Error codes

Error code Error message HTTP status code Description
InvalidConfigId The configId provided does not belong to you. 404 The error message returned because the specified log configuration was not defined by the current user or does not exist.
InvalidTag Tag should be less than 256 characters. 403 The error message returned because the specified tag information cannot be more than 256 characters in length.