Delete Namespace

Last updated: 2017-07-25 11:19:54

1. API Description

This API (DeleteNamespace) is used to delete a custom namespace. A namespace with metrics cannot be deleted. Please delete the metrics before deleting the namespace.

Domain name: monitor.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters are also needed when this API is called. For more information, please see Common Request Parameters. The Action field for this API is DeleteNamespace.

Parameter Name Required Type Description
namespace Yes String Namespace, which can be queried by calling the API Query Namespace (DescribeNamespace)

3. Output Parameters

Parameter Name Type Description
code Int Error code, 0: Successful; other values: Failed. For more information, please see Error Codes
message String Error message

4. Error Codes

Error Code Error Description Error Message
-503 Incorrect request parameter InvalidParameter
-505 Parameter is missing InvalidParameter.MissingParameter
-507 Limit has been exceeded OperationDenied.ExceedLimit
-509 Incorrect dimension group InvalidParameter.DimensionGroupError
-513 DB operation failed InternalError.DBoperationFail
-514 Resource already exists OperationDenied.SourceAlreadyExists

5. Example

Input

https://monitor.api.qcloud.com/v2/index.php?Action=DeleteNamespace
&<Common request parameters>
&namespace=cvm

Output

{
  'code': 0,
  'message': ''
}