Creates a chart namespace in an instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceId | String | Yes | cri-xkx6vujuhay0tqwq |
The ID of the instance. |
NamespaceName | String | Yes | namespace01 |
The name of the chart namespace. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
AutoCreateRepo | Boolean | No | true |
Specifies whether to automatically create a repository when an image is pushed to the chart namespace. |
DefaultRepoType | String | No | PUBLIC |
The default type of the repository created in the chart namespace. Valid values: PUBLIC and PRIVATE. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The return value. |
RequestId | String | 724402D0-75CD-4794-BC20-7D3720823AE0 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateChartNamespace
&InstanceId=cri-xkx6vujuhay0tqwq
&NamespaceName=namespace01
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>724402D0-75CD-4794-BC20-7D3720823AE0</RequestId>
<Code>success</Code>
JSON
format
{
"IsSuccess": true,
"RequestId": "724402D0-75CD-4794-BC20-7D3720823AE0",
"Code": "success"
}
Error codes
For a list of error codes, visit the API Error Center.