List all Swiss Backups
v1
swiss-backup
get
/1/swiss_backups
This API endpoint is in beta!
Endpoint should be considered in beta and is subject to change.
List all Swiss Backup products for the given account
Response Body
application/json
resultstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataarrayofSwiss Backup
totalinteger
Total number of items
Added when using query parameter page
Examples:221
pageinteger
Number of the current page
Added when using query parameter page
Examples:2
pagesinteger
Total number of pages
Added when using query parameter page
Examples:15
items_per_pageinteger
Number of items per page
Added when using query parameter page
Examples:15
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$request = new Request('GET', 'https://api.infomaniak.com/1/swiss_backups?account_id=42692', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":[{"id":87909,"account_id":96290,"service_id":63089,"service_name":"example","customer_name":"SwissBackup Slot","internal_name":"example","created_at":1666354846,"expired_at":1743505632,"version":48421,"has_maintenance":true,"is_locked":false,"has_operation_in_progress":false,"tags":[{"id":1234,"name":"My tag name","color":4}],"unique_id":3801,"is_free":true,"is_zero_price":false,"is_trial":false,"rights":{"technical":false,"statistic":true,"check":true,"sale":true},"nb_slots":5,"max_slots":7,"nb_unallocated_slots":0,"nb_unallocated_mobile_workstation":0,"size":200000000000,"is_demo":"false","is_migrated":"false","new_interface":"false","account_name":"Infomaniak SA","storage_reserved":200000000000}],"total":221,"page":2,"pages":15,"items_per_page":15}