获取用户有权限使用的服务器列表

Request method/request path

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

Resource description

Gets a list of servers that the user has permission to use

Input parameter description

Path parameter

Parameter nameParameter typemustParameter descriptionDefault value

projectId

string

is

Item ID

response

HTTP codedescriptionParameter type

200

successful operation

Data return wrapper model List Node Information (permissions)

Request sample

curl -X GET '[Please replace API address bar request address]' 

HEADER example

accept: application/json Content-Type: application/json 

Return example -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 return wrapper model List Node Information (permissions)

Parameter nameParameter typemustParameter description

data

List< Node information (permissions)>

no

data

message

string

no

Error message

status

integer

is

Status code

Node information (permission)

Parameter nameParameter typemustParameter description

pipelineRefCount

integer

no

Number of pipeline Job references

nodeHashId

string

is

Environmental HashId

displayName

string

no

Display name

ip

string

is

IP

canEdit

boolean

no

Whether it can be edited

nodeStatus

string

is

Node state

nodeType

string

is

Node type

osName

string

no

Operating system

agentStatus

boolean

is

agent state

operator

string

no

Responsible person

canUse

boolean

no

Whether it can be used

bakOperator

string

no

Backup owner

lastBuildTime

string

no

Number of pipeline Job references

lastModifyUser

string

no

Last modifier

createTime

string

no

Creation/import time

lastModifyTime

string

no

Last revision time

name

string

is

Node name

bizId

integer

no

Owning service. The default value -1 indicates that no service is bound

canDelete

boolean

no

Whether it can be deleted

nodeId

string

is

Node Id

createdUser

string

is

founder

gateway

string

no

Gateway area

agentHashId

string

no

agent hash id

Last updated