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

Viewing Flink Job Details

Function

This API is used to obtain the detailed information of a Flink job instance. This API is synchronous. The response contains the complete configuration and running status of the job.

For job running events, see Listing Flink Job Event Details.

Calling Method

For details, see Calling APIs.

URI

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

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

Request Parameters

Table 2 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 3 Response body parameters

Parameter

Type

Description

job_id

String

Definition: Flink job ID.

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

client_token

String

Definition: Client token, used for idempotency check of API calls.

Range: 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.

name

String

Definition: Job name.

Range: 1 to 128 characters. Must start and end with a letter or digit. Only letters, digits, underscores (_), and hyphens (-) are allowed.

deployment_id

String

Definition: ID of a deployed job.

Range: 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.

endpoint_id

String

Definition: Endpoint ID for job execution.

Range: UUID format, fixed at 36 characters.

endpoint_name

String

Definition: Endpoint name for job execution.

Range: 1 to 63 characters. Only lowercase letters, digits, and hyphens (-) are allowed. It must start with a lowercase letter and end with a lowercase letter or digit.

status

FlinkJobStatus object

Definition: Job status information.

job_agency

String

Definition: User-defined agency name, used to authorize the job to access OBS and other external resources. If not specified, the endpoint agency is used by default.

Range: 1 to 64 characters.

obs_bucket_name

String

Definition: OBS bucket name, used to store job checkpoints, logs, etc.

Range: 1 to 512 characters.

job_config

One of:

Definition: Job configuration parameters, used to specify the Flink job type and execution parameters. The corresponding parameter structure is automatically selected based on the job type: FLINK_SQL_JOB corresponds to ShowFlinkSqlParameterResponse, FLINK_JAR_JOB corresponds to ShowFlinkJarParameterResponse.

resource_config

ShowFlinkResourceConfigResponseBody object

Definition: Resource configuration, including the job parallelism and resource specifications of each component.

image_config

ShowFlinkJobImageConfigResponseBody object

Definition: Image configuration, including the image information for Flink job execution.

flink_config

Map<String,String>

Definition: Flink configuration parameters, in key-value pairs. The key is the Flink configuration item name (e.g., taskmanager.numberOfTaskSlots), and the value is the corresponding configuration value, 1 to 1,024 characters. In addition to user configurations, this parameter also includes system-reserved parameters automatically generated by the system based on the job configuration (e.g., execution.checkpointing.dir, execution.checkpointing.savepoint-dir, high-availability.storageDir).

execution_mode

String

Definition: Flink job execution mode.

Range

  • STREAMING: Streaming mode.

  • BATCH: Batch mode.

restore_strategy

ShowRestoreStrategyResponseBody object

Definition: Restoration policy configuration, including the Flink job state restoration type and the parameters corresponding to each type.

logging_config

ShowFlinkLoggingConfigResponseBody object

Definition: Log configuration, including the root log level and custom class log levels.

metric

FlinkResourceMetric object

Definition: Job metric information.

create_time

Long

Definition: Creation timestamp.

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

create_user

FlinkCreateUser object

Definition: Creator information.

update_time

Long

Definition: Update timestamp.

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

update_user

FlinkUpdateUser object

Definition: Updater information.

log_url

String

Definition: Log archive path (OBS URL), used to view job execution logs.

Range: OBS URL format, 1 to 1,024 characters.

labels

Array of FlinkLabel objects

Definition: Tags, used for job classification and filtering.

description

String

Definition: Description.

Range: 1 to 512 characters.

start_time

Long

Definition: Job start timestamp (time when the job entered the RUNNING state).

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

end_time

Long

Definition: Job end timestamp (time when the job entered the FINISHED, CANCELLED, or FAILED state).

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

Table 4 FlinkJobStatus

Parameter

Type

Description

state

String

Definition: Current job status.

Range

  • CREATED: Created.

  • STARTING: Starting.

  • RUNNING: Running.

  • CANCELLING: Canceling.

  • FAILED: Failed.

  • CANCELLED: Canceled.

  • FINISHED: Finished.

state_message

String

Definition: Status message details, including supplementary information or error details for status changes.

Range: 0 to 1,024 characters.

Table 5 ShowFlinkSqlParameterResponse

Parameter

Type

Description

type

String

Definition: Job type, used to distinguish between Flink SQL jobs and Flink Jar jobs.

Range

  • FLINK_SQL_JOB: Flink SQL job.

sql_script_file

String

Definition: OBS file path of the SQL script, used to specify the script file for the SQL job.

Range: OBS URL format, 1 to 512 characters, starting with obs://.

dependency_jars

Array of strings

Definition: OBS path list of JAR files that the SQL job depends on, used to specify the JAR files required for job execution. Each path is in OBS URL format, 1 to 512 characters, starting with obs://.

Table 6 ShowFlinkJarParameterResponse

Parameter

Type

Description

type

String

Definition: Job type, used to distinguish between Flink SQL jobs and Flink Jar jobs.

Range

  • FLINK_JAR_JOB: Flink Jar job.

main_jar

String

Definition: OBS path of the JAR file containing the main class, used to specify the entry JAR file.

Range: 1 to 512 characters, starting with obs://.

main_class

String

Definition: Jar job entry class name, used to specify the entry class of the job.

Range: Up to 512 characters.

main_args

Array of strings

Definition: Jar job entry class parameters, used to pass runtime parameters.

dependency_jars

Array of strings

Definition: OBS path of the Jar job dependency JAR files, used to specify the dependency JAR files required for job execution.

dependency_files

Array of strings

Definition: OBS path list of the Jar job dependency files, used to specify the dependency files required for job execution.

Table 7 ShowFlinkResourceConfigResponseBody

Parameter

Type

Description

parallelism

Integer

Definition: Job parallelism.

Range: 1 to 1,000.

jobmanager_resource_spec

ShowFlinkResourceSpecResponseBody object

Definition: JobManager resource specification, including CPU, memory, disk, etc.

taskmanager_resource_spec

ShowFlinkResourceSpecResponseBody object

Definition: TaskManager resource specification, including CPU, memory, disk, etc.

Table 8 ShowFlinkResourceSpecResponseBody

Parameter

Type

Description

cpu

Integer

Definition: Number of CPU millicores, in millicores.

Range: 500 to 48,000.

memory

Integer

Definition: Memory size, in MB.

Range: 2,048 to 393,216.

disk

Integer

Definition: Pod ephemeral storage capacity, in GB.

Range: 30 to 1,024.

Table 9 ShowFlinkJobImageConfigResponseBody

Parameter

Type

Description

image_id

String

Definition: Image ID, the image used by the Flink job.

Range: 2 to 64 characters.

image_version_id

String

Definition: Image version ID, the image version used by the Flink job.

Range: 2 to 64 characters.

release_version

String

Definition: Version information of the Flink job, in the format AIDataLake.<platform version>(Flink<Flink version>,JRE<JRE version>), for example, AIDataLake.26.9.0(Flink1.20.0,JRE21).

image_version_type

String

Definition: Image version type used by the Flink job.

Range

  • STABLE: Stable version.

  • RECOMMEND: Recommended version.

  • BETA: Beta version.

Table 10 ShowRestoreStrategyResponseBody

Parameter

Type

Description

restore_type

String

Definition: Restoration type, the job restoration policy.

Range

  • NONE: Start without state.

  • FROM_SAVEPOINT_ID: Restore from a specified savepoint snapshot.

  • FROM_CHECKPOINT_PATH: Restore from a specified checkpoint path.

  • FROM_SPECIFIED_TIMESTAMP: Restore from a specified timestamp.

savepoint_id

String

Definition: Savepoint ID, uniquely identifying a snapshot. Returned when restore_type is FROM_SAVEPOINT_ID.

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

checkpoint_path

String

Definition: Checkpoint storage path, pointing to the parent directory of the _metadata file. Returned only when restore_type is FROM_CHECKPOINT_PATH.

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

allow_non_restored_state

Boolean

Definition: Whether to allow ignoring partial operator state. Returned only when restore_type is FROM_SAVEPOINT_ID or FROM_CHECKPOINT_PATH.

Range

  • true: Partial operator states can be ignored. If set to true, and the snapshot contains operator states that are no longer used by the current job, these states will be skipped instead of reporting an error.

  • false: Operator states cannot be ignored.

job_start_time_in_ms

Long

Definition: Timestamp for the data consumption start point of the source table, used to specify when the job starts consuming data from the source table. Returned only when restore_type is FROM_SPECIFIED_TIMESTAMP, and only supports Kafka source tables.

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

Table 11 ShowFlinkLoggingConfigResponseBody

Parameter

Type

Description

root_logger_level

String

Definition: Root log level.

Range

  • TRACE: Trace.

  • DEBUG: Debug.

  • INFO: Information.

  • WARN: Warning.

  • ERROR: Error.

log4j_loggers

Array of ShowFlinkLog4jLoggersResponseBody objects

Definition: Custom log class configuration list.

Table 12 ShowFlinkLog4jLoggersResponseBody

Parameter

Type

Description

logger_name

String

Definition: Log class name.

Range: 1 to 256 characters.

logger_level

String

Definition: Log level.

Range

  • TRACE: Trace.

  • DEBUG: Debug.

  • INFO: Information.

  • WARN: Warning.

  • ERROR: Error.

Table 13 FlinkResourceMetric

Parameter

Type

Description

total_memory

Long

Definition: Total memory, in MB.

Range: 0 to 9,223,372,036,854,775,807.

total_cpu

Long

Definition: Total number of CPUs, in millicores.

Range: 0 to 9,223,372,036,854,775,807.

total_disk

Long

Definition: Total disk capacity, in GB.

Range: 0 to 9,223,372,036,854,775,807.

Table 14 FlinkCreateUser

Parameter

Type

Description

user_id

String

Definition: Creator user ID, used to identify the creator of the job.

Range: 1 to 128 characters. Only letters and digits are allowed.

user_name

String

Definition: Creator username, used to display the name of the job creator.

Range: 0 to 128 characters.

Table 15 FlinkUpdateUser

Parameter

Type

Description

user_id

String

Definition: Updater user ID, used to identify the updater of the job.

Range: 1 to 128 characters. Only letters and digits are allowed.

user_name

String

Definition: Updater user name, used to display the name of the job updater.

Range: 0 to 128 characters.

Table 16 FlinkLabel

Parameter

Type

Description

key

String

Definition: Tag key.

Range: 1 to 128 characters. The equal sign (=) is not allowed.

value

String

Definition: Tag value.

Range: 1 to 512 characters, with no character type restrictions.

Status code: 400

Table 17 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 18 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 19 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 20 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 21 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

View the complete details of the specified Flink job, including job configuration, resource configuration, image configuration, execution status, etc.

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

Example Responses

Status code: 200

{
  "job_id" : "019f609a-e90c-xxxx-xxxx-a4ec9018e7f2",
  "client_token" : "019f8cc4-1cf2-xxxx-xxxx-bf8634076872",
  "name" : "test-flink-job",
  "endpoint_id" : "4702a179-xxxx-xxxx-81c3-6cd4d8090671",
  "endpoint_name" : "test-endpoint",
  "status" : {
    "state" : "RUNNING"
  },
  "job_agency" : "test-agency",
  "obs_bucket_name" : "my-flink-bucket",
  "job_config" : {
    "type" : "FLINK_SQL_JOB",
    "sql_script_file" : "obs://my-flink-bucket/path/to/script.sql"
  },
  "resource_config" : {
    "parallelism" : 1,
    "jobmanager_resource_spec" : {
      "cpu" : 1000,
      "memory" : 4096,
      "disk" : 30
    },
    "taskmanager_resource_spec" : {
      "cpu" : 1000,
      "memory" : 4096,
      "disk" : 30
    }
  },
  "image_config" : {
    "image_id" : "de67c4dc-xxxx-xxxx-xxxx-db12828dab7a",
    "image_version_id" : "e0ebd72a-xxxx-xxxx-xxxx-1252617297fb",
    "release_version" : "AIDataLake.26.9.0(Flink1.20.0,JRE21)",
    "image_version_type" : "STABLE"
  },
  "flink_config" : {
    "taskmanager.numberOfTaskSlots" : "1",
    "high-availability.storageDir" : "obs://my-flink-bucket/aidatalake/workspace_57fd5733-xxxx-xxxx-85a9-c6e7f39b1891/flink/endpoint_4702a179-xxxx-xxxx-81c3-6cd4d8090671/jobs/ha/019f609a-e90c-xxxx-xxxx-a4ec9018e7f2",
    "execution.checkpointing.savepoint-dir" : "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",
    "execution.checkpointing.num-retained" : "6",
    "execution.checkpointing.dir" : "obs://my-flink-bucket/aidatalake/workspace_57fd5733-xxxx-xxxx-85a9-c6e7f39b1891/flink/endpoint_4702a179-xxxx-xxxx-81c3-6cd4d8090671/jobs/checkpoint/019f609a-e90c-xxxx-xxxx-a4ec9018e7f2"
  },
  "execution_mode" : "STREAMING",
  "restore_strategy" : {
    "restore_type" : "NONE"
  },
  "logging_config" : {
    "root_logger_level" : "INFO"
  },
  "metric" : {
    "total_cpu" : 2000,
    "total_memory" : 8192,
    "total_disk" : 60
  },
  "create_time" : 1705896000000,
  "create_user" : {
    "user_id" : "001",
    "user_name" : "testuser"
  },
  "update_time" : 1705896000000,
  "update_user" : {
    "user_id" : "001",
    "user_name" : "testuser"
  },
  "log_url" : "obs://my-flink-bucket/aidatalake/workspace_57fd5733-xxxx-xxxx-85a9-c6e7f39b1891/flink/endpoint_4702a179-xxxx-xxxx-81c3-6cd4d8090671/jobs/logs/019f609a-e90c-xxxx-xxxx-a4ec9018e7f2",
  "description" : "Test Flink job.",
  "start_time" : 1705896545546,
  "end_time" : 0
}

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.