All Products
Search
Document Center

Security Center:GetHoneypotNodeMetricList

Last Updated:Nov 25, 2024

Queries the monitoring data of management nodes to which the cloud honeypot belongs.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
yundun-sas:GetHoneypotNodeMetricListlist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NodeIdstringNo

The management node ID.

cc427e14-f257-4670-9d2b-d83bbbe7****
ExpressstringNo

The expression that is used to compute the query results in real time.

Note Only the groupby expression is supported. This expression is similar to the GROUP BY statement that applies to databases.
{"groupby":["userId","instanceId"]}
StartTimestringNo

The beginning of the time range to query. The following formats are supported:

  • UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC
  • Date format: YYYY-MM-DDThh:mm:ssZ
  • The interval between the start time and the end time is less than or equal to 31 days.
2019-01-30 00:00:00
MetricNamestringNo

The metric that is used to monitor the cloud service.

cpu_total
PeriodstringNo

The time interval. Unit: seconds. Valid values: 60, 300, and 900.

60
LengthstringNo

The number of entries per page.

Note The maximum value of the Length parameter in a request is 1440.
100
EndTimestringNo

The end of the time range to query. Valid values:

  • UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC
  • Date format: YYYY-MM-DDThh:mm:ssZ
2019-01-30 00:10:00
NamespacestringNo

The namespace of the cloud service. Format: acs_cloud service name.

acs_ecs_dashboard

Response parameters

ParameterTypeDescriptionExample
object

PlainResult

Datastring

The monitoring data.

{ "code": "200", "datapoints": "[{\"timestamp\":1698375060000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":67084.0,\"Maximum\":67084.0,\"Average\":67084.0},{\"timestamp\":1698375120000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":63704.0,\"Maximum\":63704.0,\"Average\":63704.0},{\"timestamp\":1698375180000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":67624.0,\"Maximum\":67624.0,\"Average\":67624.0},{\"timestamp\":1698375240000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":68432.0,\"Maximum\":68432.0,\"Average\":68432.0},{\"timestamp\":1698375300000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":70148.0,\"Maximum\":70148.0,\"Average\":70148.0},{\"timestamp\":1698375360000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":63612.0,\"Maximum\":63612.0,\"Average\":63612.0},{\"timestamp\":1698375420000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":68032.0,\"Maximum\":68032.0,\"Average\":68032.0},{\"timestamp\":1698375480000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":67400.0,\"Maximum\":67400.0,\"Average\":67400.0},{\"timestamp\":1698375540000,\"instanceId\":\"i-bp18jn50nid83nsu****\",\"ip\":\"1.1.1.1\",\"userId\":\"132776878515****\",\"Minimum\":65352.0,\"Maximum\":65352.0,\"Average\":65352.0}]", "period": "60", "requestId": "AFE33E4E-70A3-5BAE-AEA8-4D3BF3A75067", "success": true }
RequestIdstring

The request ID, which is used to locate and troubleshoot issues.

48F523DA-4C7E-5417-B872-E313E5A4****

Examples

Sample success responses

JSONformat

{
  "Data": "{\n    \"code\": \"200\",\n    \"datapoints\": \"[{\\\"timestamp\\\":1698375060000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67084.0,\\\"Maximum\\\":67084.0,\\\"Average\\\":67084.0},{\\\"timestamp\\\":1698375120000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":63704.0,\\\"Maximum\\\":63704.0,\\\"Average\\\":63704.0},{\\\"timestamp\\\":1698375180000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67624.0,\\\"Maximum\\\":67624.0,\\\"Average\\\":67624.0},{\\\"timestamp\\\":1698375240000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":68432.0,\\\"Maximum\\\":68432.0,\\\"Average\\\":68432.0},{\\\"timestamp\\\":1698375300000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":70148.0,\\\"Maximum\\\":70148.0,\\\"Average\\\":70148.0},{\\\"timestamp\\\":1698375360000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":63612.0,\\\"Maximum\\\":63612.0,\\\"Average\\\":63612.0},{\\\"timestamp\\\":1698375420000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":68032.0,\\\"Maximum\\\":68032.0,\\\"Average\\\":68032.0},{\\\"timestamp\\\":1698375480000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":67400.0,\\\"Maximum\\\":67400.0,\\\"Average\\\":67400.0},{\\\"timestamp\\\":1698375540000,\\\"instanceId\\\":\\\"i-bp18jn50nid83nsu****\\\",\\\"ip\\\":\\\"1.1.1.1\\\",\\\"userId\\\":\\\"132776878515****\\\",\\\"Minimum\\\":65352.0,\\\"Maximum\\\":65352.0,\\\"Average\\\":65352.0}]\",\n    \"period\": \"60\",\n    \"requestId\": \"AFE33E4E-70A3-5BAE-AEA8-4D3BF3A75067\",\n    \"success\": true\n}",
  "RequestId": "48F523DA-4C7E-5417-B872-E313E5A4****"
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParamIllegal param-
400NodeNotExistThe control node does not exist.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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