DevStar-获取应用列表:响应示例
时间:2025-02-12 14:54:11
响应示例
状态码: 200
ok
{ "applications" : [ { "id" : "0633650ed8a7e69212eed4c348eb6b8d", "name" : "应用名称", "description" : "应用描述", "creator_name" : "张三", "created_at" : "2021-03-25T02:35:13Z", "updated_at" : "2021-03-25T02:35:13Z", "region_id" : "cn-north-7", "region_name" : "区 域名 称", "project_id" : "2633650ed8a7e69212eed4c348eb6b8d", "project_name" : "所属项目名称", "icon" : "应用图片", "template_types" : [ "mobile" ], "pipeline_creation_result" : [ { "pipeline" : { "id" : "0633650ed8a7e69212eed4c348eb6b8d", "last_running_status" : "success" }, "status" : "success", "failure_reason" : "" } ], "repository_creation_result" : { "repository" : { "id" : "0633650ed8a7e69212eed4c348eb6b8d", "ssh_url" : "git@codehub.xxx.xxx.xxx.com:zhangsan/myrepo.git", "https_url" : "https://codehub.xxx.xxx.xxx.com/zhangsan/myrepo.git" }, "status" : "success", "failure_reason" : "" }, "environment_creation_result" : [ "dev_env", "pre_env", "product_env" ] } ], "count" : 50}
状态码: 400
Bad Request
{ "error_code" : "DEVSTAR.1001", "error_msg" : "project_id : 非法参数"}
状态码: 401
Unauthorized
{ "error_code" : "DEV.00000001", "error_msg" : "未识别到用户认证信息"}
状态码: 403
Forbidden
{ "error_code" : "DEVSTAR.1034", "error_msg" : "无操作权限"}
support.huaweicloud.com/api-devstar/ListApplicationsV6.html