Skip to content

waldur-cli openstack instance provision

Provision openstack instances (vms) via a marketplace order.

Usage

1
waldur-cli openstack instance provision (--request JSON | --request-file PATH | --generate-skeleton)
Flag Type Description
--request JSON string The order body as inline JSON.
--request-file PATH path Read the order body from a JSON or YAML file.
--generate-skeleton [FORMAT] json yaml
--no-wait flag Submit and return immediately, without polling the order to completion.
--timeout N integer Seconds to wait for the order to complete before giving up (default 600).
--interval N integer Seconds between polls (default 3).

Examples

See the fillable template first:

1
waldur-cli openstack instance provision --generate-skeleton

Then fill it in and submit:

1
waldur-cli openstack instance provision --request '{"accepting_terms_of_service":true,"attributes":{"availability_zone":null,"config_drive":null,"connect_directly_to_external_network":null,"data_volume_size":null,"data_volume_type":null,"data_volumes":null,"description":null,"flavor":"","floating_ips":null,"image":"","name":"","ports":[{"fixed_ips":null,"port":null,"port_security_enabled":null,"subnet":null}],"security_groups":null,"server_group":null,"ssh_public_key":null,"system_volume_size":0,"system_volume_type":null,"user_data":null},"callback_url":null,"limits":null,"offering":"","plan":null,"project":"","request_comment":null,"slug":null,"start_date":null,"type":null}'

Fire-and-forget, checking on it later from the printed order UUID:

1
waldur-cli openstack instance provision --request-file order.yaml --no-wait --format json

Global options

Every command also accepts --api-url, --token, --profile, --format, and --debug; mutating commands additionally accept --dry-run. See Getting started for what each does.