您需要指定如下参数: application_name:自定义应用名称。 repo_type:该场景值为1。 code_url:用户模板仓库的 ssh 地址,查询方法参见获取仓库信息。 properties:与生成代码相关的参数列表,根据步骤2的返回结果填写。 使用步骤3获取的任务 id
OS。 安装 node.js 10以上版本。 操作步骤 下载命令行工具。 npm install -g @huaweicloud/hcloud 验证命令行工具安装结果。 执行如下命令,显示版本号则安装成功。 hcloud version 设置环境语言为中文。 hcloud configure
用来查询任务的实时状态。参数说明请参见表2。 Operation 3:DownloadApplicationCode 当任务状态为成功时,可以下载代码到本地。默认下载到命令行工具安装目录。参数说明请参见表3。 代码生成功能由3个 operation 配合完成。执行顺序为Operation1启动代码生成任务
描述 repository_id 是 String 仓库id。 表2 Query参数 参数 是否必选 参数类型 描述 repository_ssh_url 是 String 仓库下载地址。 region_id 否 String 区域ID,目前仅支持北京四:cn-north-4及北京一:cn-north-1。
String 仓库名称 https_url String 仓库git的https下载地址 ssh_url String 仓库git的ssh下载地址 web_url String CodeArts Repo仓库内容浏览页面地址 请求示例 请求uri示例 GET https://{endpo
String 仓库id name String 仓库名称 https_url String 仓库git的https下载地址 ssh_url String 仓库git的ssh下载地址 web_url String 仓库CodeArts Repo内容浏览页面地址 请求示例 请求uri示例 GET
同步模板浏览记录 功能介绍 未登录状态下,将用户浏览过的模板缓存在浏览器中,登录时,调用该接口同步模板浏览记录。 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI POST
String 文件名。 file_path String 文件相对路径。 file_type String 文件类型。 请求示例 GET https://{endpoint}/v1/template/0633650ed8a7e69212eed4c348eb6b8d/files?fil
Devstar 模板创建代码生成任务并将代码工程推送到 CodeArts Repo 使用 Devstar 模板创建代码生成任务并下载代码工程到本地
尽管请求URI包含在请求消息头中,但大多数语言或框架都要求您从请求消息中单独传递它,所以在此单独强调。 URI-scheme:表示用于传输请求的协议,当前所有API均采用HTTPS协议。 Endpoint:指定承载REST服务端点的服务器域名或IP,不同服务不同区域的Endpoint不同,您可以从地区和终端节点中获
应用描述 icon 否 String 应用图标(传入图片的Base64编码,大小限制15k) 响应参数 无 请求示例 请求uri示例 PUT https://{endpoint}/v3/applications/0633650ed8a7e69212eed4c348eb6b8d { "name"
id。 repostory_id String 模板关联的repo id。 code_url String 模板https下载路径。 ssh_url String 模板ssh下载路径。 project_uuid String 项目id。 status Integer 模板状态。 properties
file_type String 文件类型 created String 创建时间 updated String 修改时间 请求示例 GET https://{endpoint}/v1/applications/035265ab4c884312924c08f7a2f88631/release-repositories
"对象存储服务 OBS", "home_link" : "https://www.huaweicloud.com/product/obs.html", "subscribe_link" : "https://www.huaweicloud.com/product/obs
privately 否 Boolean 仓库是否私有 short_id 否 String 仓库短id code_url 是 String 代码存放的ssh地址。 region_id 是 String CodeArts Repo仓库所在的 Region ID: 华南-广州:cn-south-1
management_permission Boolean 管理权限 is_stock Boolean 是否是存量项目 请求示例 GET https://{endpoint}/v4/projects?limit=10&offset=0 响应示例 状态码: 200 项目列表 { "projects"
creator_name String 创建人 created_time String 创建时间 请求示例 查询应用环境部署任务详情 GET https://{endpoint}/v1/applications/658942cfdfdc46ed911bc7006f1364ef/envir
"对象存储服务", "home_link" : "https://www.huaweicloud.com/product/obs.html", "subscribe_link" : "https://www.huaweicloud.com/product/obs
参数类型 描述 error_code String 错误编码 error_msg String 错误原因 请求示例 请求uri示例 GET https://{endpoint}/v1/application-resources/0633650ed8a7e69212eed4c348eb6b8d/delete-status
参数类型 描述 error_code String 错误编码 error_msg String 错误原因 请求示例 请求uri示例 GET https://{endpoint}/v1/pipeline-templates?offset=0&limit=10®ion_id=cn-north-4
您即将访问非华为云网站,请注意账号财产安全