Update the information about a namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:UpdateNamespace |
update |
*All Resource
|
None | None |
Request syntax
PUT /pop/v1/paas/namespace HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
The long ID of the namespace. If you configure this parameter, the long ID take effects and the value of the NameSpaceShortId parameter is ignored. To ensure compatibility, we recommend that you specify a short namespace ID. A long namespace ID follows the |
cn-beijing:test |
| NamespaceName |
string |
Yes |
The name of the namespace. The name cannot exceed 64 characters in length. |
name |
| NamespaceDescription |
string |
No |
The description of the namespace. The description cannot exceed 100 characters in length. |
desc |
| NameSpaceShortId |
string |
No |
The short ID of the namespace. You do not need to specify a region ID. We recommend that you configure this parameter. The value of this parameter can be up to 20 characters in length and can contain only lowercase letters and digits. |
test |
| EnableMicroRegistration |
boolean |
No |
Indicates whether to enable SAE built-in registry:
If you set this parameter to true, a shared registry is created for the namespace. The registry cannot be disabled after it is created. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The ID of the request. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The message returned for the operation. |
success |
| TraceId |
string |
The trace ID that is used to query the details of the request. |
0a98a02315955564772843261e**** |
| Data |
object |
The information about a namespace. |
|
| NamespaceDescription |
string |
The description of the namespace. |
desc |
| NamespaceId |
string |
The ID of the namespace. |
cn-beijing:test |
| NamespaceName |
string |
The name of the namespace. |
name |
| RegionId |
string |
The region where the namespace resides. |
cn-beijing |
| NameSpaceShortId |
string |
The short ID of the namespace. |
test |
| EnableMicroRegistration |
boolean |
Indicates whether to enable SAE built-in registry:
|
true |
| ErrorCode |
string |
The error code returned. Take note of the following rules:
|
Null |
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the information about the namespace was updated. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"NamespaceDescription": "desc",
"NamespaceId": "cn-beijing:test",
"NamespaceName": "name",
"RegionId": "cn-beijing",
"NameSpaceShortId": "test",
"EnableMicroRegistration": true
},
"ErrorCode": "Null\n",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidNamespaceName.Format | The specified NamespaceName is invalid. The name of the namespace cannot exceed 63 characters in length. | The specified NamespaceName is invalid. The name of the namespace cannot exceed 63 characters in length. |
| 400 | System.Upgrading | The system is being upgraded. Please try again later. | |
| 400 | Exceed.Namespace | Too many namespaces have been created. | |
| 400 | InvalidNamespaceId.Format | The specified NamespaceId is invalid. | The specified NamespaceId is invalid. The correct format is [regionId]:[namespace]. For example, cn-beijing:test. NamespaceId cannot exceed 32 characters in length. |
| 404 | InvalidNamespaceId.NotFound | The specified NamespaceId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.