The nova.api.openstack.compute.keypairs
Module¶
Keypair management extension.
-
class
Controller
(view_builder=None)¶ Bases:
nova.api.openstack.wsgi.Controller
-
detail
(req, resp_obj)¶
-
show
(req, resp_obj, id)¶
-
wsgi_actions
= {}¶
-
wsgi_extensions
= [('show', None), ('detail', None)]¶
-
-
class
KeypairController
¶ Bases:
nova.api.openstack.wsgi.Controller
Keypair API controller for the OpenStack API.
-
create
(*args, **kwargs)¶ Create or import keypair.
Sending name will generate a key and return private_key and fingerprint.
You can send a public_key to add an existing ssh key.
- params: keypair object with:
- name (required) - string public_key (optional) - string
-
delete
(*args, **kwargs)¶
-
index
(*args, **kwargs)¶
-
show
(*args, **kwargs)¶
-
versioned_methods
= {'index': [<nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6ed0>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6110>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6150>], 'create': [<nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e35d2410>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e35d2c90>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e35d2c10>], 'show': [<nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6250>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6a50>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6190>], 'delete': [<nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e33f6fd0>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e35d2510>, <nova.api.openstack.versioned_method.VersionedMethod object at 0x7ff1e35d2890>]}¶
-
wsgi_actions
= {}¶
-
wsgi_extensions
= []¶
-
-
class
Keypairs
(extension_info)¶ Bases:
nova.api.openstack.extensions.V21APIExtensionBase
Keypair Support.
-
alias
= 'os-keypairs'¶
-
get_controller_extensions
()¶
-
get_resources
()¶
-
get_server_create_schema
(version)¶
-
name
= 'Keypairs'¶
-
server_create
(server_dict, create_kwargs, body_deprecated_param)¶
-
version
= 1¶
-