GetCmsService
Checks the activation status of the Prometheus service or product.
Operation description
You cannot specify both the product and service parameters at the same time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetCmsService |
get |
*CmsService
|
None | None |
Request syntax
GET /cmsservice HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| product |
string |
No |
prometheus: the activation status of the Prometheus service (billed based on the amount of reported or written data). Valid values:
|
prometheus |
| service |
string |
No |
prometheus: indicates whether the Prometheus product billed based on the amount of reported data is activated. prometheusgb: indicates whether the Prometheus product billed based on the amount of written data is activated. Valid values:
|
prometheus |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
8FDE2569-626B-5176-9844-28877A***** |
| enabled |
boolean |
Indicates whether the service or product is activated. |
false |
| errorCode |
string |
PROM_NOT_OPEN: Prometheus is not activated. SLS_NOT_OPEN: Simple Log Service, which Prometheus depends on, is not activated. CMS_SLR_NOT_EXIST: The CloudMonitor service-linked role is not created. SLS_SLR_NOT_EXIST: The Simple Log Service service-linked role is not created. |
PROM_NOT_OPEN |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"enabled": false,
"errorCode": "PROM_NOT_OPEN"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.