Run script
Run a script for specific servers
POST api/scripts/{script}/run
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
servers | array | required | An array containing the servers you own to run the script on |
Example request:
curl -X POST "https://ploi.io/api/scripts" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"servers": [ 1 ]}'
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"running_on_servers": [
{
"name": "awesome-server",
"ip": "127.0.0.1",
"id": 1
}
]
}
}