Tasks

1. tasks(id=None)

List task(s).

Parameters:

Name Type Description
id string could be None

Return value: List of Task

Return value example:

istack/image/v2/task Task
status : failure
created_at : 2016-08-19T16:03:00Z
updated_at : 2016-08-19T16:03:00Z
expires_at : 2016-08-21T16:03:00Z
id : c822bdb4-881b-41ba-89eb-47a3440c84ba
owner : cde9cbf5a7f1401a9389c84ba98bdcf6
type : import
self : /v2/tasks/c822bdb4-881b-41ba-89eb-47a3440c84ba
schema : /v2/schemas/task

2. create_task(**attrs)

Create a task.

Parameters:

Name Type Description
type string The type of task represented by this content.
input object A JSON object specifying the input parameters to the task. Consult your cloud provider’s documentation for details.

Parameter example:

task = self.cloud.image.create_task(type="import", input={
        "import_from": "http://example.com",
        "import_from_format": "qcow2",
        "image_properties": {
            "disk_format": "vhd",
            "container_format": "ovf"
        }
    })

Return value: Task Instance

Return value example:

istack/image/v2/task Task
status : creating
created_at : 2016-08-19T16:03:00Z
updated_at : 2016-08-19T16:03:00Z
expires_at : 2016-08-21T16:03:00Z
id : c822bdb4-881b-41ba-89eb-47a3440c84ba
owner : cde9cbf5a7f1401a9389c84ba98bdcf6
type : import
self : /v2/tasks/c822bdb4-881b-41ba-89eb-47a3440c84ba
schema : /v2/schemas/task

results matching ""

    No results matching ""