Updated on 2026-11-06 GMT+08:00

Listing Flink Job Savepoints

Function

This API is used to query the savepoint records of a specified Flink job, returning a paginated list. This API is synchronous. The response contains detailed savepoint information.

For details of a specific savepoint, see Querying Flink Job Savepoint Details.

Calling Method

For details, see Calling APIs.

URI

GET /v2/workspaces/{workspace_id}/flink-jobs/{job_id}/flink-savepoints

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

workspace_id

Yes

String

Definition: Workspace ID, used for resource isolation. For details about how to obtain the workspace ID, see Obtaining a Workspace ID.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

job_id

Yes

String

Definition: Flink job ID, used to uniquely identify a Flink job. For details, see Listing Flink Jobs.

Constraints: N/A

Range: UUIDv7 format, fixed at 36 characters.

Default Value: N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Definition: Index offset, used for pagination, starting from 0.

Constraints: N/A

Range: An integer from 0 to 100,000.

Default Value: 0

limit

No

Integer

Definition: Number of records to return, used for pagination.

Constraints: N/A

Range: An integer from 1 to 1,000.

Default Value: 100.

create_time_after

No

Long

Definition: Start time for filtering (inclusive), used to filter by creation time.

Constraints: N/A

Range: 0 to 4,102,416,000,000, 13-digit millisecond timestamp.

Default Value: N/A

create_time_before

No

Long

Definition: End time for filtering (inclusive), used to filter by creation time.

Constraints: N/A

Range: 0 to 4,102,416,000,000, 13-digit millisecond timestamp.

Default Value: N/A

state

No

String

Definition: Savepoint status, used to filter the savepoint list by status.

Constraints: N/A

Range

  • TRIGGER_PENDING: Queued for execution.

  • IN_PROGRESS: In progress.

  • COMPLETED: Triggered successfully.

  • FAILED: Trigger failed.

  • ABANDONED: Abandoned/invalid.

Default Value: N/A

trigger_type

No

String

Definition: Savepoint trigger type, used to filter the savepoint list by trigger type.

Constraints: N/A

Range: Fixed value: USER_REQUEST, indicating a manually triggered savepoint.

Default Value: N/A

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition: User token, used for API authentication and authorization. It can be obtained by calling the Obtaining an IAM User Token API.

Constraints: N/A

Range: Up to 65,534 characters.

Default Value: N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

count

Integer

Definition: Total number of savepoints.

Range: 0 to 2,147,483,647.

savepoints

Array of FlinkSavepointSummary objects

Definition: Savepoint summary information list. Can display 0 to 1,000 FlinkSavepointSummary objects.

Table 5 FlinkSavepointSummary

Parameter

Type

Description

savepoint_id

String

Definition: Savepoint unique identifier.

Range: UUIDv7 format, fixed at 36 characters. Only lowercase letters, digits, and hyphens (-) are allowed.

job_id

String

Definition: ID of the associated Flink job.

Range: UUIDv7 format, fixed at 36 characters. Only lowercase letters, digits, and hyphens (-) are allowed.

trigger_type

String

Definition: Savepoint trigger type.

Range: Fixed value: USER_REQUEST, indicating a manually triggered savepoint.

status

FlinkSavepointStatus object

Definition: Savepoint status information.

created_time

Long

Definition: Creation timestamp.

Range: 0 to 4,102,416,000,000, 13-digit millisecond timestamp.

location

String

Definition: Snapshot storage path.

Range: 1 to 512 characters, must start with obs://.

description

String

Definition: Job snapshot description.

Range: 0 to 512 characters.

Table 6 FlinkSavepointStatus

Parameter

Type

Description

state

String

Definition: Current savepoint status.

Range

  • TRIGGER_PENDING: Queued for execution.

  • IN_PROGRESS: In progress.

  • COMPLETED: Triggered successfully.

  • FAILED: Trigger failed.

  • ABANDONED: Abandoned/invalid.

state_message

String

Definition: Status message details.

Range: 0 to 512 characters.

Status code: 400

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code, used to identify a specific error type.

Range: 1 to 256 characters.

error_msg

String

Definition: Error message, used to explain the cause of an error.

Range: 1 to 1,024 characters.

solution_msg

String

Definition: Resolution suggestion, used to provide a solution for the error.

Range: 0 to 1,024 characters.

Status code: 401

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code, used to identify a specific error type.

Range: 1 to 256 characters.

error_msg

String

Definition: Error message, used to explain the cause of an error.

Range: 1 to 1,024 characters.

solution_msg

String

Definition: Resolution suggestion, used to provide a solution for the error.

Range: 0 to 1,024 characters.

Status code: 403

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code, used to identify a specific error type.

Range: 1 to 256 characters.

error_msg

String

Definition: Error message, used to explain the cause of an error.

Range: 1 to 1,024 characters.

solution_msg

String

Definition: Resolution suggestion, used to provide a solution for the error.

Range: 0 to 1,024 characters.

Status code: 404

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code, used to identify a specific error type.

Range: 1 to 256 characters.

error_msg

String

Definition: Error message, used to explain the cause of an error.

Range: 1 to 1,024 characters.

solution_msg

String

Definition: Resolution suggestion, used to provide a solution for the error.

Range: 0 to 1,024 characters.

Status code: 500

Table 11 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code, used to identify a specific error type.

Range: 1 to 256 characters.

error_msg

String

Definition: Error message, used to explain the cause of an error.

Range: 1 to 1,024 characters.

solution_msg

String

Definition: Resolution suggestion, used to provide a solution for the error.

Range: 0 to 1,024 characters.

Example Requests

List savepoints of a specified Flink job. By default, the API returns results in reverse chronological order of creation time, with a maximum of 10 records per page.

GET /v2/workspaces/{workspace_id}/flink-jobs/{job_id}/flink-savepoints?offset=0&limit=10

Example Responses

Status code: 200

{
  "count" : 1,
  "savepoints" : [ {
    "savepoint_id" : "019f68a2-5e11-xxxx-xxxx-6e670d65ab03",
    "job_id" : "019f609a-e90c-xxxx-xxxx-a4ec9018e7f2",
    "trigger_type" : "USER_REQUEST",
    "status" : {
      "state" : "COMPLETED"
    },
    "created_time" : 1768444200000,
    "location" : "obs://my-flink-bucket/aidatalake/workspace_57fd5733-xxxx-xxxx-85a9-c6e7f39b1891/flink/endpoint_4702a179-xxxx-xxxx-81c3-6cd4d8090671/jobs/savepoint/019f609a-e90c-xxxx-xxxx-a4ec9018e7f2/2026-01-15_10-30-00/savepoint-2bf36d-c160c7d530c8",
    "description" : "Pre-upgrade backup."
  } ]
}

Status code: 400

{
  "error_code" : "AIDataLake.01011001",
  "error_msg" : "Invalid parameter",
  "solution_msg" : "Please check the input parameters according to the documentation."
}

Status code: 401

{
  "error_code" : "AIDataLake.01011003",
  "error_msg" : "Auth Token not exists in header",
  "solution_msg" : "Please check if auth Token is included in the request header."
}

Status code: 403

{
  "error_code" : "AIDataLake.01011005",
  "error_msg" : "Current account has no permission",
  "solution_msg" : "Please connect administrators to add permission."
}

Status code: 404

{
  "error_code" : "AIDataLake.01051001",
  "error_msg" : "Flink job 019f609a-e90c-xxxx-xxxx-a4ec9018e7f2 does not exist",
  "solution_msg" : "Please check if Flink job 019f609a-e90c-xxxx-xxxx-a4ec9018e7f2 is entered correctly or has been deleted."
}

Status code: 500

{
  "error_code" : "AIDataLake.01010001",
  "error_msg" : "Internal system error",
  "solution_msg" : "Contact operations for analysis."
}

Status Codes

Status Code

Description

200

Request succeeded.

400

Invalid request parameters.

401

Authentication failed.

403

Insufficient permissions.

404

The Flink job does not exist.

500

Internal system error.