All Products
Search
Document Center

Cloud Firewall:ModifyUserSlsLogStorageTime

Last Updated:Jan 22, 2026

Modifies the storage duration for user logs.

Operation description

QPS limit

This API is limited to 10 queries per second (QPS) per user. API calls that exceed this limit are throttled, which may interrupt your business. Plan your API calls to stay within this limit.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the instance.

vipcloudfw-cn-uqm3fz****

StorageTime

integer

Yes

The storage duration. Unit: days.

180

LogVersion

integer

No

The log version. Valid values are 1 (one Logstore) and 2 (two Logstores).

1

SlsRegionId

string

No

The ID of the SLS region.

ap-southeast-1

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

337A4DBA-8A01-5E9C-99CA-84293E13****

Examples

Success response

JSON format

{
  "RequestId": "337A4DBA-8A01-5E9C-99CA-84293E13****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.