Imports

Contents

Imports

Allows users to manage temporary archives importations on IMCO.

Show Temporary Archive

GET /v3/plugins/tosca/temporary_archives/:temporary_archive_id/import

Shows a temporary archive importation.

Inputs

None

Returns

A temporary archive importation task of the following format:

Field Type Description
id String Identifier of the temporary archive importation 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.
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 /v3/plugins/tosca/temporary_archives/:temporary_archive_id/import

Creates a new temporary archive importation task.

Inputs

Field Type Description Required
label_name String The label that will be used by the infrastructure when it would be created. Yes
default_realm_provider_name String Name of the realm where the importation will be done. Yes
default_cloud_provider_name String Name of the cloud provider where the importation will be done. Yes
inputs Array of String An array of strings with the input values needed for the importation. No

Returns

A temporary archive importation task of the following format:

Field Type Description
id String Identifier of the temporary archive importation 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.
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

Destroy Temporary Archive

DELETE /v3/plugins/tosca/temporary_archives/:temporary_archive_id/import

Destroys a temporary archive importation task.

Inputs

None

Returns

None

Back to top