Description

Checks whether the SQL collection feature is enabled for an AnalyticDB for PostgreSQL instance.

Request parameters

Parameter Type Required Description
<Common request parameters> N/A Yes For more information, see Common parameters.
Action String Yes The operation that you want to perform. Set the value to DescribeSQLCollectorPolicy.
DBInstanceId String Yes The ID of the instance.

Response parameters

Parameter Type Description
<Common response parameters> For more information, see Common response parameters.
SQLCollectorStatus String
  • Enabled: SQL collection is enabled.
  • Disabled: SQL collection is disabled.

Sample requests

https://gpdb.aliyuncs.com/?Action=DescribeSQLCollectorPolicy
&DBInstanceId=gp-xxxxxxx
&<Common request parameters>

Sample success responses

XML format

<DescribeSQLCollectorPolicyResponse>
    <RequestId>ABB39CC3-4488-4857-905D-2E4A051D0521</RequestId>
    <SQLCollectorStatus>Enable</SQLCollectorStatus>
</DescribeSQLCollectorPolicyResponse>

JSON format

{
    "RequestId":"ABB39CC3-4488-4857-905D-2E4A051D0521",
    "SQLCollectorStatus":"Enable"
}