You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
903 B
48 lines
903 B
10 months ago
|
<?php
|
||
|
|
||
|
include 'DemoBase.php';
|
||
|
global $client;
|
||
|
|
||
|
$body = [
|
||
|
'Vhost' => 'vhost',
|
||
|
'App' => 'app',
|
||
|
'Bucket' => 'bb',
|
||
|
'SnapshotFormat' => 'jpeg',
|
||
|
'SnapshotObject' => 'xx/xx',
|
||
|
'StorageDir' => '/xx'
|
||
|
];
|
||
|
|
||
|
$response = $client->createSnapshotPreset(['json' => $body]);
|
||
|
echo $response;
|
||
|
echo '<br>';
|
||
|
|
||
|
$body = [
|
||
|
'Preset' => 'preset',
|
||
|
'Vhost' => 'vhost',
|
||
|
'App' => 'app',
|
||
|
'Bucket' => 'bb2',
|
||
|
'SnapshotFormat' => 'jpeg',
|
||
|
'SnapshotObject' => 'xx/xx',
|
||
|
'StorageDir' => '/xx'
|
||
|
];
|
||
|
$response = $client->updateSnapshotPreset(['json' => $body]);
|
||
|
echo $response;
|
||
|
echo '<br>';
|
||
|
|
||
|
|
||
|
$body = [
|
||
|
'Vhost' => 'vhost',
|
||
|
'App' => 'app',
|
||
|
'Preset' => 'xx',
|
||
|
];
|
||
|
$response = $client->deleteSnapshotPreset(['json' => $body]);
|
||
|
echo $response;
|
||
|
echo '<br>';
|
||
|
|
||
|
$body = [
|
||
|
'Vhost' => 'vhost',
|
||
|
];
|
||
|
$response = $client->listVhostSnapshotPreset(['json' => $body]);
|
||
|
echo $response;
|
||
|
echo '<br>';
|