ListAppOrchestration - List application orchestrations

Updated at:

Version

Edition

Endpoints and authorization

  • Get an endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Get the organization ID: Required only for the centralized edition. Go to the organization management console and find your organization ID on the basic information page.

Product

Resource

Required permissions

application delivery

application orchestration

read-only

Request syntax

Centralized

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

Region

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

Request header

Parameter

Type

Required

Description

Example value

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-web-service

organizationId

string

path

  • Required for the central edition.

  • Optional for the Region edition.

The organization ID.

bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0

Request examples

Centralized

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0/apps/my-web-service/orchestrations' \
  -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-web-service/orchestrations' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

Pagination data.

current

number

The current page number.

1

pageSize

number

The number of items per page.

10

pages

number

The total number of pages.

10

records

array

The data list.

-

object

A built-in application orchestration object.

app

object

The application object.

creatorId

string

The ID of the application creator.

user-xxxx

description

string

The description of the application.

app-description-xxx

favoured

boolean

Indicates whether the application is marked as a favorite.

false

gmtCreate

string

The time when the application was created.

2024-09-01 00:00:00

labelList

array

The list of application labels.

-

object

An AppStack label.

displayName

string

The display name of the label, used for informational purposes only. It does not affect label matching.

Test Label Key

displayValue

string

The display value of the label, used for informational purposes only. It does not affect label matching.

Test Label Value

extraMap

object

A map of extended attributes for the label, used to store custom fields.

{}

name

string

The label name. It must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or a digit.

demo-label

namespace

string

The namespace of the label, which determines its scope.

default

value

string

The label value. It must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or a digit.

demo-label-value

name

string

The name of the application.

app-name-xxx

type

string

The application type. Possible values: APP, SYSTEM.

APP

componentList

array

A list of components that form the orchestration.

-

object

An orchestration component.

content

string

The component's content, formatted using the Go text/template library.

---\napiVersion: v1\nkind: Service\nmetadata:\n name: prod-sidecar-test-{{ .AppStack.envName }}\n # Namespace configuration:\n # We recommend using a different Kubernetes namespace for each environment to achieve environment isolation.\n # During deployment, Alibaba Cloud DevOps replaces the placeholder {{ .Values.namespace }} with the actual value you set.\n namespace: {{ .Values.namespace }}\nspec:\n selector:\n run: prod-sidecar-test-{{ .AppStack.envName }}\n ports:\n - protocol: TCP\n port: 80\n targetPort: 8080

description

string

The description of the component.

Example description

kind

string

The component type. For Kubernetes scenarios, this should correspond to the kind of the Kubernetes object.

Service

name

string

The name of the component.

demo-service

priority

integer

The deployment priority of the component, starting from 1. Components are deployed in ascending order of this value.

1

type

string

The deployment architecture type, such as Kubernetes or host. Possible values: KUBERNETES, HOST.

KUBERNETES

creatorId

string

The ID of the orchestration creator.

app-builtin-creator-id

description

string

The orchestration description.

app-builtin-orchestration-description

format

string

The orchestration format.

MANIFEST

gmtCreate

string

The time when the orchestration was created.

2024-09-01 00:00:00

gmtModified

string

The time when the orchestration was last modified.

2024-09-01 00:00:00

groupNameMap

object

A map of release stage names, where the key is the zero-based stage index and the value is the stage name. If unspecified, default names are used.

labelList

array

A list of labels for the orchestration.

-

object

An AppStack label.

displayName

string

The display name of the label, used for informational purposes only. It does not affect label matching.

Test Label Key

displayValue

string

The display value of the label, used for informational purposes only. It does not affect label matching.

Test Label Value

extraMap

object

A map of extended attributes for the label, used to store custom fields.

{}

name

string

The label name. It must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or a digit.

demo-label

namespace

string

The namespace of the label, which determines its scope.

default

value

string

The label value. It must contain only lowercase letters, hyphens, and digits, and must start and end with a lowercase letter or a digit.

demo-label-value

labelPolicy

string

The label policy.

NONE

modifierId

string

The ID of the modifier.

app-builtin-modifier-id

name

string

The orchestration name.

app-builtin-orchestration-name

placeholderList

array

A list of placeholders.

-

object

A placeholder definition.

description

string

The description of the placeholder.

Memory limit

name

string

The name of the placeholder.

memoryLimit

overridable

boolean

Indicates whether the placeholder can be modified during deployment.

true

predefined

boolean

Indicates whether the placeholder is predefined.

false

rsType

string

The deployment architecture type, such as Kubernetes or host. Possible values: KUBERNETES, HOST.

KUBERNETES

rule

string

The validation rules for the placeholder's value.

""

type

string

The placeholder's data type. Possible values: string, number, boolean, float, object.

string

value

string

The value of the placeholder.

1024Mi

valueSource

string

The source of the placeholder's value, such as a constant or a variable. Possible values: CONSTANT, VARIABLE, NULL.

CONSTANT

revision

object

Details of the orchestration revision.

author

string

The author of the orchestration revision.

user-xxx

commitTime

string

The commit time of the orchestration revision.

2024-09-01 00:00:00

message

string

The commit message for the orchestration revision.

revision-message-xxx

sha

string

The commit SHA for the orchestration revision.

revision-sha-xxx

sn

string

The unique serial number of the orchestration.

app-builtin-orchestration-1

storageType

string

The storage type.

BUILTIN

suitableResourceTypes

array[string]

The applicable resource types.

syncSourceTemplate

object

The source template for the orchestration sync.

appTemplateName

string

The name of the application template.

app-template-name

orchestrationSha

string

The commit SHA for the application template version.

app-template-version-sha

type

string

The orchestration type.

AppBuiltInOrchestration

total

number

The total number of records.

10

Response example

{
    "current": 1,
    "pageSize": 10,
    "pages": 10,
    "records": [
        {
            "app": {
                "creatorId": "user-xxxx",
                "description": "app-description-xxx",
                "favoured": false,
                "gmtCreate": "2024-09-01 00:00:00",
                "labelList": [
                    {
                        "displayName": "Test label key",
                        "displayValue": "Test label value",
                        "extraMap": {},
                        "name": "demo-label",
                        "namespace": "default",
                        "value": "demo-label-value"
                    }
                ],
                "name": "app-name-xxx",
                "type": "APP"
            },
            "componentList": [
                {
                    "content": "---\napiVersion: v1\nkind: Service\nmetadata:\n name: prod-sidecar-test-{{ .AppStack.envName }}\n # Namespace Configuration\n # Use a different Kubernetes namespace for each environment to ensure isolation.\n # During deployment, Alibaba Cloud DevOps replaces the `{{ .Values.namespace }}` placeholder with the configured namespace value.\n namespace: {{ .Values.namespace }}\nspec:\n selector:\n run: prod-sidecar-test-{{ .AppStack.envName }}\n ports:\n - protocol: TCP\n port: 80\n targetPort: 8080",
                    "description": "Sample description",
                    "kind": "Service",
                    "name": "demo-service",
                    "priority": 1,
                    "type": "KUBERNETES"
                }
            ],
            "creatorId": "app-builtin-creator-id",
            "description": "app-builtin-orchestration-description",
            "format": "MANIFEST",
            "gmtCreate": "2024-09-01 00:00:00",
            "gmtModified": "2024-09-01 00:00:00",
            "groupNameMap": {
            },
            "labelList": [
                {
                    "displayName": "Test label key",
                    "displayValue": "Test label value",
                    "extraMap": {},
                    "name": "demo-label",
                    "namespace": "default",
                    "value": "demo-label-value"
                }
            ],
            "labelPolicy": "NONE",
            "modifierId": "app-builtin-modifier-id",
            "name": "app-builtin-orchestration-name",
            "placeholderList": [
                {
                    "description": "memory limit",
                    "name": "memoryLimit",
                    "overridable": true,
                    "predefined": false,
                    "rsType": "KUBERNETES",
                    "rule": "\"\"",
                    "type": "string",
                    "value": "1024Mi",
                    "valueSource": "CONSTANT"
                }
            ],
            "revision": {
                "author": "user-xxx",
                "commitTime": "2024-09-01 00:00:00",
                "message": "revision-message-xxx",
                "sha": "revision-sha-xxx"
            },
            "sn": "app-builtin-orchestration-1",
            "storageType": "BUILTIN",
            "suitableResourceTypes": [
                
            ],
            "syncSourceTemplate": {
                "appTemplateName": "app-template-name",
                "orchestrationSha": "app-template-version-sha"
            },
            "type": "AppBuiltInOrchestration"
        }
    ],
    "total": 10
}

Error codes

Refer to the Error Code Center for API error codes.