curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/license/bitninja/{vm_id}/lb/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/license/bitninja/{vm_id}/lb/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/license/bitninja/{vm_id}/lb/");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>", "Content-Type": "application/json" }, body: JSON.stringify({}),});console.log(await response.json());Activates the BitNinja security license on the load balancer’s underlying VM. BitNinja is an add-on, server-protection layer (billed separately - see can_support_bitninja / bitninja_cost in LB Plans). The path takes the vm_id of the load balancer’s node (the node_detail.vm_id field from List Load Balancers), not the load balancer (appliance) ID. The response returns the install command_to_execute.
The request body is an empty JSON object.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The vm_id field from the node_detail object in the List Load Balancers response.
Example
23456Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used to authenticate the request
Example
<API_KEY>Region of the load balancer.
Example
<LOCATION>Request Body
Section titled “Request Body”No fields are required - send an empty JSON object. The target is identified by the vm_id path parameter.
object
Example generated
{}Responses
Section titled “Responses”Successful response
object
object
Shell command to install the BitNinja agent on the appliance.
object
Example
{ "code": 200, "data": { "command_to_execute": "curl https://get.bitninja.io/install.sh | /bin/bash -s - --license_key=<rsk_secret>" }, "message": "Success"}