获取指定构建机状态

请求方法/请求路径

GET /ms/openapi/api/apigw/v3/projects/{projectId}/environment/thirdPartAgent/nodes/status

资源描述

获取指定构建机状态

输入参数说明

Query参数

参数名称参数类型必须参数说明默认值

nodeHashId

string

节点 hashId

Path参数

参数名称参数类型必须参数说明默认值

projectId

string

projectId

响应

HTTP代码说明参数类型

200

successful operation

数据返回包装模型节点信息(权限)

请求样例

curl -X GET '[请替换为API地址栏请求地址]?nodeHashId={nodeHashId}' \
-H 'X-DEVOPS-UID:xxx'

HEADER样例

accept: application/json
Content-Type: application/json
X-DEVOPS-UID:xxx

返回样例-200

{
  "data" : {
    "pipelineRefCount" : 0,
    "nodeHashId" : "String",
    "displayName" : "String",
    "ip" : "String",
    "canEdit" : true,
    "nodeStatus" : "String",
    "nodeType" : "String",
    "osName" : "String",
    "agentStatus" : true,
    "operator" : "String",
    "canUse" : true,
    "bakOperator" : "String",
    "lastBuildTime" : "String",
    "lastModifyUser" : "String",
    "createTime" : "String",
    "lastModifyTime" : "String",
    "name" : "String",
    "bizId" : 0,
    "canDelete" : true,
    "nodeId" : "String",
    "createdUser" : "String",
    "gateway" : "String",
    "agentHashId" : "String"
  },
  "message" : "String",
  "status" : 0
}

数据返回包装模型节点信息(权限)

参数名称参数类型必须参数说明

data

节点信息(权限)

数据

message

string

错误信息

status

integer

状态码

节点信息(权限)

参数名称参数类型必须参数说明

pipelineRefCount

integer

流水线Job引用数

nodeHashId

string

环境 HashId

displayName

string

显示名称

ip

string

IP

canEdit

boolean

是否可以编辑

nodeStatus

string

节点状态

nodeType

string

节点类型

osName

string

操作系统

agentStatus

boolean

agent状态

operator

string

责任人

canUse

boolean

是否可以使用

bakOperator

string

备份责任人

lastBuildTime

string

流水线Job引用数

lastModifyUser

string

最后修改人

createTime

string

创建/导入时间

lastModifyTime

string

最后修改时间

name

string

节点名称

bizId

integer

所属业务, 默认-1表示没有绑定业务

canDelete

boolean

是否可以删除

nodeId

string

节点 Id

createdUser

string

创建人

gateway

string

网关地域

agentHashId

string

agent hash id

最后更新于