Skip to main content

CreateRepo

Description

call CreateRepo to create a new warehouse.

Request Method

POST

Request Path

/apsara/route/cr/CreateRepo

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
RepoNamespaceBODYstringYesNo 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.
RepoTypeBODYstringYesNo sample value for this parameter.enumeration (PRIVATE, PUBLIC), public warehouse supports anonymous download, private warehouse must log in and download.
regionIdBODYstringYesNo sample value for this parameter.region id
RepoNameBODYstringYesNo 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.
SummaryBODYstringYesNo sample value for this parameter.warehouse general information. The length is limited to 1~100.
versionBODYstringNo2016-01-01version of api
DetailBODYstringNoNo sample value for this parameter.warehouse specific information, support MarkDown format, length limit 2000.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}