Modifies a namespace.

This topic provides an example on how to change the data retention period of the aliyun namespace to cms.s1.2xlarge. The returned result indicates that the namespace is modified.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyHybridMonitorNamespace

The operation that you want to perform. Set the value to ModifyHybridMonitorNamespace.

Namespace String Yes aliyun

The name of the namespace.

The name can contain letters, digits, and hyphens (-).

For information about how to obtain the name of a namespace, see DescribeHybridMonitorNamespaceList.

Description String No The namespace for the metrics of Alibaba Cloud services.

The description of the namespace.

Spec String No cms.s1.2xlarge

The data retention period of the namespace. Valid values:

  • cms.s1.large: 15 days
  • cms.s1.xlarge: 32 days
  • cms.s1.2xlarge: 63 days
  • cms.s1.3xlarge: 93 days
  • cms.s1.6xlarge: 185 days
  • cms.s1.12xlarge: 376 days

For information about the pricing for different retention periods, see the Pricing section in Billing of the dashboard feature.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Code String Success

Indicates whether the request was successful.

Message String %s

The error message.

RequestId String E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD

The ID of the request.

Success String true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD",
  "Code" : "Success",
  "Success" : true

Error codes

For a list of error codes, visit the Error Center.