All Products
Search
Document Center

CloudMonitor:ModifyHybridMonitorNamespace

Last Updated:Jul 26, 2024

Modifies a namespace.

Operation description

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cms:UpdateCustomNamespacecreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamespacestringYes

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 .

aliyun
DescriptionstringNo

The description of the namespace.

SpecstringNo

The data retention period. Valid values:

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

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

cms.s1.2xlarge

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

Response parameters

ParameterTypeDescriptionExample
object

None.

Codestring

The returned message.

Success
Messagestring

The error message.

%s
RequestIdstring

The request ID.

E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "Code": "Success",
  "Message": "%s",
  "RequestId": "E190AB2E-7BF9-59B7-9DDC-7CB1782C5ECD",
  "Success": "true"
}

Error codes

HTTP status codeError codeError message
400%s%s
500InternalError%s

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

Change history

Change timeSummary of changesOperation
2022-04-24Add OperationView Change Details