All Products
Search
Document Center

Managed Service for Prometheus:UpdatePrometheusInstance

Last Updated:May 09, 2024

Updates the information about a Prometheus instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hangzhou
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmxyexli2****
ClusterIdstringYes

The ID of the Prometheus instance.

vpc-xxx
StorageDurationintegerNo

Storage duration (days).

90
ArchiveDurationintegerNo

The number of days for automatic archiving after storage expiration (optional values: 60, 90, 180, 365). 0 means not archive.

90

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

6A9AEA84-7186-4D8D-B498-4585C6A2****
Datastring

The returned result.

success
Messagestring

The message returned.

message
Codeinteger

The status code. The status code 200 indicates that the request was successful.

200

Examples

Sample success responses

JSONformat

{
  "RequestId": "6A9AEA84-7186-4D8D-B498-4585C6A2****",
  "Data": "success",
  "Message": "message",
  "Code": 200
}

Error codes

For a list of error codes, visit the Service error codes.