Creating Egress Configurations
Function
Enter the number of public IP addresses (value of the network_num field in the response of the query API) to configure the egress EIP in the environment.
If you do not want to configure the egress EIP, you can also enter an empty list.
URI
POST /v1/{project_id}/cae/egress-config
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. See Obtaining a Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token.
|
|
X-Enterprise-Project-ID |
No |
String |
Enterprise project ID.
NOTE:
For details about how to obtain enterprise project IDs and enterprise project features, see Enterprise Management User Guide.
|
|
X-Environment-ID |
Yes |
String |
Environment ID.
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
egress_network_spec |
Yes |
egress_network_spec object |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
Integer |
Example Requests
Create egress configurations.
POST https://{endpoint}/v1/{project_id}/cae/egress-config
{
"egress_network_spec" : {
"vpc_id" : "54176772-5xxxxx0f6e8d33e547",
"subnet_id" : "7fdd7349-5xxxxxx2-8304c6e0b298",
"public_networks" : [ "8074bbee-230cxxxxx3e-e5f565f8487b", "888e5d59-668xxxxx0f8-068a3692f1de" ]
}
}
Example Responses
Status code: 200
OK
1
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot