GetVMDeployOrder - Get deployment order details

Updated at:

Applicable editions

Central edition, Region edition

Service endpoint and authorization information

  • Obtain service endpoint: Replace {domain} in the API request syntax.
  • Obtain personal access token.
  • Obtain organizationId: Required only for the Central edition. Go to the Basic Information page of the Organization Management Console to obtain the organization ID.

Product

Resource

Required permission

Flow

Host deployment

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/deploy/{deployOrderId}

Region edition

GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/deploy/{deployOrderId}

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Personal access token.

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

Request parameters

Parameter

Type

Position

Required

Description

Example

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Enterprise ID.

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

Pipeline ID.

123

deployOrderId

string

path

Yes

Deployment order ID.

1111

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/deploy/1111' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/pipelines/123/deploy/1111' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

actions

array

-

object

disable

boolean

Whether the current user has permission for subsequent actions.

true

params

object

Parameters.

{}

type

string

Type. StopVMDeployOrder: Cancel deployment order. ResumeVMDeployOrder: Resume deployment order.

StopVMDeployOrder

createTime

integer

Creation time.

1729178040000

creator

string

Creator.

ssaassa

currentBatch

integer

Current deployment batch.

2

deployMachineInfo

object

batchNum

integer

Deployment batch.

2

deployMachines

array

-

object

actions

array

-

object

disable

boolean

Whether the current user has permission for subsequent actions.

true

params

object

Parameters.

{}

type

string

Type. RetryVMDeployMachine: Retry machine deployment. SkipVMDeployMachine: Skip machine deployment. LogVMDeployMachine: View machine deployment logs.

RetryVMDeployMachine

batchNum

integer

Deployment batch.

2

clientStatus

string

Machine status. ok: Normal. error: Connection failed.

ok

createTime

integer

Creation time.

1729178040000

ip

string

Machine IP.

127.0.0.1

machineSn

string

Machine SN.

asssssssxsx

status

string

Status. Success: Succeeded. Pending: Pending deployment. Running: Deploying. Cancelled: Cancelled. Queued: Queued for deployment. Failed: Failed. Skipped: Skipped.

Success

updateTime

integer

Update time.

1729178040000

hostGroupId

integer

Host group ID.

123

deployOrderId

integer

Deployment order ID.

1111

exceptionCode

string

Error code.

500

status

string

Deployment status. Waiting: Paused. Running: Deploying. Cancelled: Cancelled. Success: Succeeded.

Success

totalBatch

integer

Total deployment batches.

3

updateTime

integer

Update time.

1729178040000

Response example

{
    "actions": [
        {
            "disable": true,
            "params": {},
            "type": "StopVMDeployOrder"
        }
    ],
    "createTime": 1729178040000,
    "creator": "ssaassa",
    "currentBatch": 2,
    "deployMachineInfo": {
        "batchNum": 2,
        "deployMachines": [
            {
                "actions": [
                    {
                        "disable": true,
                        "params": {},
                        "type": "RetryVMDeployMachine"
                    }
                ],
                "batchNum": 2,
                "clientStatus": "ok",
                "createTime": 1729178040000,
                "ip": "127.0.0.1",
                "machineSn": "asssssssxsx",
                "status": "Success",
                "updateTime": 1729178040000
            }
        ],
        "hostGroupId": 123
    },
    "deployOrderId": 1111,
    "exceptionCode": "500",
    "status": "Success",
    "totalBatch": 3,
    "updateTime": 1729178040000
}

Error codes

For API error codes, see the Error Code Center.