All Products
Search
Document Center

Enterprise Distributed Application Service:InsertOrUpdateRegion

Last Updated:Dec 22, 2025

Creates or edits a custom namespace.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

edas:CreateNamespace

update

*NameSpace

acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}

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.

  • The ID of a custom namespace is in the Region ID:Namespace identifier format. Example: cn-beijing:tdy218.

  • The ID of the default namespace is in the region ID format. Example: cn-beijing.

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: enables remote debugging.

  • false: disables remote debugging.

true

RegistryType

string

No

The type of the registry.

  • default: the shared registry of Enterprise Distributed Application Service (EDAS)

  • exclusive_mse: a Microservices Engine (MSE) 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:

  • true: Remote debugging is enabled.

  • false: Remote debugging is disabled.

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.

  • The ID of a custom namespace is in the region ID:namespace identifier format. Example: cn-beijing:tdy218.

  • The ID of the default namespace is in the region ID format. Example: cn-beijing.

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.