创建制品仓库
接口描述
中文:创建制品仓库
英文:CreateArtifactRepository
输入参数
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:CreateArtifactRepository。 |
ProjectId | 是 | Integer | 项目 ID |
RepositoryName | 是 | String | 仓库名称 |
Type | 是 | Integer | 仓库类型:1-generic;2-docker;3-maven;4-npm;5-pypi;6-helm;7-composer;8-nuget;9-conan |
AccessLevel | 是 | Integer | 1-项目内;2-团队内;3-公开 |
AllowProxy | 是 | Boolean | 是否开启代理(仅支持当 Type 为 3-maven;4-npm; 5-PyPI;7-composer 时可为 true) |
Description | 否 | String | 仓库描述信息 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Id | Integer | 创建成功的仓库 ID |
RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
示例
输入示例
{
"Action": "CreateArtifactRepository",
"ProjectId": 1,
"RepositoryName": "my-repo",
"Type": 1,
"AccessLevel": 2,
"AllowProxy": false,
}
输出示例
{
"Response": {
"RequestId": "1",
"Id": 1
}
}

感谢反馈有用
感谢反馈没用