This API is used to enable or disable an enterprise project.
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. |
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 |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
action |
Yes |
String |
enable: Enable an enterprise project. disable: Disable an enterprise project. |
POST https://{EPS endpoint}/v1.0/enterprise-projects/{enterprise_project_id}/action
{
"action":"enable"
}
Status code: 204
None
For details, see Status Code.
For details, see Error Codes.