检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
项目ID还用通过调用查询指定条件下的项目信息API获取。 获取项目ID的接口为“GET https://{Endpoint}/v3/projects/”,其中{Endpoint}为IAM的终端节点,可以从地区和终端节点获取。接口的认证鉴权请参见认证鉴权。 响应示例如下,其中projects下的“id”即为项目ID。
Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI POST /v2/pipelines/{pipeline_id}/start 表1 路径参数 参数 是否必选 参数类型 描述 pipeline_id 是 String 流水线ID 请求参数 表2 请求Header参数
updated_at String 更新时间 version String 应用版本号 表5 PipelineCreationResult 参数 参数类型 描述 pipeline PipelineBasic object 流水线资源信息 task_id String 任务id status
URI-scheme:表示用于传输请求的协议,当前所有API均采用HTTPS协议。 Endpoint:指定承载REST服务端点的服务器域名或IP,不同服务不同区域的Endpoint不同,您可以从地区和终端节点中获取。例如IAM服务在“华北-北京一”区域的Endpoint为“iam.cn-north-1
模板名称。程序会根据输入的模板名称模糊匹配当前可以使用的DevStar模板。仅支持字母、数字、下划线和空格。 表2 响应参数说明 参数名称 参数类型 参数描述 count integer 返回模板的数量。 invalid_count integer 返回关联了失效资源的模板数量。 templates
更新应用信息 功能介绍 根据应用Id更新对应有权限的应用信息 允许更新信息的信息包含 name,description,icon 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
String 模板的名称。 description String 模板的描述信息。 region_id String 模板关联的region host id。 repostory_id String 模板关联的repo id。 code_url String 模板https下载路径。
描述 topic_id String topic的id。 topic_name String topic的名称。 category_id String topic对应的类别的id。 category_name String topic对应的类别的名称。 表7 TagInfo 参数 参数类型
GET /v1/pipeline-templates 表1 Query参数 参数 是否必选 参数类型 描述 region_id 是 String 区域id offset 否 Integer 偏移量,表示从此偏移量开始查询,默认0 limit 否 Integer 每页显示的条目数量,默认10
name of the region is not found. 没有找到region的域名 请联系技术支持 400 DEVSTAR.1021 Invalid keyword. 非法关键词 请检查字段填写是否和接口定义一致 400 DEVSTAR.1022 The application
updated_at String 更新时间 version String 应用版本号 表4 PipelineCreationResult 参数 参数类型 描述 pipeline PipelineBasic object 流水线资源信息 task_id String 任务id status
描述 topic_id String topic的id。 topic_name String topic的名称。 category_id String topic对应的类别的id。 category_name String topic对应的类别的名称。 表8 TagInfo 参数 参数类型
js-v3 终端节点 终端节点即调用API的请求地址,不同服务不同区域的终端节点不同,您可以从地区和终端节点中查询服务的终端节点。 模板服务的终端节点如下表所示,请您根据业务需要选择对应区域的终端节点。 表1 模板服务的终端节点 区域名称 区域 终端节点(Endpoint) 华北-北京一
返回模板的数量。 templates Array of TemplateSimpleInfo objects 返回模板的列表。 表4 TemplateSimpleInfo 参数 参数类型 描述 id String 模板id。 title String 模板名。 description
获取用户有权限的DevStar存量CodeArts项目列表 功能介绍 获取用户有权限的DevStar存量CodeArts项目列表。 来源包括:1.DevStar创建的CodeArts项目;2.DevStar应用有关联CodeArts项目。 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API
Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI GET /v2/pipelines/{pipeline_id}/status 表1 路径参数 参数 是否必选 参数类型 描述 pipeline_id 是 String 流水线ID 请求参数 表2 请求Header参数
描述 topic_id String topic的id。 topic_name String topic的名称。 category_id String topic对应的类别的id。 category_name String topic对应的类别的名称。 表5 TagInfo 参数 参数类型
响应Body参数 参数 参数类型 描述 content String 文件内容(返回的文件内容为encoding指定的编码格式编码后的内容)。 encoding String 内容编码格式(固定base64)。 file_name String 文件名。 file_path String
deleted:删除成功,failed:删除失败,going:正在删除中 pipeline_status Array of PipelineDeleteStatus objects 流水线删除状态 表4 PipelineDeleteStatus 参数 参数类型 描述 name String
删除应用信息 功能介绍 根据应用Id删除应用,并可以选择删除其关联的代码仓、流水线资源 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI DELETE /v4/appl