All Products
Search
Document Center

Managed Service for Prometheus:DeleteEnvServiceMonitor

Last Updated:May 09, 2024

Deletes the ServiceMonitor of an environment.

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
EnvironmentIdstringYes

Environment instance ID.

env-xxxxxx
NamespacestringYes

The name of the namespace.

arms-prom
ServiceMonitorNamestringYes

ServiceMonitor name.

arms-admin1

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Id of the request

78901766-3806-4E96-8E47-CFEF59E4****
Codeinteger

The status code or error code.

200
Datastring

The returned data.

success
Messagestring

The returned message.

message

Examples

Sample success responses

JSONformat

{
  "RequestId": "78901766-3806-4E96-8E47-CFEF59E4****",
  "Code": 200,
  "Data": "success",
  "Message": "message"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history