GetLatestOrchestration - Get the latest orchestration instance
Versions | Centralized edition, Regional edition |
Service endpoint and authorization
- Get the service endpoint: Replace {domain} in API requests.
- Get a personal access token.
- Get the organization ID: Only required for the centralized edition. Go to the organization management console and find the ID on the Basic Information page.
Product | Resource | Permissions |
Application delivery | Application orchestration | Read-only |
Request syntax
Central version
GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/envs/{envName}/orchestration:latestAvailable
Region version
GET https://{domain}/oapi/v1/appstack/apps/{appName}/envs/{envName}/orchestration:latestAvailable
Request headers
Parameter | Type | Required | Description | Example |
x-yunxiao-token | string | Yes | Personal access token for Alibaba Cloud DevOps. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example value |
appName | string | path | Yes | Application name. | my-web-service |
envName | string | path | Yes | Environment name. | dev |
organizationId | string | path |
| Organization ID. | bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0 |
Request example
Centralized
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/organizations/bd9e3c6d-624f-4580-af7d-c5e26f1ed0f0/apps/my-web-service/envs/dev/orchestration:latestAvailable' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/apps/my-web-service/envs/dev/orchestration:latestAvailable' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example value |
| - | object | The application's built-in orchestration. | |
| app | object | The application. | |
| creatorId | string | The ID of the user who created the application. | user-xxxx |
| description | string | The description of the application. | app-description-xxx |
| favoured | boolean | Indicates whether the application is favorited. | false |
| gmtCreate | string | The application creation time. | 2024-09-01 00:00:00 |
| labelList | array | A list of labels for the application. | |
| - | object | An AppStack label. | |
| displayName | string | The display name of the label. This name is for informational purposes only and is not used for matching. | Test Label Key |
| displayValue | string | The display value of the label. This value is for informational purposes only and is not used for matching. | Test Label Value |
| extraMap | object | A map of extended attributes for the label. Use this map to store custom attribute fields when you define a label. | {} |
| name | string | The name of the label. It can contain only lowercase letters, digits, and hyphens, and must begin and end with a lowercase letter or a digit. | demo-label |
| namespace | string | The namespace of the label, which defines its scope. | default |
| value | string | The value of the label. It can contain only lowercase letters, digits, and hyphens, and must begin 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. Valid values: | APP |
| componentList | array | A list of components. | |
| - | object | An orchestration component. | |
| content | string | The content of the component, in the Go standard library | ---\napiVersion: v1\nkind: Service\nmetadata:\n name: prod-sidecar-test-{{ .AppStack.envName }}\n # Namespace configuration:\n # We recommend using a different Kubernetes cluster namespace for each environment to achieve environment isolation.\n # During deployment, Alibaba Cloud DevOps replaces the placeholder {{ .Values.namespace }} with the actual value set 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 | The description of the component. | Example description |
| kind | string | The type of the component. In a Kubernetes scenario, this must be the | 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 target deployment architecture. Valid values: | KUBERNETES |
| creatorId | string | The ID of the creator. | app-builtin-creator-id |
| description | string | The description of the orchestration. | app-builtin-orchestration-description |
| format | string | The orchestration format. | MANIFEST |
| gmtCreate | string | The creation time of the orchestration. | 2024-09-01 00:00:00 |
| gmtModified | string | The last modification time of the orchestration. | 2024-09-01 00:00:00 |
| groupNameMap | object | A map of deployment stage names, where the key is the zero-based stage index and the value is the stage name. If unspecified, a default naming convention applies. | |
| labelList | array | A list of labels. | |
| - | object | An AppStack label. | |
| displayName | string | The display name of the label. This name is for informational purposes only and is not used for matching. | Test Label Key |
| displayValue | string | The display value of the label. This value is for informational purposes only and is not used for matching. | Test Label Value |
| extraMap | object | A map of extended attributes for the label. Use this map to store custom attribute fields when you define a label. | {} |
| name | string | The name of the label. It can contain only lowercase letters, digits, and hyphens, and must begin and end with a lowercase letter or a digit. | demo-label |
| namespace | string | The namespace of the label, which defines its scope. | default |
| value | string | The value of the label. It can contain only lowercase letters, digits, and hyphens, and must begin 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 name of the orchestration. | app-builtin-orchestration-name |
| placeholderList | array | A list of placeholders. | |
| - | object | A placeholder. | |
| 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 this is a predefined placeholder. | false |
| rsType | string | The target deployment architecture. Valid values: KUBERNETES and HOST. | KUBERNETES |
| rule | string | An optional validation rule for the placeholder value. | "" |
| type | string | The type of the placeholder. Valid values: | string |
| value | string | The value of the placeholder. | 1024Mi |
| valueSource | string | The data source type for the placeholder value. Valid values: | CONSTANT |
| revision | object | Information about 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 of the orchestration revision. | revision-sha-xxx |
| sn | string | The unique serial number. | app-builtin-orchestration-1 |
| storageType | string | The storage type. | BUILTIN |
| suitableResourceTypes | array[string] | The compatible resource types. | |
| syncSourceTemplate | object | The application template from which this orchestration is synchronized. | |
| appTemplateName | string | The name of the application template. | app-template-name |
| orchestrationSha | string | The commit SHA of the application template revision. | app-template-version-sha |
| type | string | The type of the orchestration object. | 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 separate Kubernetes cluster namespace for each environment to ensure isolation.\n # During deployment, Alibaba Cloud DevOps replaces {{ .Values.namespace }} with its configured 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": "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
See the Error Center for API error codes.