Queries the status of the slow query optimization service of Optimization Master.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes my_app_group_name

The name of the application.

Response parameters

Parameter Type Example Description
requestId String 5C1C1C45-C64A-AD30-565F-140871D57E5E

The ID of the request.

result Struct

The return result.

appGroupId String 100298370

The ID of the application.

region String internal

The network type of the slow query optimization service. Valid values:

  • outer: the Internet
  • internal: the internal network
status String disabled

The status of the slow query optimization service. Valid values:

  • enabled
  • disabled
  • n/a

Examples

Sample requests

GET /v4/openapi/app-groups/kevintest2/optimizers/slow-query

Sample success responses

XML format

<requestId>5C1C1C45-C64A-AD30-565F-140871D57E5E</requestId>
<result>
    <region>internal</region>
    <appGroupId>100298370</appGroupId>
    <status>disabled</status>
</result>

JSON format

{
    "requestId": "5C1C1C45-C64A-AD30-565F-140871D57E5E",
    "result": {
        "region": "internal",
        "appGroupId": 100298370,
        "status": "disabled"
    }
}

Error codes

For a list of error codes, visit the API Error Center.