代码托管 CODEARTS REPO-设置仓库是公开状态还是私有状态:请求参数

时间:2025-09-28 14:34:40

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

参数解释:

用户Token。通过调用 IAM 服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。

约束限制:

不涉及。

取值范围:

长度为[1,100000]个字符。

默认取值:

不涉及。

表3 请求Body参数

参数

是否必选

参数类型

描述

template_type

String

参数解释:

模板类型

取值范围:

  • SHARE,表示个人示例模。
  • PUBLIC,表示公开只读。

code_title

String

参数解释:

代码模板名称

取值范围:

不涉及。

creator_name

String

参数解释:

创建者名称

取值范围:

不涉及。

code_description

String

参数解释:

代码模板描述

取值范围:

不涉及。

languages

Array of strings

参数解释:

模板语言

取值范围:

不涉及。

plateform

Array of strings

参数解释:

模板平台

取值范围:

不涉及。

entertype

Array of strings

参数解释:

模板标签

取值范围:

不涉及。

support.huaweicloud.com/api-codeartsrepo/ListTemplatesTwo.html