CreateRepo
Description
call CreateRepo to create a new warehouse.
Request Method
POST
Request Path
/apsara/route/cr/CreateRepo
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RepoNamespace | BODY | string | Yes | No sample value for this parameter. | namespace to which the repository belongs. The length limit is 2 to 30. You can use lowercase letters, digits, dashes (-), and underscores (_). You cannot start with a dash or underscore. |
RepoType | BODY | string | Yes | No sample value for this parameter. | enumeration (PRIVATE, PUBLIC), public warehouse supports anonymous download, private warehouse must log in and download. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RepoName | BODY | string | Yes | No sample value for this parameter. | warehouse name. The length limit is 1 to 64. You can use lowercase letters, digits, dashes (-), and underscores (_). You cannot start with a dash or underscore. |
Summary | BODY | string | Yes | No sample value for this parameter. | warehouse general information. The length is limited to 1~100. |
version | BODY | string | No | 2016-01-01 | version of api |
Detail | BODY | string | No | No sample value for this parameter. | warehouse specific information, support MarkDown format, length limit 2000. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}