Updated on 2022-12-08 GMT+08:00

Enabling or Disabling an Enterprise Project

Function

This API is used to enable or disable an enterprise project.

URI

POST /v1.0/enterprise-projects/{enterprise_project_id}/action

For detailed about the parameters, see Table 1.
Table 1 Parameter in the URI

Name

Mandatory

Type

Description

enterprise_project_id

Yes

String

Specifies the enterprise project ID. The enterprise project whose ID is 0 cannot be modified.

You can obtain the ID by using API Querying the Enterprise Project List.

Request

  • Parameter description
    Table 2 Parameter in the request

    Name

    Mandatory

    Type

    Description

    action

    Yes

    String

    enable: Enable an enterprise project.

    disable: Disable an enterprise project.

  • Example request
    POST https://{EPS endpoint}/v1.0/enterprise-projects/{enterprise_project_id}/action
    {
      "action":"enable"
    }

Response

None

Status Codes

For details, see Status Code.

Error Codes

For details, see Error Codes.