All Products
Search
Document Center

Security Center:GetDataTrend

Last Updated:Jun 18, 2026

Queries the security operations trends for vulnerabilities, alerts, and baselines.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:GetDataTrend

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

BizTypes

string

Yes

The type of security data to query. Valid values:

  • HC_NEW: number of new baseline risks

  • HC_OPERATE: number of handled baseline risks

  • VUL_NEW: number of new vulnerability risks

  • VUL_OPERATE: number of handled vulnerability risks

  • SUSP_NEW: number of new alert risks

  • SUSP_OPERATE: number of handled alert risks.

HC_NEW,HC_OPERATE

StartTimestamp

integer

Yes

The start timestamp of the query. Unit: milliseconds.

1687334501000

EndTimestamp

integer

Yes

The end timestamp of the query. Unit: milliseconds.

1721923200000

Interval

integer

Yes

The interval for querying data. Unit: milliseconds.

Note

Minimum value: 1000.

86400000

Response elements

Element

Type

Description

Example

object

PlainResult

Data

object

The returned data.

DateList

array

The list of statistical timestamps for the trend data.

integer

The statistical timestamp for the trend data. Unit: seconds.

1721404800

DateStrList

array

The list of statistical date strings for the trend data.

string

The statistical date string for the trend data.

Note

Format: yyyy-MM-dd HH:mm:ss.

2024-01-01 00:00:00

ItemList

array<object>

The list of returned data.

object

The returned data.

KeyName

string

The type of the security data. Valid values:

  • HC_NEW: the number of new baseline risks.

  • HC_OPERATE: the number of handled baseline risks.

  • VUL_NEW: the number of new vulnerabilities.

  • VUL_OPERATE: the number of handled vulnerabilities.

  • SUSP_NEW: the number of new alerts.

  • SUSP_OPERATE: the number of handled alerts.

HC_NEW

CountList

array

The statistical values of the trend data.

integer

The statistical value of the trend data.

10

RequestId

string

The request ID. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues.

1383B0DB-D5D6-4B0C-9E6B-75939C8E****

Examples

Success response

JSON format

{
  "Data": {
    "DateList": [
      1721404800
    ],
    "DateStrList": [
      "2024-01-01 00:00:00"
    ],
    "ItemList": [
      {
        "KeyName": "HC_NEW",
        "CountList": [
          10
        ]
      }
    ]
  },
  "RequestId": "1383B0DB-D5D6-4B0C-9E6B-75939C8E****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParam Illegal param
500 ServerError ServerError
403 NoPermission caller has no permission

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.