ListPipelineJobs - List pipeline jobs by task category

Updated at:

Lists pipeline jobs grouped by task category.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Obtain the endpoint: Replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organizationId: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain your organization ID.

Product

Resource

Required permission

Pipeline

Pipeline

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/listTasksByCategory/{category}

Region edition

GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/listTasksByCategory/{category}

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

The personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The enterprise ID.

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

The pipeline ID.

123

category

string

path

Yes

The task category. Only DEPLOY is supported.

DEPLOY

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/listTasksByCategory/DEPLOY' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/pipelines/123/listTasksByCategory/DEPLOY' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

array

-

object

identifier

string

The task identifier.

ss_saxsxsxs

jobName

string

The job name.

Job name

lastJobId

integer

The ID of the most recent job run.

123

lastJobParams

string

The parameters of the most recent job run.

{}

Response example

[
    {
        "identifier": "ss_saxsxsxs",
        "jobName": "Job name",
        "lastJobId": 123,
        "lastJobParams": "{}"
    }
]

Error codes

For more information, see Error code center.