获取应用详情
功能介绍
根据应用Id获取应用详情
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v3/applications/{application_id}
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
application_id | 是 | String | 应用id |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
X-Language | 否 | String | 语言类型 中文:zh-cn 英文:en-us |
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 应用id |
name | String | 应用名称 |
description | String | 应用描述 |
region_id | String | 区域id |
region_name | String | 区域名称 |
project_id | String | 所属项目id |
project_name | String | 项目名称 |
icon | String | 应用图标 |
pipeline_creation_result | Array of PipelineCreationResult objects | 流水线列表 |
repository_creation_result | RepositoryCreationResult object | 仓库信息 |
environment_creation_result | Array of strings | 环境信息 |
template_types | Array of strings | 模板类型 |
template_deployment | String | 模板部署信息 |
deploy_type | String | 部署类型, function:函数部署,cci:cci容器部署,ServiceStage(Jar):ServiceStage jar包部署,ServiceStage(Docker):ServiceStage Docker容器部署,none不支持部署 |
creator_name | String | 创建者名称 |
created_at | String | 创建时间 |
updated_at | String | 更新时间 |
version | String | 应用版本号 |
参数 | 参数类型 | 描述 |
|---|---|---|
pipeline | PipelineBasic object | 流水线资源信息 |
task_id | String | 任务id |
status | String | 任务状态, success:成功,failed:失败,creating:创建中,cancel:取消,pending:等待创建 |
failure_reason | String | 失败原因 |
参数 | 参数类型 | 描述 |
|---|---|---|
uuid | String | DevStar系统生成的流水线UUID |
id | String | CloudPipeline系统对应流水线ID |
name | String | 流水线名称 |
url | String | 流水线地址 |
last_running_status | String | 流水线最后一次运行状态,success:成功,failed:失败,running:运行中 |
参数 | 参数类型 | 描述 |
|---|---|---|
repository | RepositoryBasicInfo object | 仓库 |
task_id | String | 任务id |
status | String | 任务状态, success:成功,failed:失败,creating:创建中 |
failure_reason | String | 失败原因 |
请求示例
请求uri示例
GET https://{endpoint}/v3/applications/0633650ed8a7e69212eed4c348eb6b8d 响应示例
状态码: 200
OK
{
"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" : "应用图片",
"deploy_type" : "function",
"template_types" : [ "mobile" ],
"pipeline_creation_result" : [ {
"pipeline" : {
"id" : "0633650ed8a7e69212eed4c348eb6b8d"
},
"task_id" : "j_zNvQCYTy",
"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"
},
"task_id" : "j_zNvQCYTy",
"status" : "success",
"failure_reason" : ""
},
"environment_creation_result" : [ "dev_env", "pre_env", "product_env" ]
} 状态码: 400
Bad Request
{
"error_code" : "DEVSTAR.1001",
"error_msg" : "application_id : 非法参数"
} 状态码: 401
Unauthorized
{
"error_code" : "DEV.00000001",
"error_msg" : "未识别到用户认证信息"
} 状态码: 403
Forbidden
{
"error_code" : "DEVSTAR.1034",
"error_msg" : "无操作权限"
} 状态码: 404
Not Found
{
"error_code" : "DEVSTAR.1037",
"error_msg" : "应用不存在"
} 状态码
状态码 | 描述 |
|---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
错误码
请参见错误码。

