ListAllReleaseWorkflows - List all release workflows under an application

Updated at:

Applicable versions

Central version, Region version

Endpoint and authorization information

  • Get the endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Obtain organizationId: Required only for the Central version. Go to the Basic Information page in the Organization Management console to obtain your organization ID.

Product

Resource

Required permission

Application Delivery

R&D process

Read-only

Request syntax

Central version

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/releaseWorkflows

Region version

GET https://{domain}/oapi/v1/appstack/apps/{appName}/releaseWorkflows

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

appName

string

path

Yes

Application name.

my-app

organizationId

string

path

  • Yes: Central version

  • No: Region version

Organization ID.

ec766e63xxxxx334d6exe671

Request examples

Central version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63xxxxx334d6exe671/apps/my-app/releaseWorkflows' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/apps/my-app/releaseWorkflows' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters #1

Parameter

Type

Description

Example value

-

array

-

object

R&D flow.

appName

string

Application name.

my-web-app

name

string

Name.

my-release-workflow

note

string

Announcement.

my-note

order

string

Sorting order.

1

releaseStages

array

List of R&D phases.

-

object

Workflow stage.

appName

string

Application name.

my-web-app

labels

array

List of labels.

-

object

AppStack label.

displayName

string

Label display name. Used for descriptive purposes and not involved in label matching.

Test tag key

displayValue

string

Label display value. Used for descriptive purposes and not involved in label matching.

Test tag value

extraMap

object

Map of label extension properties. You can use this to store custom extension fields when defining a label.

{}

name

string

Label name. Must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or digit.

demo-label

namespace

string

Label namespace. Determines the scope of the label.

default

value

string

Label value. Must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or digit.

demo-label-value

name

string

Name.

my-stage

order

string

Stage order.

1

pipeline

object

Pipeline V1.

engineType

string

Engine type.

pipeline

object

plugins

array

refObjectList

array[string]

sn

string

Unique serial number.

sn-xxxx

variableGroups

array

List of variable groups.

-

object

Generic variable group model.

displayName

string

Variable group display name.

Development variable group

name

string

Variable group identifier.

dev

type

string

Variable group type.

GLOBAL

sn

string

Unique identifier sn.

sn-xxx

type

string

Release workflow type. Possible values: [CR APP_RELEASE].

CR

Response parameters #2

Parameter

Type

Description

Example value

-

array

-

object

R&D flow

appName

string

Application name

my-web-app

name

string

Name

my-release-workflow

note

string

Announcement

my-note

order

string

Sorting order

1

releaseStages

array

List of R&D phases

-

object

Workflow stage

appName

string

Application name

my-web-app

labels

array

List of labels

-

object

AppStack label

displayName

string

Label display name. Used for descriptive purposes and not involved in label matching

Test tag key

displayValue

string

Label display value. Used for descriptive purposes and not involved in label matching

Test tag value

extraMap

object

Map of label extension properties. You can use this to store custom extension fields when defining a label

{}

name

string

Label name. Must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or digit

demo-label

namespace

string

Label namespace. Determines the scope of the label

default

value

string

Label value. Must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or digit

demo-label-value

name

string

Name

my-stage

order

string

Stage order

1

pipeline

object

Pipeline V2

engineType

string

Engine type

pipeline

object

plugins

array

refObjectList

array[string]

sn

string

Unique serial number

sn-xxxx

variableGroups

array

List of variable groups

-

object

Generic variable group model

displayName

string

Variable group display name

Development variable group

name

string

Variable group identifier

dev

type

string

Variable group type

GLOBAL

sn

string

Unique identifier sn

sn-xxx

type

string

Release workflow type. Possible values: [CR APP_RELEASE]

CR

Response example #1

[
    {
        "appName": "my-web-app",
        "name": "my-release-workflow",
        "note": "my-note",
        "order": "1",
        "releaseStages": [
            {
                "appName": "my-web-app",
                "labels": [
                    {
                        "displayName": "Test tag key",
                        "displayValue": "Test tag value",
                        "extraMap": {},
                        "name": "demo-label",
                        "namespace": "default",
                        "value": "demo-label-value"
                    }
                ],
                "name": "my-stage",
                "order": "1",
                "pipeline": {
                    "engineType": "",
                    "pipeline": {
                    },
                    "plugins": [
                    ],
                    "refObjectList": [
                    ]
                },
                "releaseWorkflowSn": "1484e1faxxxxxxx52607b2eb345",
                "sn": "sn-xxxx",
                "variableGroups": [
                    {
                        "displayName": "Development variable group",
                        "name": "dev",
                        "type": "GLOBAL"
                    }
                ]
            }
        ],
        "sn": "sn-xxx",
        "type": "CR"
    }
]

Response example #2

[
    {
        "appName": "my-web-app",
        "name": "my-release-workflow",
        "note": "my-note",
        "order": "1",
        "releaseStages": [
            {
                "appName": "my-web-app",
                "labels": [
                    {
                        "displayName": "Test tag key",
                        "displayValue": "Test tag value",
                        "extraMap": {},
                        "name": "demo-label",
                        "namespace": "default",
                        "value": "demo-label-value"
                    }
                ],
                "name": "my-stage",
                "order": "1",
                "pipeline": {
                    "engineType": "",
                    "pipeline": {
                    },
                    "plugins": [
                    ],
                    "refObjectList": [
                    ]
                },
                "releaseWorkflowSn": "1484e1faxxxxxxx52607b2eb345",
                "sn": "sn-xxxx",
                "variableGroups": [
                    {
                        "displayName": "Development variable group",
                        "name": "dev",
                        "type": "GLOBAL"
                    }
                ]
            }
        ],
        "sn": "sn-xxx",
        "type": "CR"
    }
]

Error codes

Visit the Error Code Center to view API-related error codes.