Modifies the configurations for log delivery to Simple Log Service (SLS).
Operation description
Before calling this operation, call DescribeUserBuyVersion to obtain the LogVersion of the user.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ModifyType |
string |
No |
The modification type. Valid values:
Valid values:
|
version |
| LogVersion |
integer |
No |
The log version. A value of 1 indicates one Logstore. A value of 2 indicates two Logstores. Important If ModifyType is set to version, set LogVersion to the target version. If ModifyType is set to config, set LogVersion to the current version of the user. Valid values:
|
1 |
| DetailConfig |
string |
No |
The detailed configuration to modify.
The fields are described as follows:
|
{"global":{"slsRegionId":"cn-hangzhou","logTime":180,"logStorage":1000}} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4CD646BA-490F-5584-9272-B6FFE3BB**** |
| TaskId |
string |
The task ID. Modifying log configurations is an asynchronous task. This field indicates the unique identifier of the task. You can use this ID to query the status of the task. |
d8c995ec-40a5-4382-a3f3-57713096**** |
Examples
Success response
JSON format
{
"RequestId": "4CD646BA-490F-5584-9272-B6FFE3BB****",
"TaskId": "d8c995ec-40a5-4382-a3f3-57713096****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalOperation | Illegal operation, unable to operate within 5 minutes, please try again in 5 minutes. | Illegal operation, unable to operate within 5 minutes, please try again in 5 minutes. |
| 400 | RepeatInFiveMinutes | Repeat operation in five minutes, please try later. | Repeat operation is not allowed for five minutes. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.