KeyManager API¶
For details on how to use key_management, see Using OpenStack Key Manager
The KeyManager Class¶
The key_management high-level interface is available through the
key_manager member of a Connection
object. The key_manager member will only be added if the service is
detected.
-
class
openstack.key_manager.v1._proxy.Proxy(session)¶ -
create_container(**attrs)¶ Create a new container from attributes
Parameters: attrs (dict) – Keyword arguments which will be used to create a Container, comprised of the properties on the Container class.Returns: The results of container creation Return type: Container
-
delete_container(container, ignore_missing=True)¶ Delete a container
Parameters: - container – The value can be either the ID of a container or a
Containerinstance. - ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the container does not exist. When set toTrue, no exception will be set when attempting to delete a nonexistent container.
Returns: None- container – The value can be either the ID of a container or a
-
find_container(name_or_id, ignore_missing=True)¶ Find a single container
Parameters: - name_or_id – The name or ID of a container.
- ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the resource does not exist. When set toTrue, None will be returned when attempting to find a nonexistent resource.
Returns: One
Containeror None
-
get_container(container)¶ Get a single container
Parameters: container – The value can be the ID of a container or a Containerinstance.Returns: One ContainerRaises: ResourceNotFoundwhen no resource can be found.
-
containers(**query)¶ Return a generator of containers
Parameters: **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Returns: A generator of container objects Return type: Container
-
update_container(container, **attrs)¶ Update a container
Parameters: container – Either the id of a container or a Containerinstance.Attrs kwargs: The attributes to update on the container represented by value.Returns: The updated container Return type: Container
-
create_order(**attrs)¶ Create a new order from attributes
Parameters: attrs (dict) – Keyword arguments which will be used to create a Order, comprised of the properties on the Order class.Returns: The results of order creation Return type: Order
-
delete_order(order, ignore_missing=True)¶ Delete an order
Parameters: - order – The value can be either the ID of a order or a
Orderinstance. - ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the order does not exist. When set toTrue, no exception will be set when attempting to delete a nonexistent order.
Returns: None- order – The value can be either the ID of a order or a
-
find_order(name_or_id, ignore_missing=True)¶ Find a single order
Parameters: - name_or_id – The name or ID of a order.
- ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the resource does not exist. When set toTrue, None will be returned when attempting to find a nonexistent resource.
Returns: One
Orderor None
-
get_order(order)¶ Get a single order
Parameters: order – The value can be the ID of an order or a Orderinstance.Returns: One OrderRaises: ResourceNotFoundwhen no resource can be found.
-
orders(**query)¶ Return a generator of orders
Parameters: **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. Returns: A generator of order objects Return type: Order
-
update_order(order, **attrs)¶ Update a order
Parameters: order – Either the id of a order or a Orderinstance.Attrs kwargs: The attributes to update on the order represented by value.Returns: The updated order Return type: Order
-
create_secret(**attrs)¶ Create a new secret from attributes
Parameters: attrs (dict) – Keyword arguments which will be used to create a Secret, comprised of the properties on the Order class.Returns: The results of secret creation Return type: Secret
-
delete_secret(secret, ignore_missing=True)¶ Delete a secret
Parameters: - secret – The value can be either the ID of a secret or a
Secretinstance. - ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the secret does not exist. When set toTrue, no exception will be set when attempting to delete a nonexistent secret.
Returns: None- secret – The value can be either the ID of a secret or a
-
find_secret(name_or_id, ignore_missing=True)¶ Find a single secret
Parameters: - name_or_id – The name or ID of a secret.
- ignore_missing (bool) – When set to
FalseResourceNotFoundwill be raised when the resource does not exist. When set toTrue, None will be returned when attempting to find a nonexistent resource.
Returns: One
Secretor None
-
get_secret(secret)¶ Get a single secret
Parameters: secret – The value can be the ID of a secret or a Secretinstance.Returns: One SecretRaises: ResourceNotFoundwhen no resource can be found.
-