GetVMDeployMachineLog – Query machine deployment logs

Updated at:

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Obtain the endpoint: Replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organization ID: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to retrieve the organization ID.

Product

Resource

Required permission

Pipeline

Host deployment

Read-only

Request syntax

Central edition

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

Region edition

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

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Your personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

The pipeline ID.

123

deployOrderId

string

path

Yes

The deployment order ID.

1111

machineSn

string

path

Yes

The machine serial number.

asssssssxsx

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/deploy/1111/machine/asssssssxsx/log' \
  -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/machine/asssssssxsx/log' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

object

aliyunRegion

string

The deployment region.

cn-hangzhou

deployBeginTime

string

The deployment start time.

11111111111

deployEndTime

string

The deployment end time.

1719312026

deployLog

string

The deployment log.

success

deployLogPath

string

The deployment log path.

/tmp/log

Response example

{
    "aliyunRegion": "cn-hangzhou",
    "deployBeginTime": "11111111111",
    "deployEndTime": "1719312026",
    "deployLog": "success",
    "deployLogPath": "/tmp/log"
}

Error codes

For more information, see Error code center.