Updates a chart namespace in an instance.

Debugging

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 UpdateChartNamespace

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

InstanceId String Yes cri-kmsiwlxxdcvaduwb

The ID of the instance.

NamespaceName String Yes test

The name of the namespace.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

AutoCreateRepo Boolean No true

Specifies whether to automatically create a repository when an image is pushed to the namespace.

DefaultRepoType String No PUBLIC

The default type of the repository created in the 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 code returned for the request.

RequestId String 6877B80A-2895-44C4-BC9E-703B157DEE66

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpdateChartNamespace
&InstanceId=cri-kmsiwlxxdcvaduwb
&NamespaceName=test
&RegionId=cn-shanghai
&AutoCreateRepo=true
&DefaultRepoType=PUBLIC
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RequestId":"6877B80A-2895-44C4-BC9E-703B157DEE66",
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RequestId>6877B80A-2895-44C4-BC9E-703B157DEE66</RequestId>
<Code>success</Code>

Error codes

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