All Products
Search
Document Center

Realtime Compute for Apache Flink:ListJobs

Last Updated:Jan 07, 2026

Queries the information about all jobs in a deployment.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
stream:ListJobslist
*All Resources
*
    none
none

Request syntax

GET /api/v2/namespaces/{namespace}/jobs HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspacestringYes

The workspace ID.

a14bd5d90a****
namespacestringYes

The name of the namespace.

default-namespace
pageIndexintegerNo

The page number. Minimum value: 1. Default value: 1.

1
pageSizeintegerNo

The number of entries per page. Valid values: 1 to 100. Default value: 10.

10
deploymentIdstringYes

The deployment ID.

58718c99-3b29-4c5e-93bb-c9fc4ec6****
sortNamestringNo

The collation.

Valid values:

  • gmt_create
  • job_id
  • status
gmt_create

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The request ID.

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

Indicates whether the request was successful.

true
httpCodeinteger

The value was fixed to 200.

200
errorCodestring
  • If the value of success was false, an error code was returned.
  • If the value of success was true, a null value was returned.
""
errorMessagestring
  • If the value of success was false, an error message was returned.
  • If the value of success was true, a null value was returned.
""
pageIndexinteger

The page number.

1
pageSizeinteger

The number of entries per page.

10
totalSizeinteger

The total number of entries returned.

1
dataarray
  • If the value of success was true, all jobs that meet the condition were returned.
  • If the value of success was false, a null value was returned.
jobsJob

The job data.

Examples

Sample success responses

JSONformat

{
  "requestId": "CBC799F0-AS7S-1D30-8A4F-882ED4DD****",
  "success": true,
  "httpCode": 200,
  "errorCode": "",
  "errorMessage": "",
  "pageIndex": 1,
  "pageSize": 10,
  "totalSize": 1,
  "data": [
    {
      "jobId": "354dde66-a3ae-463e-967a-0b4107fd****",
      "deploymentId": "354dde66-a3ae-463e-967a-0b4107fd****",
      "deploymentName": "flinktest",
      "namespace": "namespacetest",
      "executionMode": "BATCH",
      "creator": "27846363877456****",
      "creatorName": "****@streamcompute.onaliyun.com",
      "modifier": "27846363877456****",
      "modifierName": "****@streamcompute.onaliyun.com",
      "startTime": 1660190835,
      "endTime": 1660277235,
      "engineVersion": "vvr-4.0.14-flink-1.13",
      "flinkConf": {
        "test": "test",
        "test2": 1
      },
      "status": {
        "currentJobStatus": "RUNNING",
        "failure": {
          "message": "Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.",
          "reason": "KubernetesDeploymentNotProgressing",
          "failedAt": 1660120062
        },
        "running": {
          "observedFlinkJobRestarts": 4,
          "observedFlinkJobStatus": "RUNNING"
        }
      },
      "metric": {
        "totalMemoryByte": 4096,
        "totalCpu": 2
      },
      "sessionClusterName": "preview",
      "artifact": {
        "sqlArtifact": {
          "sqlScript": "CREATE TEMPORARY TABLE datagen_source(   name VARCHAR ) WITH (   'connector' = 'datagen' ); CREATE TEMPORARY TABLE blackhole_sink(   name  VARCHAR ) with (   'connector' = 'blackhole' ); INSERT INTO blackhole_sink SELECT name from datagen_source;",
          "additionalDependencies": [
            "https://oss/bucket/addition.jar"
          ]
        },
        "jarArtifact": {
          "jarUri": "https://oss/bucket/test.jar",
          "entryClass": "org.apapche.flink.test",
          "mainArgs": "start from main",
          "additionalDependencies": [
            "https://oss/bucket/addition.jar"
          ]
        },
        "pythonArtifact": {
          "pythonArtifactUri": "https://oss/bucket/test.py",
          "mainArgs": "start from main",
          "entryModule": "test.py",
          "additionalDependencies": [
            "https://oss/bucket/addition.py"
          ],
          "additionalPythonLibraries": [
            "https://oss/bucket/additionlib.py"
          ],
          "additionalPythonArchives": [
            "https://oss/bucket/additionArchives.zip"
          ]
        },
        "kind": "SQLSCRIPT"
      },
      "logging": {
        "loggingProfile": "oss",
        "log4j2ConfigurationTemplate": "",
        "log4jLoggers": [
          {
            "loggerName": "StdOutErrConsoleAppender",
            "loggerLevel": "ERROR"
          }
        ],
        "logReservePolicy": {
          "openHistory": true,
          "expirationDays": 7
        }
      },
      "batchResourceSetting": {
        "maxSlot": 10,
        "basicResourceSetting": {
          "parallelism": 4,
          "jobmanagerResourceSettingSpec": {
            "cpu": 2,
            "memory": "4 GiB"
          },
          "taskmanagerResourceSettingSpec": {
            "cpu": 2,
            "memory": "4 GiB"
          }
        }
      },
      "streamingResourceSetting": {
        "resourceSettingMode": "EXPERT",
        "expertResourceSetting": {
          "jobmanagerResourceSettingSpec": {
            "cpu": 2,
            "memory": "4 GiB"
          },
          "resourcePlan": "{\\\"ssgProfiles\\\":[{\\\"name\\\":\\\"default\\\",\\\"cpu\\\":1.13,\\\"heap\\\":\\\"1 gb\\\",\\\"offHeap\\\":\\\"32 mb\\\",\\\"managed\\\":{},\\\"extended\\\":{}}],\\\"nodes\\\":[{\\\"id\\\":1,\\\"type\\\":\\\"StreamExecTableSourceScan\\\",\\\"desc\\\":\\\"Source: datagen_source[78]\\\",\\\"profile\\\":{\\\"group\\\":\\\"default\\\",\\\"parallelism\\\":1,\\\"maxParallelism\\\":32768,\\\"minParallelism\\\":1}},{\\\"id\\\":2,\\\"type\\\":\\\"StreamExecSink\\\",\\\"desc\\\":\\\"Sink: blackhole_sink[79]\\\",\\\"profile\\\":{\\\"group\\\":\\\"default\\\",\\\"parallelism\\\":1,\\\"maxParallelism\\\":32768,\\\"minParallelism\\\":1}}],\\\"edges\\\":[{\\\"source\\\":1,\\\"target\\\":2,\\\"mode\\\":\\\"PIPELINED\\\",\\\"strategy\\\":\\\"FORWARD\\\"}],\\\"vertices\\\":{\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\":[1,2]}}"
        },
        "basicResourceSetting": {
          "parallelism": 4
        }
      },
      "restoreStrategy": {
        "kind": "LATEST_STATE",
        "allowNonRestoredState": true,
        "jobStartTimeInMs": 1660293803155,
        "savepointId": "354dde66-a3ae-463e-967a-0b4107fd****"
      },
      "userFlinkConf": {
        "taskmanager.numberOfTaskSlots": 1,
        "table.exec.state.ttl": "128000s"
      },
      "localVariables": [
        {
          "name": "test",
          "value": "datagen"
        }
      ],
      "workspace": "edcef******b4f",
      "createdAt": 1714058507,
      "modifiedAt": 1714058800
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-12-04The request parameters of the API has changedView Change Details
2024-05-24The request parameters of the API has changedView Change Details