You can call this operation to enable or disable SQL collection for the instance.

Request parameters

Name Type Required Description
<Common request parameters> - Yes For more information, see Common parameters.
Action String Yes The operation that you want to perform. Set the value to ModifySQLCollectorPolicy.
DBInstanceId String Yes The ID of the instance.
SQLCollectorStatus String  Yes
  • Enabled: SQL collection is enabled.
  • Disabled: SQL collection is disabled.

Response parameters

Name  Type Description
<Common response parameters> - For more information, see Common response parameters.

Sample requests
&<Common request parameters>

Sample responses

XML format


JSON format