Creates or edits a custom namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:CreateNamespace |
update |
*NameSpace
|
None | None |
Request syntax
POST /pop/v5/user_region_def HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionTag |
string |
Yes |
The ID of the namespace.
|
cn-beijing:test |
| RegionName |
string |
Yes |
The name of the namespace. The name can be up to 63 characters in length. |
test_region |
| Description |
string |
No |
The description of the namespace. The description can be up to 128 characters in length. |
test |
| Id |
integer |
No |
Specifies whether to create or modify the namespace. If this parameter is left empty or is set to 0, the namespace is created. Otherwise, the namespace is modified. |
0 |
| DebugEnable |
boolean |
No |
Specifies whether to enable remote debugging. Valid values:
|
true |
| RegistryType |
string |
No |
The type of the registry.
|
default |
| MseInstanceId |
string |
No |
The ID of the MSE registry. |
mse_prepaid_public_cn-tl32n****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The additional information that is returned. |
success |
| RequestId |
string |
The ID of the request. |
37793352-C568-4A5A-BF69-4DC853****** |
| UserDefineRegionEntity |
object |
The information about the custom namespace. |
|
| BelongRegion |
string |
The ID of the region to which the namespace belongs. |
cn-beijing |
| RegionName |
string |
The name of the namespace. |
test_region |
| Description |
string |
The description of the namespace. |
逻辑Region |
| DebugEnable |
boolean |
Indicates whether remote debugging is enabled. Valid values:
|
false |
| UserId |
string |
The ID of the Alibaba Cloud account to which the custom namespace belongs. |
edas_****_test@aliyun-****.com |
| Id |
integer |
Indicates whether the namespace is created or modified. If this parameter is left empty or 0 is returned, the namespace is created. Otherwise, the namespace is modified. |
15160 |
| RegionId |
string |
The ID of the namespace.
|
cn-beijing:test |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "37793352-C568-4A5A-BF69-4DC853******",
"UserDefineRegionEntity": {
"BelongRegion": "cn-beijing",
"RegionName": "test_region",
"Description": "逻辑Region",
"DebugEnable": false,
"UserId": "edas_****_test@aliyun-****.com",
"Id": 15160,
"RegionId": "cn-beijing:test"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.