curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/security_group/{vm_id}/allow-all-traffic-node/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/security_group/{vm_id}/allow-all-traffic-node/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/security_group/{vm_id}/allow-all-traffic-node/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Attaches an “allow all traffic” security group to the load balancer’s underlying VM, opening all inbound and outbound traffic. The vm_id path parameter is the load balancer’s node_detail.vm_id. The request body is an empty JSON object.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Path parameter vm_id.
Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used for authentication
Example
<API_KEY>Specifies the location for the request
Example
<LOCATION>Request Body
Section titled “Request Body”No fields are required - send an empty JSON object. The target VM is identified by the vm_id path parameter.
object
Example generated
{}Responses
Section titled “Responses”Successful response
object
HTTP status code of the response
String payload of the response, typically empty for allow-all traffic
object
Human-readable status message for the operation.
Example
{ "code": 200, "data": "", "message": "Security Group attached successfully."}