全部产品
  • 首页 > 
  • GetPipelineInstanceStatus

GetPipelineInstanceStatus

接口描述

根据流水线运行实例 FlowInstanceId 查看流水线运行状态

API

GetPipelineInstanceStatus

请求参数

参数

类型

是否必须

说明

OrgId

string

企业 Id

PipelineId

long

流水线 Id

FlowInstanceId

long

流水线运行实例 Id

响应参数

参数

类型

是否必须

说明

Object

string

状态

FAIL

SUCCESS

RUNNING

响应示例

{
  "RequestId": "6DFA0FDB-0379-4CC1-9493-AB653F30DDF0",
  "Object": "FAIL",
  "ErrorCode": "",
  "ErrorMessage": "",
  "Success": true
}

代码示例

    DefaultProfile profile = DefaultProfile.getProfile(
            "cn-hangzhou",          // 地域ID
            "sssss",      // RAM账号的AccessKey ID: 
            "ssssssssssssss"); // RAM账号Access Key Secret
    GetPipelineInstanceStatusRequest getPipelineInstanceStatusRequest = new GetPipelineInstanceStatusRequest();
    getPipelineInstanceStatusRequest.setSysEndpoint("api-devops.aliyuncs.com");
    getPipelineInstanceStatusRequest.setOrgId("5ebbc0408dsasa1232s12b59d58347");
    getPipelineInstanceStatusRequest.setPipelineId(pipelineId);
    getPipelineInstanceStatusRequest.setFlowInstanceId(flowInstanceId);
    GetPipelineInstanceStatusResponse getPipelineInstanceStatusResponse = client.getAcsResponse(getPipelineInstanceStatusRequest);