Namespaces provide logically isolated runtime environments for your applications, simplifying service discovery and distributed configuration delivery. If you manage multiple environments such as development, testing, and production, namespaces let you isolate applications per environment, improving security and enabling batch operations like starting or stopping all applications in an environment with a single click.
Background
SAE provides a default namespace for each region. If the default namespace does not meet your requirements, you can create and manage custom namespaces.
Prerequisites
A VPC is required. For more information, see Create and manage a VPC.
Create a namespace
-
On the SAE Namespaces page, select a region from the top navigation bar and click Create Namespace.
-
In the Create Namespace panel, configure the parameters as described in the following table and click OK.
Parameter
Description
Example
Namespace Name
A custom name for the namespace.
test
Namespace ID
-
The prefix is determined by the selected region and cannot be changed. For example, the prefix for the China (Shenzhen) region is
cn-shenzhen. -
You can specify a custom suffix. The Namespace ID cannot be changed after creation.
demo
Description
A custom description for the namespace.
For testing purposes.
VPC
Select an existing VPC. A namespace can be associated with only one VPC, but a single VPC can be associated with multiple namespaces. After a namespace is created, you can switch its associated VPC.
NoteBefore switching the VPC for a namespace, you must delete all applications within it.
vpc-wz9i4zexkzbqceo5n****
After creation, you can view namespace details, rename it, update its description, or delete it on the Namespace page.
-
Edit a namespace
To modify the name or description of a namespace, go to the Namespace page and click Edit in the Actions column for the desired namespace.
Delete a namespace
To delete a namespace, go to the Namespace page and click Delete in the Actions column for the desired namespace. In the confirmation dialog, click Confirm.
Switch the VPC
-
On the SAE Namespaces page, select a region from the top navigation bar, and then click the desired Namespace Name to open the namespace details page.
-
On the Basic Information page, in the Basic Information section, click the
icon to the right of VPC. -
In the Bind VPC panel, select a VPC from the VPC drop-down list, and then click OK.
The Basic Information section now displays the new VPC.