To send a Security Center API request, you must send an HTTP GET request to the Security Center endpoint. You must add the request parameters that correspond to the API operation being called. After you call the operation, the system returns a response. The request and response are encoded in UTF-8.

Request syntax

Security Center operations use the RPC protocol. You can call Security Center operations by sending HTTP GET requests.

The request syntax:

  • Endpoint: The endpoint of the Security Center API is
  • Action: the name of the operation being performed. For example, to call the DescribeAlarmEventList operation, you must set the Action parameter to DescribeAlarmEventList.
  • Version: the version of operation that you call. The current Security Center API version is 2018-12-03.
  • Parameters: the request parameters for the operation. Separate multiple parameters with ampersands (&).

    Request parameters include both common parameters and operation-specific parameters. Common parameters are used for all Security Center API calls regardless of the operation. For more information, see Common parameters.

The following example demonstrates how to call the DescribeAlarmEventList in Security Center.
Note To improve readability, the following code has been formatted.
http(s):// Action=DescribeAlarmEventList


To ensure your account security, we recommend that you call a Security Center operation as a RAM user. Before you can call a Security Center operation as a RAM user, you must create and attach a corresponding permission policy to the RAM user.

Signature method

You must sign all API requests to ensure security. Security Center uses the request signature to verify the identity of the API caller.

Security Center implements symmetric encryption with an AccessKey pair to verify the identity of the request sender. An AccessKey pair is an identity credential issued to Alibaba Cloud accounts and RAM users that is similar to a logon username and password. An AccessKey pair consists of an AccessKey ID and an AccessKey secret. The AccessKey ID is used to verify the identity of the user, while the AccessKey secret is used to encrypt and verify the signature string. You must keep your AccessKey secret strictly confidential.

You must add the signature to a Security Center API request in the following format:
Take the DescribeAlarmEventList operation as an example. If the AccessKey ID is testid and the AccessKey Secret is testsecret, the original request URL is described:
To calculate the signature, take the following steps:
  1. Use the request parameters to create a string-to-sign.
  2. Calculate the HMAC value of the string-to-sign.
    Append an ampersand (&) after the AccessKey secret as the key to calculate the HMAC value. In this example, the key is testsecret&.
  3. Add the signature to the request parameters:
Note Alibaba Cloud provides SDKs in multiple languages and third-party SDKs to simplify signature algorithm coding. For more information about Alibaba Cloud SDKs, see Alibaba Cloud Development Kit (SDK).