GetReleaseWorkflowStage

Updated at:

Editions

Central, Regional

Service endpoint and authorization

Product

Resource

Permissions

Application Delivery

development stage

read-only

Request syntax

Centralized version

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/releaseWorkflow/{releaseWorkflowSn}/releaseStage/{releaseStageSn}

Regional version

GET https://{domain}/oapi/v1/appstack/apps/{appName}/releaseWorkflow/{releaseWorkflowSn}/releaseStage/{releaseStageSn}

Request header

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

A personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

appName

string

path

Yes

The application name.

my-app

releaseWorkflowSn

string

path

Yes

The unique identifier for the release workflow.

3f472a12b15d4f418ad6227bb85f787c

releaseStageSn

string

path

Yes

The unique identifier for the release stage.

6b4c53eee9a842c6a11235b29d002a81

organizationId

string

path

  • Required for the centralized edition.

  • Optional for the region edition.

The ID of the organization.

ec766e63aee3437d9a51f334d6exe671

Request example

Centralized

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-app/releaseWorkflow/3f472a12b15d4f418ad6227bb85f787c/releaseStage/6b4c53eee9a842c6a11235b29d002a81' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Regional

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

Return parameters #1

Parameter

Type

Description

Value

-

object

The flow stage.

appName

string

The application name.

my-web-app

labels

array

A list of tags.

-

object

An AppStack tag.

displayName

string

The display name of the tag. This is used for descriptive purposes and is not involved in tag matching.

Test tag key

displayValue

string

The display value of the tag. This is used for descriptive purposes and is not involved in tag matching.

Test tag value

extraMap

object

A map of extended attributes for the tag. This map stores custom fields for the tag.

map[]

name

string

The tag name. It can contain only lowercase letters, hyphens (-), and numbers. It must start and end with a lowercase letter or a number.

demo-tag

namespace

string

The tag namespace, which determines the scope of the tag.

default

value

string

The tag value. It can contain only lowercase letters, hyphens (-), and numbers. It must start and end with a lowercase letter or a number.

demo-tag-value

name

string

The flow stage name.

my-stage

order

string

The stage order.

1

pipeline

object

The pipeline (V1).

engineSn

string

The Flow pipeline identifier.

321

engineType

string

Possible values: FlowV1, FlowV2, and FlowAny.

FlowV1

pipeline

object

pipelineYaml

string

The pipeline definition in YAML format.

{"name":"my-flow-name","owner":"31a62065395ee4198d5516a8","pipelineConfigVo":{"triggerVoList":[{"type":"MANUAL"}],"settings":"{\\"executeScope\\":\\"\\",\\"caches\\":[{\\"directory\\":\\"/root/.m2\\",\\"desc\\":\\"Maven dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.gradle/caches\\",\\"desc\\":\\"Gradle dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.npm\\",\\"desc\\":\\"npm dependency global cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.yarn\\",\\"desc\\":\\"yarn dependency global cache\\",\\"disable\\":false},{\\"directory\\":\\"/go/pkg/mod\\",\\"desc\\":\\"Go mod cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.cache\\",\\"desc\\":\\"Other caches\\",\\"disable\\":false}]}","flow":"schema: tb\\npipeline:\\n - name: Stage 1\\n stages:\\n - driven: AUTO\\n jobs:\\n - displayName: Empty task\\n task: execution-component@66\\n identifier: \'10_1726646111967\'\\n templateType: task\\n templateSign: \'\'\\n templateBatchUpdate: \'N\'\\n extraInfo: \'\'\\n params:\\n ENGINE_PIPELINE_NAME: \'${INPUTS.ENGINE_PIPELINE_NAME}\'\\n ENGINE_PIPELINE_ID: \'${INPUTS.ENGINE_PIPELINE_ID}\'\\n ENGINE_PIPELINE_INST_ID: \'${INPUTS.ENGINE_PIPELINE_INST_ID}\'\\n ENGINE_PIPELINE_INST_NUMBER: \'${INPUTS.ENGINE_PIPELINE_INST_NUMBER}\'\\n buildNodeGroup: K8S-4\\n capabilities: \'Linux,amd64\'\\n buildEnvironment: container\\n specifyContainerImageId: >-\\n build-steps-public-registry.cn-beijing.cr.aliyuncs.com/build-steps/alinux3:latest\\n clone_option: all\\n selected_sources: \'\'\\n steps: []\\n plugins: []\\n output: []\\n freeInTaskGroupModeFields: []\\n","sources":"[]","webhook":"e0aO78pcq8n5XaFe81b1"},"originPipelineId":1}

plugins

object

A list of plugins.

[]

refObjectList

object

A list of referenced objects.

[]

releaseWorkflowSn

string

The serial number of the release workflow.

1484e1facb5a4febbe1652607b2eb345

sn

string

The unique serial number.

sn-xxxx

variableGroups

array

A list of variable groups.

-

object

A generic variable group model.

displayName

string

The display name of the variable group.

Dev variable group

name

string

The identifier for the variable group.

dev

type

string

The type of the variable group.

GLOBAL

Return parameters #2

Parameter

Type

Description

Value

-

object

The flow stage.

appName

string

The application name.

my-web-app

labels

array

A list of tags.

-

object

An AppStack tag.

displayName

string

The display name of the tag. This is used for descriptive purposes and is not involved in tag matching.

Test tag key

displayValue

string

The display value of the tag. This is used for descriptive purposes and is not involved in tag matching.

Test tag value

extraMap

object

A map of extended attributes for the tag. This map stores custom fields for the tag.

map[]

name

string

The tag name. It can contain only lowercase letters, hyphens (-), and numbers. It must start and end with a lowercase letter or a number.

demo-tag

namespace

string

The tag namespace, which determines the scope of the tag.

default

value

string

The tag value. It can contain only lowercase letters, hyphens (-), and numbers. It must start and end with a lowercase letter or a number.

demo-tag-value

name

string

The flow stage name.

my-stage

order

string

The stage order.

1

pipeline

object

The pipeline (V2).

engineSn

string

The Flow pipeline identifier.

321

engineType

string

Possible values: FlowV1, FlowV2, and FlowAny.

FlowV2

pipeline

object

pipelineYaml

string

The pipeline definition in YAML format.

{"name":"my-flow-name","owner":"31a62065395ee4198d5516a8","pipelineConfigVo":{"triggerVoList":[{"type":"MANUAL"}],"settings":"{\\"executeScope\\":\\"\\",\\"caches\\":[{\\"directory\\":\\"/root/.m2\\",\\"desc\\":\\"maven dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.gradle/caches\\",\\"desc\\":\\"gradle dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.npm\\",\\"desc\\":\\"npm global dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.yarn\\",\\"desc\\":\\"yarn global dependency cache\\",\\"disable\\":false},{\\"directory\\":\\"/go/pkg/mod\\",\\"desc\\":\\"go mod cache\\",\\"disable\\":false},{\\"directory\\":\\"/root/.cache\\",\\"desc\\":\\"other caches\\",\\"disable\\":false}]}","flow":"schema: tb\\npipeline:\\n - name: Stage 1\\n stages:\\n - driven: AUTO\\n jobs:\\n - displayName: Empty task\\n task: execution-component@66\\n identifier: \'10_1726646111967\'\\n templateType: task\\n templateSign: \'\'\\n templateBatchUpdate: \'N\'\\n extraInfo: \'\'\\n params:\\n ENGINE_PIPELINE_NAME: \'${INPUTS.ENGINE_PIPELINE_NAME}\'\\n ENGINE_PIPELINE_ID: \'${INPUTS.ENGINE_PIPELINE_ID}\'\\n ENGINE_PIPELINE_INST_ID: \'${INPUTS.ENGINE_PIPELINE_INST_ID}\'\\n ENGINE_PIPELINE_INST_NUMBER: \'${INPUTS.ENGINE_PIPELINE_INST_NUMBER}\'\\n buildNodeGroup: K8S-4\\n capabilities: \'Linux,amd64\'\\n buildEnvironment: container\\n specifyContainerImageId: >-\\n build-steps-public-registry.cn-beijing.cr.aliyuncs.com/build-steps/alinux3:latest\\n clone_option: all\\n selected_sources: \'\'\\n steps: []\\n plugins: []\\n output: []\\n freeInTaskGroupModeFields: []\\n","sources":"[]","webhook":"e0aO78pcq8n5XaFe81b1"},"originPipelineId":1}

plugins

object

A list of plugins.

[]

refObjectList

object

A list of referenced objects.

[]

releaseWorkflowSn

string

The serial number of the release workflow.

1484e1facb5a4febbe1652607b2eb345

sn

string

The unique serial number.

sn-xxxx

variableGroups

array

A list of variable groups.

-

object

A generic variable group model.

displayName

string

The display name of the variable group.

Dev variable group

name

string

The identifier for the variable group.

dev

type

string

The type of the variable group.

GLOBAL

Example response #1

{
    "appName": "my-web-app",
    "labels": [
        {
            "displayName": "Test label key",
            "displayValue": "Test label value",
            "extraMap": {
            },
            "name": "demo-label",
            "namespace": "default",
            "value": "demo-label-value"
        }
    ],
    "name": "my-stage",
    "order": "1",
    "pipeline": {
        "engineSn": "321",
        "engineType": "FlowV1",
        "pipeline": {
        },
        "pipelineYaml": "{\"name\":\"my-flow-name\",\"owner\":\"31a62065395ee4198d5516a8\",\"pipelineConfigVo\":{\"triggerVoList\":[{\"type\":\"MANUAL\"}],\"settings\":\"{\\\"executeScope\\\":\\\"\\\",\\\"caches\\\":[{\\\"directory\\\":\\\"/root/.m2\\\",\\\"desc\\\":\\\"maven dependency cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.gradle/caches\\\",\\\"desc\\\":\\\"gradle dependency cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.npm\\\",\\\"desc\\\":\\\"npm global cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.yarn\\\",\\\"desc\\\":\\\"yarn global cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/go/pkg/mod\\\",\\\"desc\\\":\\\"go mod cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.cache\\\",\\\"desc\\\":\\\"other cache\\\",\\\"disable\\\":false}]}","flow":"schema: tb\\npipeline:\\n - name: Stage 1\\n stages:\\n - driven: AUTO\\n jobs:\\n - displayName: Empty task\\n task: execution-component@66\\n identifier: \'10_1726646111967\'\\n templateType: task\\n templateSign: \'\'\\n templateBatchUpdate: \'N\'\\n extraInfo: \'\'\\n params:\\n ENGINE_PIPELINE_NAME: \'${INPUTS.ENGINE_PIPELINE_NAME}\'\\n ENGINE_PIPELINE_ID: \'${INPUTS.ENGINE_PIPELINE_ID}\'\\n ENGINE_PIPELINE_INST_ID: \'${INPUTS.ENGINE_PIPELINE_INST_ID}\'\\n ENGINE_PIPELINE_INST_NUMBER: \'${INPUTS.ENGINE_PIPELINE_INST_NUMBER}\'\\n buildNodeGroup: K8S-4\\n capabilities: \'Linux,amd64\'\\n buildEnvironment: container\\n specifyContainerImageId: >-\\n build-steps-public-registry.cn-beijing.cr.aliyuncs.com/build-steps/alinux3:latest\\n clone_option: all\\n selected_sources: \'\'\\n steps: []\\n plugins: []\\n output: []\\n freeInTaskGroupModeFields: []\\n","sources":"[]","webhook":"e0aO78pcq8n5XaFe81b1"},"originPipelineId":1}",
        "plugins": {
        },
        "refObjectList": {
        }
    }
    "releaseWorkflowSn": "1484e1facb5a4febbe1652607b2eb345",
    "sn": "sn-xxxx",
    "variableGroups": [
        {
            "displayName": "Development variable group",
            "name": "dev",
            "type": "GLOBAL"
        }
    ]
}

Example response #2

{
    "appName": "my-web-app",
    "labels": [
        {
            "displayName": "Test label key",
            "displayValue": "Test label value",
            "extraMap": {
            },
            "name": "demo-label",
            "namespace": "default",
            "value": "demo-label-value"
        }
    ],
    "name": "my-stage",
    "order": "1",
    "pipeline": {
        "engineSn": "321",
        "engineType": "FlowV1",
        "pipeline": {
        },
        "pipelineYaml": "{\"name\":\"my-flow-name\",\"owner\":\"31a62065395ee4198d5516a8\",\"pipelineConfigVo\":{\"triggerVoList\":[{\"type\":\"MANUAL\"}],\"settings\":\"{\\\"executeScope\\\":\\\"\\\",\\\"caches\\\":[{\\\"directory\\\":\\\"/root/.m2\\\",\\\"desc\\\":\\\"maven dependency cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.gradle/caches\\\",\\\"desc\\\":\\\"gradle dependency cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.npm\\\",\\\"desc\\\":\\\"npm global cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.yarn\\\",\\\"desc\\\":\\\"yarn global cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/go/pkg/mod\\\",\\\"desc\\\":\\\"go mod cache\\\",\\\"disable\\\":false},{\\\"directory\\\":\\\"/root/.cache\\\",\\\"desc\\\":\\\"other cache\\\",\\\"disable\\\":false}]}","flow":"schema: tb\\npipeline:\\n - name: Stage 1\\n stages:\\n - driven: AUTO\\n jobs:\\n - displayName: Empty task\\n task: execution-component@66\\n identifier: \'10_1726646111967\'\\n templateType: task\\n templateSign: \'\'\\n templateBatchUpdate: \'N\'\\n extraInfo: \'\'\\n params:\\n ENGINE_PIPELINE_NAME: \'${INPUTS.ENGINE_PIPELINE_NAME}\'\\n ENGINE_PIPELINE_ID: \'${INPUTS.ENGINE_PIPELINE_ID}\'\\n ENGINE_PIPELINE_INST_ID: \'${INPUTS.ENGINE_PIPELINE_INST_ID}\'\\n ENGINE_PIPELINE_INST_NUMBER: \'${INPUTS.ENGINE_PIPELINE_INST_NUMBER}\'\\n buildNodeGroup: K8S-4\\n capabilities: \'Linux,amd64\'\\n buildEnvironment: container\\n specifyContainerImageId: >-\\n build-steps-public-registry.cn-beijing.cr.aliyuncs.com/build-steps/alinux3:latest\\n clone_option: all\\n selected_sources: \'\'\\n steps: []\\n plugins: []\\n output: []\\n freeInTaskGroupModeFields: []\\n","sources":"[]","webhook":"e0aO78pcq8n5XaFe81b1"},"originPipelineId":1}",
        "plugins": {
        },
        "refObjectList": {
        }
    }
    "releaseWorkflowSn": "1484e1facb5a4febbe1652607b2eb345",
    "sn": "sn-xxxx",
    "variableGroups": [
        {
            "displayName": "Development variable group",
            "name": "dev",
            "type": "GLOBAL"
        }
    ]
}

Error codes

For API error codes, see the Error Center.