List snapshots
curl --request GET \
--url https://api.fibre.dev/v1/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"snapshots": [
{
"name": "<string>",
"from": "<string>",
"image": "<string>",
"cpu_cores": 123,
"memory_mb": 123,
"exposed_port": 123,
"size_bytes": 123,
"monthly_cost_usd": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}Snapshots
List snapshots
Your account’s snapshots, each with its size and what it costs a month.
GET
/
v1
/
snapshots
List snapshots
curl --request GET \
--url https://api.fibre.dev/v1/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"snapshots": [
{
"name": "<string>",
"from": "<string>",
"image": "<string>",
"cpu_cores": 123,
"memory_mb": 123,
"exposed_port": 123,
"size_bytes": 123,
"monthly_cost_usd": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}