All Products
Search
Document Center

Serverless App Engine:Manage namespaces

Last Updated:Feb 28, 2025

Namespaces help you logically isolate runtime environments. This facilitates service calling and distributed configuration pushing of applications. If you use multiple environments, such as the development environment, test environment, and production environment, we recommend that you use namespaces to logically isolate applications in different environments. This way, you can manage applications in an efficient manner, perform one-click application start and stop, and improve application security. This topic describes how to manage a namespace, such as creating, modifying, and deleting a namespace, in the Serverless App Engine (SAE) console.

Background

SAE provides a default namespace for each region. You do not need to manually create the default namespace. If the default namespace does not meet your business requirements, you can create a namespace and manage the namespace by using the methods described in this topic.

Prerequisites

A virtual private cloud (VPC) is created. For more information, see Create and manage a VPC.

Create a namespace

  1. Log on to the SAE console.

  2. In the left-side navigation pane, click Namespaces. In the top navigation bar, select a region. On the Namespace page, click Create Namespace.

  3. In the Create Namespace panel, configure the following parameters and click OK.

    Parameter

    Description

    Example

    Namespace Name

    The name of the namespace.

    Test

    Namespace ID

    • The ID of the namespace. The prefix of a namespace ID cannot be modified and depends on the region that you select for creating a namespace. For example, if you create a namespace in the China (Shenzhen) region, the prefix of the namespace ID is cn-shenzhen.

    • You can specify the suffix of the namespace ID based on your business requirements. After a namespace is created, you cannot modify the ID of the namespace.

    demo

    Description

    The description of the namespace.

    Test

    VPC

    Select an existing VPC. A deployment environment can be associated with only one VPC. A VPC can be associated with multiple namespaces. After a namespace is created, you can change the VPC that is associated with the namespace based on your business requirements.

    Note

    Before you change the VPC that is associated with a namespace, delete all applications in the VPC.

    vpc-wz9i4zexkzbqceo5n****

    image

    After the namespace is created, you can find the namespace on the Namespace page, and modify or delete the namespace.

Modify a namespace

To change the name or description of a namespace, click Edit in the Actions column of the namespace on the Namespace page.

Delete a namespace

To delete a namespace that you no longer require, click Delete in the Actions column of the namespace on the Namespace page. In the message that appears, click OK.

Change the VPC that is associated with a namespace

  1. Log on to the SAE console.

  2. In the left-side navigation pane, click Namespaces. In the top navigation bar, select a region. On the Namespace page, click the desired namespace name.

  3. On the Basic Information page of the namespace, click the image.png icon on the right side of VPC in the Basic Information section.

  4. In the Bind VPC panel, select a VPC from the VPC drop-down list and click OK.

    After the VPC is changed, you can view the new VPC in the Basic Information section.