GetAppOrchestration - Get application orchestration details

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.
  • Get organizationId: Required for Central version only. Go to the Basic Information page in the Organization Management console to obtain your organization ID.

Product

Resource

Required permission

Application Delivery

Application Orchestration

Read-only

Request syntax

Central version

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

Region version

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

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example

appName

string

path

Yes

Application name.

my-web-service

organizationId

string

path

  • Yes: Central version

  • No: Region version

Organization ID.

99d1****71d4

sn

string

path

Yes

Unique serial number of the application orchestration. If tagName and sha are not specified, the latest version is retrieved.

my-web-service@KUBERNETES

tagName

string

query

No

Orchestration tag.

demotag

sha

string

query

No

Orchestration commit SHA.

d23ccbd926c31e3ca0b153f22c4548b93b1426e

Request examples

Central version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/99d1****71d4/apps/my-web-service/orchestrations/my-web-service@KUBERNETES?tagName=demotag&sha=d23ccbd926c31e3ca0b153f22c4548b93b1426e' \
  -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-web-service/orchestrations/my-web-service@KUBERNETES?tagName=demotag&sha=d23ccbd926c31e3ca0b153f22c4548b93b1426e' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

Built-in application orchestration.

app

object

Application.

creatorId

string

Application creator.

user-xxxx

description

string

Application description.

app-description-xxx

favoured

boolean

Favorited or not.

false

gmtCreate

string

Application creation time.

2024-09-01 00:00:00

labelList

array

List of application labels.

-

object

AppStack label.

displayName

string

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

Test label key

displayValue

string

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

Test label value

extraMap

object

Label extension property map. Stores custom extension fields when defining labels.

{}

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 label scope.

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

Application name.

app-name-xxx

type

string

Type. Possible values: [APP SYSTEM].

APP

componentList

array

List of components.

-

object

Orchestration component model.

content

string

Component content rendered using the Go standard library text/template format.

---\napiVersion: v1\nkind: Service\nmetadata:\n name: prod-sidecar-test-{{ .AppStack.envName }}\n # Namespace configuration:\n # Use a different Kubernetes cluster namespace for each environment to achieve environment isolation.\n # During deployment, Apsara DevOps replaces the placeholder {{ .Values.namespace }} with the actual value configured on the right.\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

Component description.

Example description

kind

string

Component kind. In Kubernetes scenarios, use the Kubernetes object kind.

Service

name

string

Component name.

demo-service

priority

integer

Component priority, starting from 1. During environment deployment, components are deployed in ascending order of priority.

1

type

string

Target deployment architecture type, such as Kubernetes or host. Possible values: [KUBERNETES HOST].

KUBERNETES

creatorId

string

Creator.

app-builtin-creator-id

description

string

Description.

app-builtin-orchestration-description

format

string

Format.

MANIFEST

gmtCreate

string

Creation time.

2024-09-01 00:00:00

gmtModified

string

Modification time.

2024-09-01 00:00:00

groupNameMap

object

Deployment stage names. Keys are stage indexes (starting from 0). Values are corresponding stage names. If unspecified, default naming rules apply.

labelList

array

List of labels.

-

object

AppStack label.

displayName

string

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

Test label key

displayValue

string

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

Test label value

extraMap

object

Label extension property map. Stores custom extension fields when defining labels.

{}

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 label scope.

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

labelPolicy

string

Label policy.

NONE

modifierId

string

Modifier.

app-builtin-modifier-id

name

string

Name.

app-builtin-orchestration-name

placeholderList

array

List of placeholders.

-

object

Placeholder model.

description

string

Placeholder description.

Memory limit

name

string

Placeholder name.

memoryLimit

overridable

boolean

Whether the placeholder can be modified during deployment.

true

predefined

boolean

Whether it is a predefined placeholder.

false

rsType

string

Target deployment architecture type, such as Kubernetes or host. Possible values: [KUBERNETES HOST].

KUBERNETES

rule

string

Optional validation rule for the placeholder value.

""

type

string

Placeholder type. Possible values: [string number boolean float object].

string

value

string

Placeholder value.

1024Mi

valueSource

string

Data source type for the placeholder value, such as constant or variable. Possible values: [CONSTANT VARIABLE NULL].

CONSTANT

revision

object

Orchestration revision information.

author

string

Revision author.

user-xxx

commitTime

string

Revision commit time.

2024-09-01 00:00:00

message

string

Revision commit message.

revision-message-xxx

sha

string

Revision commit SHA.

revision-sha-xxx

sn

string

Unique serial number.

app-builtin-orchestration-1

storageType

string

Storage type.

BUILTIN

suitableResourceTypes

array[string]

Applicable resource types.

syncSourceTemplate

object

Orchestration sync source template.

appTemplateName

string

Application template name.

app-template-name

orchestrationSha

string

Application template version commit SHA.

app-template-version-sha

type

string

Type.

AppBuiltInOrchestration

Response example

{
    "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 cluster namespace for each environment to achieve environment isolation.\n # During deployment, Apsara DevOps replaces the placeholder {{ .Values.namespace }} with the actual value configured on the right.\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": "Example 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"
}

Error codes

For more information, see Error Code Center for API-related error codes.