获取流水线模板的实例列表

请求方法/请求路径

GET /ms/openapi/api/apigw/v3/projects/{projectId}/templates/{templateId}/templateInstances

资源描述

获取流水线模板的实例列表

输入参数说明

Query参数

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

page

integer

第几页

1

pageSize

integer

每页多少条

30

searchKey

string

名字搜索的关键字

Path参数

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

projectId

string

项目ID

templateId

string

模板ID

响应

HTTP代码说明参数类型

200

successful operation

请求样例

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

HEADER样例

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

返回样例-200

{
  "data" : {
    "instances" : [ {
      "pipelineName" : "String",
      "hasPermission" : true,
      "updateTime" : 0,
      "templateId" : "String",
      "versionName" : "String",
      "version" : 0,
      "pipelineId" : "String",
      "status" : "ENUM"
    } ],
    "latestVersion" : {
      "creator" : "String",
      "updateTime" : 0,
      "versionName" : "String",
      "version" : 0
    },
    "count" : 0,
    "pageSize" : 0,
    "page" : 0,
    "templateId" : "String",
    "projectId" : "String"
  },
  "message" : "String",
  "status" : 0
}

数据返回包装模型TemplateInstancePage

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

data

数据

message

string

错误信息

status

integer

状态码

TemplateInstancePage

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

instances

instances

latestVersion

latestVersion

count

integer

count

pageSize

integer

pageSize

page

integer

page

templateId

string

templateId

projectId

string

projectId

TemplatePipeline

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

pipelineName

string

pipelineName

hasPermission

boolean

hasPermission

updateTime

integer

updateTime

templateId

string

templateId

versionName

string

versionName

version

integer

version

pipelineId

string

pipelineId

status

ENUM(PENDING_UPDATE, UPDATING, UPDATED, )

status

TemplateVersion

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

creator

string

creator

updateTime

integer

updateTime

versionName

string

versionName

version

integer

version

最后更新于