Update Unformatted Policy

Update the data storage time of organization’s unformatted storage policy.

Request Format

GET https://{apigw-address}/tsdb-policy/v2.1/policies/unformatted/update

Request Parameters(URI)

Name

Location(Path/Query)

Mandatory/Optional

Data Type

Description

orgId

Query

Mandatory

String

The organization ID which the asset belongs to. How to get organization ID>>

retention

Query

Mandatory

String

Data storage time. All supported retention include 1M, 3M, 6M, 1y, 2y, 3y, 5y, 10y, 15y, 20y.

Error Code

For the description of error codes, see Common Error Codes.

Sample

Request Sample

url: https://{apigw-address}/tsdb-policy/v2.1/policies/unformatted/update?orgId=yourOrgId&retention=3M

method: GET

Return Sample

{
  "code": 0,
  "msg": "OK",
  "submsg": null,
  "data": null
}

SDK Samples


You can access the Java SDK samples for TSDB policy service on GitHub.