检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
他接口时,您需要在请求消息头中添加“X-Auth-Token”,其值即为Token。例如Token值为“ABCDEFJ....”,则调用接口时将“X-Auth-Token: ABCDEFJ....”加到请求消息头即可,如下所示。 GET https://iam.cn-north-1
签名过程会自动往请求中添加Authorization(签名认证信息)和X-Sdk-Date(请求发送的时间)请求头。 AK/SK认证的详细说明请参加AK/SK认证。 对于获取用户Token接口,由于不需要认证,所以只添加“Content-Type”即可,添加消息头后的请求如下所示。
String 仓库名称 https_url String 仓库git的https下载地址 ssh_url String 仓库git的ssh下载地址 web_url String CodeArts Repo仓库内容浏览页面地址 请求示例 请求uri示例 GET https://{endpo
应用描述 icon 否 String 应用图标(传入图片的Base64编码,大小限制15k) 响应参数 无 请求示例 请求uri示例 PUT https://{endpoint}/v3/applications/0633650ed8a7e69212eed4c348eb6b8d { "name"
String 仓库名称 https_url String 仓库git的https下载地址 ssh_url String 仓库git的ssh下载地址 web_url String 仓库CodeArts Repo内容浏览页面地址 请求示例 请求uri示例 GET https://{endpo
模板服务提供了REST(Representational State Transfer)风格API,支持您通过HTTPS请求调用,调用方法请参见如何调用API。 同时模板服务还提供多种编程语言的SDK供您使用。 Java,使用方法请参见https://github.com/huaweicloud/huaweicloud-sdk-java-v3
"branch_number" : 6, "detail_url" : "https://xxx/codehub/498232/home", "download_url" : "https://xxx/592017/repository/archive?sha=master&format=zip"
"repository_id": null, "repository_name": null, "https_url": null, "ssh_url": null, "web_url": null,
String 文件名。 file_path String 文件相对路径。 file_type String 文件类型。 请求示例 GET https://{endpoint}/v1/template/0633650ed8a7e69212eed4c348eb6b8d/files?fil
"对象存储服务 OBS", "home_link" : "https://www.huaweicloud.com/product/obs.html", "subscribe_link" : "https://www.huaweicloud.com/product/obs
template_id String 模板的id。 template_title String 模板的名称。 请求示例 请求uri示例 GET https://{endpoint}/v1/templates/view-histories?platform_source=1 响应示例 状态码:
"对象存储服务", "home_link" : "https://www.huaweicloud.com/product/obs.html", "subscribe_link" : "https://www.huaweicloud.com/product/obs
状态码: 200 表4 响应Body参数 参数 参数类型 描述 url String CodeArts IDE Online打开链接:https://xxx/cloudide/loading?instanceId=xxx&scmUrl=xxx 状态码: 400 表5 响应Body参数
获取项目ID 调用API获取项目ID 项目ID还用通过调用查询指定条件下的项目信息API获取。 获取项目ID的接口为“GET https://{Endpoint}/v3/projects/”,其中{Endpoint}为IAM的终端节点,可以从地区和终端节点获取。接口的认证鉴权请参见认证鉴权。
id String 模板id。 title String 模板名。 description String 模板描述。 请求示例 GET https://{endpoint}/v1/templates?keyword=test&limit=10&offset=0 响应示例 状态码: 200
creator_name String 创建人 created_time String 创建时间 请求示例 查询应用环境部署任务详情 GET https://{endpoint}/v1/applications/658942cfdfdc46ed911bc7006f1364ef/envir
参数 参数类型 描述 id String 流水线id result String 流水线操作成功 请求示例 请求uri示例 POST https://{endpoint}/v2/pipelines/3633650ed8a7e69513eed4c348eb6b8d/start 响应示例
parameter. 非法参数 请联系技术支持 400 DEVSTAR.1004 Invalid domain ID. domain id无效 请参考 https://support.huaweicloud.com/api-iam/iam_17_0002.html 400 DEVSTAR.1005
String 阶段名称 status String 阶段状态 result String 阶段执行结果 请求示例 请求uri示例 GET https://{endpoint}/v2/pipelines/03bfdd95eb694bf6bbd80cb14d9bd1c8/status 响应示例
参数类型 描述 error_code String 错误编码 error_msg String 错误原因 请求示例 请求uri示例 GET https://{endpoint}/v1/application-resources/0633650ed8a7e69212eed4c348eb6b8d/delete-status