Exports

Contents

Exports

Allows users to manage temporary archives exportations on IMCO.

Show Temporary Archive

GET /v2/plugins/tosca/temporary_archives/:temporary_archive_id/export

Shows temporary archive exportation.

Inputs

None

Returns

A temporary archive exportation task of the following format:

Field Type Description
id String Identifier of the temporary archive exportation task.
type String Can be either ‘import' or ‘export'.
label_name String The label that will be used by the infrastructure when it would be created. Will be nil for exportations.
state String Can be one of the following: ‘pending', ‘running' or ‘finished'
file_access String URL where the user can download the file if it is exportation.
error_message String A message with the error produced in TOSCA if the task failed.
user_id String The user that initiated the task.
archive_id String Id of the archive associated with the task.

Back to top

Create Temporary Archive

POST /v2/plugins/tosca/temporary_archives/export

Creates a new temporary archive exportation task.

Inputs

Field Type Description Required
server_ids Array of String An array of strings with the id of the servers that will be included in the exportation No
server_array_ids Array of String An array of strings with the ids of the server arrays that will be included in the exportation No

Returns

A temporary archive exportation task of the following format:

Field Type Description
id String Id of the archive associated with the task.
task_id String Identifier of the temporary archive importation task.

Back to top

Destroy Temporary Archive

DELETE /v2/plugins/tosca/temporary_archives/:temporary_archive_id/export

Destroys a temporary archive exportation task.

Inputs

None

Returns

None

Back to top