All Products
Search
Document Center

CloudMonitor:DescribeMetricRuleBlackList

Last Updated:Mar 18, 2024

Queries blacklist policies.

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
NamespacestringNo

The timestamp when the blacklist policy expired.

Unit: milliseconds.

acs_ecs_dashboard
PageNumberintegerNo

The name of the metric.

1
PageSizeintegerNo

The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include kvstore_standard, kvstore_sharding, and kvstore_splitrw.

100
OrderintegerNo

The HTTP status code.

Note The status code 200 indicates that the call was successful.
DESC
CategorystringNo

The ID of the blacklist policy.

ecs
IdsarrayNo
stringNo

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

a9ad2ac2-3ed9-11ed-b878-0242ac12****
NamestringNo

The name of the blacklist policy.

This parameter supports fuzzy match.

Blacklist-01
ScopeTypestringNo

The effective scope of the blacklist policy. Valid values:

  • USER: The blacklist policy takes effect only within the current Alibaba Cloud account.
  • GROUP: The blacklist policy takes effect only within the specified application group.
USER
IsEnablebooleanNo

The status of the blacklist policy. Valid values:

  • true: The blacklist policy is enabled.
  • false: The blacklist policy is disabled.
true
InstanceIdsarrayNo

The IDs of the instances in the blacklist policy.

Valid values of N: 0 to 10.

stringNo

The ID of the instance in the blacklist policy.

i-2ze2d6j5uhg20x47****

Indicates whether the call was successful. Valid values:

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

Response parameters

ParameterTypeDescriptionExample
object

None

Codestring

The categories of the Alibaba Cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include kvstore_standard, kvstore_sharding, and kvstore_splitrw.

200
Messagestring

The error message.

The Request is not authorization.
RequestIdstring

The namespace of the cloud service.

D63E76CB-29AA-5B9F-88CE-400A6F28D428
Totalinteger

The timestamp when the blacklist policy was created.

Unit: milliseconds.

1
Successboolean

The namespace of the cloud service.

For more information about the namespaces of different cloud services, see Appendix 1: Metrics.

true
DescribeMetricRuleBlackListobject []

The queried blacklist policies.

EffectiveTimestring

The time range within which the blacklist policy is effective.

00:00-23:59
UpdateTimestring

The timestamp when the blacklist policy was modified.

Unit: milliseconds.

1665718373000
CreateTimestring

The timestamp when the blacklist policy was created.

Unit: milliseconds.

1665714561000
ScopeTypestring

The effective scope of the blacklist policy. Valid values:

  • USER: The blacklist policy takes effect only within the current Alibaba Cloud account.
  • GROUP: The blacklist policy takes effect only within the specified application group.
USER
IsEnableboolean

The status of the blacklist policy. Valid values:

  • true: The blacklist policy is enabled.
  • false: The blacklist policy is disabled.
true
Namespacestring

The namespace of the cloud service.

acs_ecs_dashboard
Categorystring

The category of the cloud service. For example, ApsaraDB for Redis includes the following categories: ApsaraDB for Redis (standard architecture), ApsaraDB for Redis (cluster architecture), and ApsaraDB for Redis (read/write splitting architecture). In this case, the valid values of this parameter for ApsaraDB for Redis include kvstore_standard, kvstore_sharding, and kvstore_splitrw.

ecs
EnableEndTimelong

The timestamp when the blacklist policy started to take effect.

Unit: milliseconds.

1640608200000
Namestring

The name of the blacklist policy.

Blacklist-01
EnableStartTimelong

The timestamp when the blacklist policy expired.

Unit: milliseconds.

1640237400000
Idstring

The ID of the blacklist policy.

93514c96-ceb8-47d8-8ee3-93b6d98b****
Metricsobject []

The metrics of the instance.

Resourcestring

The extended dimension of the instance. For example, {"device":"C:"} specifies that the blacklist policy is applied to all C disks of the specified Elastic Compute Service (ECS) instance.

[{"device":"C:"}]
MetricNamestring

The metric name.

disk_utilization
Instancesarray

The IDs of the instances that belong to the specified cloud service.

string

The IDs of the instances that belong to the specified cloud service.

i-rj99xc6cptkk64ml****
ScopeValuearray

The IDs of the application groups.

string

The IDs of the application groups. The value of this parameter is a JSON array.

Note This parameter is returned only if the ScopeType parameter is set to GROUP.
["67****","78****"]

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "D63E76CB-29AA-5B9F-88CE-400A6F28D428",
  "Total": 1,
  "Success": true,
  "DescribeMetricRuleBlackList": [
    {
      "EffectiveTime": "00:00-23:59",
      "UpdateTime": "1665718373000",
      "CreateTime": "1665714561000",
      "ScopeType": "USER",
      "IsEnable": true,
      "Namespace": "acs_ecs_dashboard",
      "Category": "ecs",
      "EnableEndTime": 1640608200000,
      "Name": "Blacklist-01",
      "EnableStartTime": 1640237400000,
      "Id": "93514c96-ceb8-47d8-8ee3-93b6d98b****",
      "Metrics": [
        {
          "Resource": "[{\"device\":\"C:\"}]",
          "MetricName": "disk_utilization"
        }
      ],
      "Instances": [
        "i-rj99xc6cptkk64ml****"
      ],
      "ScopeValue": [
        "[\"67****\",\"78****\"]"
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400ParameterInvalidIllegal parameters.-
403AccessForbiddenUser not authorized to operate on the specified resource.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
409ResourceConflictConcurrent modification of resources.-
409ResourceExistResources already exist.-
500InternalErrorThe request processing has failed due to some unknown error.-

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

Change history

Change timeSummary of changesOperation
2023-07-11The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 409
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Name
    Added Input Parameters: ScopeType
    Added Input Parameters: IsEnable
    Added Input Parameters: InstanceIds
2022-06-22Add Operationsee changesets