模版管理-获取模版列表

Request method/request path

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

Resource description

Template Management - Get a list of templates

Input parameter description

Query parameter

Path parameter

response

Request sample

curl -X GET '[Please replace API address bar request address]? templateType={templateType}&storeFlag={storeFlag}' 

HEADER example

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

Return example -200

{  "data" : {  "models" : [ {  "templateType" : "String",  "associatePipelines" : [ {  "id" : "String"  } ],  "hasPermission" : true,  "name" : "String",  "templateTypeDesc" : "String",  "templateId" : "String",  "versionName" : "String",  "version" : 0,  "hasInstance2Upgrade" : true,  "logoUrl" : "String",  "storeFlag" : true,  "associateCodes" : "string"  } ],  "hasPermission" : true,  "count" : 0,  "projectId" : "String"  },  "message" : "String",  "status" : 0 } 

The data is returned to the TemplateListModel

TemplateListModel

TemplateModel

Pipeline model -ID

Last updated