This API is used to modify an enterprise project.
Only the enterprise project name and description can be modified.
The enterprise project type can be only changed from poc to prod.
You can modify the enterprise project information only after the Enterprise Project function is enabled.
PUT /v1.0/enterprise-projects/{enterprise_project_id}
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 |
|---|---|---|---|
name |
Yes |
String |
A name can contain 1 to 255 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The name must be unique in the domain and cannot include any form of the word "default". |
description |
No |
String |
A description can contain a maximum of 512 characters. |
type |
No |
String |
Specifies the enterprise project type. The enterprise project type can be only changed from poc to prod. |
PUT https://{EPS endpoint}/v1.0/enterprise-projects/{enterprise_project_id}
{
"name":"enterprise_project1",
"description": "description"
}
Status code: 200
Name |
Type |
Description |
|---|---|---|
enterprise_project |
Dict<enterprise_project> |
Specifies the enterprise project. For details, see Table 5. |
Name |
Type |
Description |
|---|---|---|
id |
String |
Specifies the enterprise project ID. |
name |
String |
Specifies the enterprise project name. |
description |
String |
Provides supplementary information about the enterprise project. |
status |
Integer |
1 indicates Enabled. 2 indicates Disabled. |
created_at |
String |
Specifies the time (UTC) when the enterprise project was created. Example: 2018-05-18T06:49:06Z |
updated_at |
String |
Specifies the time (UTC) when the enterprise project was modified. Example: 2018-05-18T06:49:06Z |
type |
String |
Project type. prod: commercial project; poc: test project |
delete_flag |
Boolean |
Deletion flag. The value false means that the information is not deleted and the value true means that the information is deleted. |
For details, see Status Code.
For details, see Error Codes.