zaqar_ui.api.rest package

Submodules

zaqar_ui.api.rest.zaqar module

class zaqar_ui.api.rest.zaqar.Flavor(**kwargs)[source]

Bases: View

API for retrieving a single flavor

get(request, flavor_name)[source]

Get a specific flavor

post(request, flavor_name)[source]

Update a flavor.

Returns the updated flavor object on success.

url_regex = 'zaqar/flavors/(?P<flavor_name>[^/]+)$'
class zaqar_ui.api.rest.zaqar.Flavors(**kwargs)[source]

Bases: View

API for flavors

delete(request)[source]

Delete one or more flavor by name.

Returns HTTP 204 (no content) on successful deletion.

get(request)[source]

Get a list of the Flavors for admin.

The returned result is an object with property ‘items’ and each item under this is a flavor.

put(request)[source]

Create a new flavor.

Returns the new flavor object on success.

url_regex = 'zaqar/flavors/$'
class zaqar_ui.api.rest.zaqar.Messages(**kwargs)[source]

Bases: View

API for messages

get(request, queue_name)[source]

Get a list of messages

post(request, queue_name)[source]

Create new messages

url_regex = 'zaqar/queues/(?P<queue_name>[^/]+)/messages/$'
class zaqar_ui.api.rest.zaqar.Pool(**kwargs)[source]

Bases: View

API for retrieving a single pool

get(request, pool_name)[source]

Get a specific pool

post(request, pool_name)[source]

Update a pool.

Returns the updated pool object on success.

url_regex = 'zaqar/pools/(?P<pool_name>[^/]+)$'
class zaqar_ui.api.rest.zaqar.Pools(**kwargs)[source]

Bases: View

API for pools

delete(request)[source]

Delete one or more pool by name.

Returns HTTP 204 (no content) on successful deletion.

get(request)[source]

Get a list of the Pools for admin.

The returned result is an object with property ‘items’ and each item under this is a pool.

put(request)[source]

Create a new pool.

Returns the new pool object on success.

url_regex = 'zaqar/pools/$'
class zaqar_ui.api.rest.zaqar.Queue(**kwargs)[source]

Bases: View

API for retrieving a single queue

get(request, queue_name)[source]

Get a specific queue

post(request, queue_name)[source]

Update a queue.

Returns the updated queue object on success.

url_regex = 'zaqar/queues/(?P<queue_name>[^/]+)$'
class zaqar_ui.api.rest.zaqar.QueueActions(**kwargs)[source]

Bases: View

API for actions on a single queue

post(request, queue_name, action)[source]

Actions for a queue

url_regex = 'zaqar/queues/(?P<queue_name>[^/]+)/(?P<action>[^/]+)$'
class zaqar_ui.api.rest.zaqar.Queues(**kwargs)[source]

Bases: View

API for queues

delete(request)[source]

Delete one or more queue by name.

Returns HTTP 204 (no content) on successful deletion.

get(request)[source]

Get a list of the Queues for a project.

The returned result is an object with property ‘items’ and each item under this is a queue.

put(request)[source]

Create a new queue.

Returns the new queue object on success.

url_regex = 'zaqar/queues/$'
class zaqar_ui.api.rest.zaqar.Subscription(**kwargs)[source]

Bases: View

API for retrieving a single subscription

post(request, queue_name, subscriber)[source]
url_regex = 'zaqar/queues/(?P<queue_name>[^/]+)/subscription/(?P<subscriber>[^/]+)/$'
class zaqar_ui.api.rest.zaqar.Subscriptions(**kwargs)[source]

Bases: View

API for Subscriptions

delete(request, queue_name)[source]

Delete one or more queue by name.

Returns HTTP 204 (no content) on successful deletion.

get(request, queue_name)[source]

Get a list of the Subscriptions for a queue.

put(request, queue_name)[source]

Create a new subscription.

Returns the new queue object on success.

url_regex = 'zaqar/queues/(?P<queue_name>[^/]+)/subscriptions/$'

Module contents

This package holds the REST API that supports the LBaaS v2 dashboard Javascript code. It is not intended to be used outside of Horizon, and makes no promises of stability or fitness for purpose outside of that scope. It does not promise to adhere to the general OpenStack API Guidelines set out in https://wiki.openstack.org/wiki/APIChangeGuidelines.