API call methods

Updated at:

You can call a DataBase Audit API by sending an HTTP GET request to its server-side address. You must add the request parameters to the request as described in the API reference. The system then returns a response. Both the request and the response are encoded in the UTF-8 character set.

Important

The OpenAPI operation used to activate a DataBase Audit instance is based on the instance-related APIs of Alibaba Cloud Billing Management OpenAPI (BSS OpenAPI). For more information, see Alibaba Cloud Billing Management API Reference.

Request structure

DataBase Audit APIs are RPC-style. To call a DataBase Audit API, you can send an HTTP GET request.

The request structure is as follows:

http://Endpoint/?Action=xx&Parameters

Where:

  • Endpoint: The service endpoint for the DataBase Audit API is yundun-dbaudit.aliyuncs.com.

    Note

    You can use the `RegionEndpoint` value that is returned by the `DescribeRegions` operation as the service endpoint.

  • Action: The operation to perform, such as ListTagKeys to query the tags attached to a resource.

  • Version: The version of the API to use. The API version for DataBase Audit is 2018-10-29.

  • Parameters: The request parameters. Separate multiple parameters with ampersands (&).

    Request parameters consist of common request parameters and API-specific parameters. Common parameters include information such as the API version and identity verification. For more information, see Common parameters.

The following example shows how to call the ListTagKeys operation to query the tags attached to a resource:

Note

The examples in this document are formatted for readability.

https://yundun-dbaudit.aliyuncs.com/?Action=ListTagKeys
&Format=xml
&Version=2018-10-29
&Signature=xxxx%xxxx%3D
&SignatureMethod=HMAC-SHA1
&SignatureNonce=15215528852396
&SignatureVersion=1.0
&AccessKeyId=key-test
&TimeStamp=2012-06-01T12:00:00Z
…