Creates a chart repository in an instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateChartRepository

The operation that you want to perform. Set the value to CreateChartRepository.

InstanceId String Yes cri-xkx6vujuhay0tqwq

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoName String Yes repo01

The name of the image repository.

RepoNamespaceName String Yes namespace01

The name of the namespace.

RepoType String Yes PUBLIC

The type of the repository. Valid values: PUBLIC and PRIVATE.

Summary String No summary

The summary about the repository.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String 60390244-A483-491A-B41D-F866C95380A1

The ID of the request.

RepoId String crcr-2micxey5ewj4yaqq

The ID of the image repository.


Sample requests

http(s)://[Endpoint]/? Action=CreateChartRepository
&<Common request parameters>

Sample success responses

JSON format

	"IsSuccess": true,
	"RequestId": "60390244-A483-491A-B41D-F866C95380A1",
	"Code": "success",
	"RepoId": "crcr-2micxey5ewj4yaqq"

XML format


Error codes

For a list of error codes, visit the API Error Center.