Modifies the log delivery settings for Simple Log Service (SLS).
Operation description
QPS limit
You can call this API up to 10 times per second per user. If you exceed this limit, API calls are throttled, which may affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnableStatus |
boolean |
No |
Specifies whether to deliver logs. A value of `true` enables delivery, and `false` disables it. |
true |
| DispatchValue |
string |
No |
The key for the log category. Valid values: internet_log vpc_firewall_log nat_firewall_log ipv6_firewall_log dns_firewall_log. |
internet_log |
| FilterKeys |
string |
No |
The supported filter conditions. Valid values: attack acl other. |
attack,acl |
| NewRegionId |
string |
No |
The region. |
cn-shanghai |
| Site |
string |
No |
The site to modify. If the log version is 1, leave this parameter empty or set it to `global`. If the log version is 2, set this parameter to `cn` or `intl`. |
cn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CE901E31-4AE9-579D-AC37-D2F1BB43**** |
Examples
Success response
JSON format
{
"RequestId": "CE901E31-4AE9-579D-AC37-D2F1BB43****"
}
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.