Run script
Run a script on specific servers.
POST/api/scripts/{script}/run
Run a script
Execute a script on one or more servers in your account.
Required attributes
- Name
servers- Type
- array
- Description
An array containing the server IDs you own to run the script on.
Request
POST
/api/scripts/{script}/runcurl -X POST "https://ploi.io/api/scripts/{script}/run" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"servers": [1]
}'
Response
{
"data": {
"running_on_servers": [
{
"name": "awesome-server",
"ip": "127.0.0.1",
"id": 1
}
]
}
}