List commands
curl --request GET \
--url https://api.fibre.dev/v1/sandboxes/{id}/commands \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/sandboxes/{id}/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/sandboxes/{id}/commands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"commands": [
{
"command_id": "<string>",
"command": [
"<string>"
],
"status": "running",
"exit_code": 123,
"started_at": "<string>",
"ended_at": "<string>",
"stdout_bytes": 123,
"stderr_bytes": 123,
"keep": true,
"pid": 123,
"log": "<string>"
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}Commands
List commands
The commands of the sandbox’s current awake period, oldest first. After a sleep they are gone.
GET
/
v1
/
sandboxes
/
{id}
/
commands
List commands
curl --request GET \
--url https://api.fibre.dev/v1/sandboxes/{id}/commands \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/sandboxes/{id}/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/sandboxes/{id}/commands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"commands": [
{
"command_id": "<string>",
"command": [
"<string>"
],
"status": "running",
"exit_code": 123,
"started_at": "<string>",
"ended_at": "<string>",
"stdout_bytes": 123,
"stderr_bytes": 123,
"keep": true,
"pid": 123,
"log": "<string>"
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}