UpdatePrometheusInstance
Updates a Prometheus instance.
Operation description
Updates the information of a Prometheus instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdatePrometheusInstance |
update |
*PrometheusInstance
|
None | None |
Request syntax
PUT /prometheus-instances/{prometheusInstanceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| prometheusInstanceId |
string |
Yes |
The Prometheus instance ID. |
rw-xxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| archiveDuration |
integer |
No |
The number of days to automatically archive and retain data after the storage period expires. A value of 0 indicates that data is not archived. Valid values for the archive retention period: V1: 1 to 365 days. Supported only for the pay-by-ingested-data billing method. V2: 1 to 3650 days. A value of 3650 indicates permanent retention. |
365 |
| authFreeReadPolicy |
string |
No |
The authentication-free read policy. IP address ranges and VPC IDs are supported. |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| authFreeWritePolicy |
string |
No |
The authentication-free read policy. IP address ranges and VPC IDs are supported. |
{ "SourceIp": [ "192.168.1.0/24", "172.168.2.22" ], "SourceVpc": [ "vpc-xx1", "vpc-xx2" ] } |
| enableAuthFreeRead |
boolean |
No |
Specifies whether to enable authentication-free read. |
true |
| enableAuthFreeWrite |
boolean |
No |
Specifies whether to enable authentication-free write. |
true |
| enableAuthToken |
boolean |
No |
Specifies whether to enable access token authentication. |
true |
| prometheusInstanceName |
string |
No |
The name of the instance. |
test-prom-name |
| status |
string |
No |
The status of the instance storage database. Only RUNNING is supported. If this parameter is left empty, the status of the storage database is not changed. |
RUNNING |
| storageDuration |
integer |
No |
The storage duration in days. Valid values: For the pay-by-ingested-data billing method: 90 and 180. For the pay-by-reported-metrics billing method: 15, 30, 60, 90, and 180. Valid values:
|
90 |
| paymentType |
string |
No |
The billing method. You can change the billing method only once during the lifecycle of the instance. Valid values: POSTPAY: pay-as-you-go based on the number of reported metrics. POSTPAY_GB: pay-as-you-go based on the volume of ingested data. Valid values:
|
POSTPAY_GB |
| workspace |
string |
No |
The workspace to which the instance belongs. |
default-cms-1500199863951574-cn-shanghai |
| storeConfig | PrometheusInstanceStoreConfig |
No |
The Prometheus storage configuration. |
|
| dryrun |
boolean |
No |
Specifies whether to only precheck the request. Valid values: true: sends a precheck request without updating the instance. The system checks whether required parameters are specified, the request format is valid, and service limits are met. If the request fails the precheck, the corresponding error is returned. If the request passes the precheck, the DryRunOperation error code is returned. false: sends a regular request. If the request passes the precheck, the instance is updated. This is the default value. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| prometheusInstanceId |
string |
The ID of the instance. |
rw-abc123 |
| requestId |
string |
Id of the request |
1E92F783-E057-58F1-BD5C-92DED088E7A5 |
Examples
Success response
JSON format
{
"prometheusInstanceId": "rw-abc123",
"requestId": "1E92F783-E057-58F1-BD5C-92DED088E7A5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.