DevStar-查询模板列表:响应示例

时间:2025-02-12 14:54:11

响应示例

状态码: 200

ok

{  "count" : 1,  "invalid_count" : 0,  "templates" : [ {    "id" : "8c114fbf458f44c9a432e93953e3c630",    "title" : "测试",    "description" : "测试",    "productshorts" : [ "OBS" ],    "products" : [ ],    "topic" : [ {      "topic_id" : "ae54b863208f11ea8b68fa163e6e3ea0",      "topic_name" : "官方模板",      "category_id" : "d79c4e0b1fc511ea8b68fa163e6e3ea0",      "category_name" : "模板来源"    }, {      "topic_id" : "e95253901fca11ea8b68fa163e6e3ea0",      "topic_name" : "Java",      "category_id" : "bd3303f51fc411ea8b68fa163e6e3ea0",      "category_name" : "开发语言"    } ],    "nickname" : "tester",    "score" : 0,    "label" : "NEW",    "store" : null,    "store_info" : null,    "status" : 1,    "view_count" : 2,    "usage_count" : 0,    "created_at" : "2021-04-28T10:06:59Z",    "updated_at" : "2021-04-28T10:06:59Z",    "published_at" : "2021-04-28T10:07:16Z",    "tags" : [ {      "id" : "1f8d42311349494785c630f6eb8a8602",      "name" : "Java"    } ],    "update_id" : null,    "is_support_cloudide" : true,    "has_notices" : false  } ]}

状态码: 400

Bad Request

{  "error_code" : "TMDS.00001101",  "error_msg" : "非法参数"}

状态码: 401

Unauthorized

{  "error_code" : "DEV.00000001",  "error_msg" : "未识别到用户认证信息"}
support.huaweicloud.com/api-devstar/ListTemplates.html