Skip to content

Activate Bitninja

POST
/api/v1/license/bitninja/{vm_id}/node/
curl --request POST \
--url 'https://api.e2enetworks.com/myaccount/api/v1/license/bitninja/{vm_id}/node/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{}'

Buys a BitNinja security license for a node — the Node Security tab’s Buy action, shown when the node has no active license.

vm_id
required
string

Path parameter vm_id.

project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the Activate Bitninja request

Example

<API_KEY>
location
required
string

Specifies the target location for the activation request.

Example

<LOCATION>
Media typeapplication/json
object

Example generated

{}

Successful response

Media typeapplication/json
object
code

HTTP status code of the activation response

integer
data
object
command_to_execute

Shell command to execute for activating Bitninja

string
errors
object
message

Status message indicating the result of the activation request

string

Example

{
"code": 200,
"data": {
"command_to_execute": "curl https://get.bitninja.io/install.sh | /bin/bash -s - --license_key=RSK__216_48_190_175__XUN9DS1FBLKEPIL7OBXR0HOPWYJTCNE4"
},
"message": "Success"
}