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
resultrequiredstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataarrayofSwissBackup
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=37335', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":[{"id":5990,"account_id":87216,"service_id":34368,"service_name":"example","customer_name":"SwissBackup Slot","internal_name":"example","created_at":1666354846,"expired_at":1732115545,"version":25893,"has_maintenance":true,"is_locked":true,"has_operation_in_progress":true,"tags":[{"id":1234,"name":"My tag name","color":4}],"unique_id":85261,"is_free":true,"is_zero_price":true,"is_trial":true,"rights":{"technical":false,"statistic":true,"check":false,"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}