Creates a chart repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateRepository |
create |
*Namespace
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-xkx6vujuhay0**** |
| RepoName |
string |
Yes |
The name of the repository. |
repo01 |
| RepoNamespaceName |
string |
Yes |
The name of the namespace to which the repository belongs. |
namespace01 |
| RepoType |
string |
No |
The default repository type. Valid values:
You can specify the RepoType or Summary parameter. The RepoType parameter is optional. |
PUBLIC |
| Summary |
string |
No |
The summary of the repository. |
summary |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| RepoId |
string |
The ID of the repository. |
crcr-2micxey5ewj4**** |
| IsSuccess |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
60390244-A483-491A-B41D-F866C95380A1 |
Examples
Success response
JSON format
{
"Code": "success",
"RepoId": "crcr-2micxey5ewj4****",
"IsSuccess": true,
"RequestId": "60390244-A483-491A-B41D-F866C95380A1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.