You can call this operation to create or edit a logical region.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
POST /pop/v5/user_region_def HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RegionName | String | Yes | test_region |
The name of the logical region that you want to create or modify. |
RegionTag | String | Yes | cn-beijing:test |
The ID of the logical region that you want to create or modify. The value is in the
format of Physical region ID: Logical region name.
Note The ID of the logical region cannot be changed after being created.
|
Description | String | No | Logical region |
The description about the logical region that you want to create or modify. |
Id | Long | No | 0 |
The ID of the operation that you want to perform. If you want to create a logical region, do not specify this parameter or set it to 0. If you want to edit a logical region, set this parameter to other values. |
DebugEnable | Boolean | No | true | Whether to allow remote debugging. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
RequestId | String | b197-40ab-9155-7ca7 |
The ID of the request. |
UserDefineRegionEntity | Struct |
The data pattern of the logical region returned. |
|
Id | Long | 8683 |
The ID of the logical region in Enterprise Distributed Application Service (EDAS), which was created or edited. |
UserId | String | edas_****_test@aliyun-****.com |
The primary account of the user who created or edited the logical region. |
RegionId | String | cn-beijing:test |
The ID of the logical region. The value is in the format of Physical region ID: Logical region name. Note: The ID of the logical region cannot be changed after being created. |
RegionName | String | test_region |
The name of the logical region that was created or edited. |
Description | String | Logical region |
The description about the logical region that was created or edited. |
BelongRegion | String | cn-beijing |
The ID of the physical region to which the logical region belongs. |
DebugEnable | Boolean | false | Whether to allow remote debugging. |
Examples
Sample requests
POST /pop/v5/user_region_def HTTP/1.1
Common request headers
{
"RegionName": "test_region"
"RegionTag": "cn-beijing:test"
}
Sample success responses
JSON
format
{
"UserDefineRegionEntity": {
"Description": "Logical region",
"RegionName": "test_region",
"BelongRegion": "cn-beijing",
"RegionId": "cn-beijing:test",
"Id": 8683,
"UserId": "edas_****_test@aliyun-****.com",
"DebugEnable": false
},
"Message": "success",
"Code": 200
}
XML
format
<UserDefineRegionEntity>
<Description>Logical region</Description>
<RegionName>test_region</RegionName>
<BelongRegion>cn-beijing</BelongRegion>
<RegionId>cn-beijing:test</RegionId>
<Id>8683</Id>
<UserId>edas_****_test@aliyun-****.com</UserId>
<DebugEnable>false</DebugEnable>
</UserDefineRegionEntity>
<Message>success</Message>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.