Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
8.8 KiB
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
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 Parameters in the request header Parameter
Mandatory
Type
Description
X-Auth-Token
Yes
String
Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set scope to domain. The value of X-Subject-Token in the response header is the user token.
Content-Type
Yes
String
Default value: application/json; charset=UTF-8
Table 3 Parameters in the request body 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
Status code: 204
None
Status Codes
For details, see Status Code.
Error Codes
For details, see Error Codes.