All Products
Search
Document Center

Realtime Compute for Apache Flink:ListAutopilotTuningHistories

Last Updated:Oct 09, 2026

Retrieves the Autopilot tuning history records.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /autopilot/v2/namespaces/{namespace}/deployments/{deploymentId}/tuninghistories HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

namespace

string

Yes

The project namespace.

default-namespace

deploymentId

string

Yes

The job ID.

737d0921-c5ac-47fc-9ba9-07a1e0b4****

Request parameters

Parameter

Type

Required

Description

Example

workspace

string

Yes

The workspace ID.

a14bd5d90a****

startTime

integer

No

The query start timestamp in milliseconds. If not specified, the default is the last 3 days.

1689235200000

endTime

integer

No

The query end timestamp in milliseconds. If not specified, the default is the current time. The time span between startTime and endTime cannot exceed 30 days.

1689321600000

pageSize

integer

No

The number of entries per page. Default value: 20. Maximum value: 100.

20

pageNumber

integer

No

The page number, starting from 1. Default value: 1.

1

Accept-Language

string

No

The language type. Default value: en-US. Set this to zh-CN for Chinese.

en-US

Response elements

Element

Type

Description

Example

object

The response data.

requestId

string

The request ID.

CBC799F0-AS7S-1D30-8A4F-882ED4DD****

success

boolean

Indicates whether the business request was successful.

true

httpCode

integer

The business status code, which is always 200. Use success to determine whether the business request was successful.

200

errorCode

string

When success is false, this value is not empty and indicates the business error code. When success is true, this value is empty.

""

errorMessage

string

When success is false, this value is not empty and indicates the business error message. When success is true, this value is empty.

""

data

object

The tuning history list result.

totalCount

integer

The total number of records.

42

pageNumber

integer

The current page number.

1

pageSize

integer

The number of entries per page.

20

tuningHistories

array

The list of tuning history records.

TuningHistory

The tuning history details.

Examples

Success response

JSON format

{
  "requestId": "CBC799F0-AS7S-1D30-8A4F-882ED4DD****",
  "success": true,
  "httpCode": 200,
  "errorCode": "\"\"",
  "errorMessage": "\"\"",
  "data": {
    "totalCount": 42,
    "pageNumber": 1,
    "pageSize": 20,
    "tuningHistories": [
      {
        "tuningId": "06d81ae2-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "deploymentName": "namespaces/ns-xxx/deployments/6aa0d4d1-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "jobId": "b462c053-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "tuningState": "SUCCESS",
        "tuningMessage": "Scale up parallelism from 2 to 4",
        "triggerTime": 1718270936000,
        "actionType": "SCALE_UP_PARALLELISM",
        "isHotUpdate": true,
        "oldResourceSetting": {
          "parallelism": 2,
          "cpu": 1,
          "memory": "2 Gi"
        },
        "newResourceSetting": {
          "parallelism": 4,
          "cpu": 1,
          "memory": "2 Gi"
        },
        "annotations": {
          "key": "{\"k\":\"v\"}"
        }
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.