The API allows you to get, update openstack export and import settings.
Get settings for the specified policy using its GUID.
| name | type | description |
|---|---|---|
| backup-guid | query | The unique identifier of the policy for which settings are being requested. |
| cluster-guid | query | |
| hvm-guid | query | |
| project-guid | query |
| media type | data type | description |
|---|---|---|
| application/json | RestoreSettingsResponse (JSON) | Returns an RestoreSettingsResponse object containing the settings for the specified policy. |
GET /platform9/restore-settings
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{ }
Retrieve the default export settings.
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsResponse (JSON) | Returns an ExportSettingsResponse object containing the default export settings. |
GET /platform9/export-settings/default
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{ }
Fetches a list of available snapshot types.
| media type | data type | description |
|---|---|---|
| application/json | array of SnapshotType (JSON) | Returns a list of SnapshotType objects representing the available types of snapshots. |
GET /platform9/export-settings/snapshot-types
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
"GENERIC_SNAPSHOT"
Get settings for the specified policy using its GUID.
| name | type | description |
|---|---|---|
| guid | path | The unique identifier of the policy for which settings are being requested. |
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsResponse (JSON) | Returns an ExportSettingsResponse object containing the settings for the specified policy. |
GET /platform9/export-settings/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{ }
Creates new export settings for a specific virtual machine policy identified by the GUID. This endpoint allows clients to define custom settings for backups related to a particular policy.
| name | type | description |
|---|---|---|
| guid | path | The unique identifier of the virtual machine policy for which to create the export settings. |
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsRequest (JSON) | The export settings details to be created, encapsulated within an ExportSettingsRequest object. |
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsResponse (JSON) | ExportSettingsResponse object containing the newly created export settings details. |
POST /platform9/export-settings/{guid}
Content-Type: application/json
Accept: application/json
{
"snapshotType" : {
"name" : "...",
"description" : "..."
},
"sourceSettingType" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Updates the existing export settings for a specific virtual machine policy identified by the GUID. This endpoint allows clients to modify existing settings to adjust to new requirements or correct previous configurations.
| name | type | description |
|---|---|---|
| guid | path | The unique identifier of the virtual machine policy for which the export settings are to be updated. |
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsRequest (JSON) | The new export settings details, provided as an ExportSettingsRequest object, which will replace the existing settings. |
| media type | data type | description |
|---|---|---|
| application/json | ExportSettingsResponse (JSON) | ExportSettingsResponse object containing the updated export settings details. |
PUT /platform9/export-settings/{guid}
Content-Type: application/json
Accept: application/json
{
"snapshotType" : {
"name" : "...",
"description" : "..."
},
"sourceSettingType" : "..."
}
HTTP/1.1 204 No Content
Content-Type: application/json
{ }