The openstack_dashboard.api.nova ModuleΒΆ

class openstack_dashboard.api.nova.FlavorExtraSpec(flavor_id, key, val)[source]

Bases: object

class openstack_dashboard.api.nova.FloatingIp(fip)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

class openstack_dashboard.api.nova.FloatingIpManager(request)[source]

Bases: openstack_dashboard.api.network_base.FloatingIpManager

allocate(pool)[source]
associate(floating_ip_id, port_id)[source]
disassociate(floating_ip_id)[source]
get(floating_ip_id)[source]
get_target_id_by_instance(instance_id, target_list=None)[source]
is_simple_associate_supported()[source]
is_supported()[source]
list()[source]
list_pools()[source]
list_target_id_by_instance(instance_id, target_list=None)[source]
list_targets()[source]
release(floating_ip_id)[source]
class openstack_dashboard.api.nova.FloatingIpPool(pool)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

class openstack_dashboard.api.nova.FloatingIpTarget(server)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

class openstack_dashboard.api.nova.Hypervisor(apidict)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

Simple wrapper around novaclient.hypervisors.Hypervisor.

servers[source]
class openstack_dashboard.api.nova.NovaUsage(apiresource)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

Simple wrapper around contrib/simple_usage.py.

disk_gb_hours[source]
get_summary()[source]
local_gb[source]
memory_mb[source]
memory_mb_hours[source]
total_active_instances[source]
vcpu_hours[source]
vcpus[source]
class openstack_dashboard.api.nova.RDPConsole(apidict)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

Wrapper for the “console” dictionary.

Returned by the novaclient.servers.get_rdp_console method.

class openstack_dashboard.api.nova.SPICEConsole(apidict)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

Wrapper for the “console” dictionary.

Returned by the novaclient.servers.get_spice_console method.

class openstack_dashboard.api.nova.SecurityGroup(apiresource)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

Wrapper around novaclient.security_groups.SecurityGroup.

Wraps its rules in SecurityGroupRule objects and allows access to them.

rules[source]

Wraps transmitted rule info in the novaclient rule class.

to_dict()[source]
class openstack_dashboard.api.nova.SecurityGroupManager(request)[source]

Bases: openstack_dashboard.api.network_base.SecurityGroupManager

backend = 'nova'
create(name, desc)[source]
delete(security_group_id)[source]
get(sg_id)[source]
list()[source]
list_by_instance(instance_id)[source]

Gets security groups of an instance.

rule_create(parent_group_id, direction=None, ethertype=None, ip_protocol=None, from_port=None, to_port=None, cidr=None, group_id=None)[source]
rule_delete(security_group_rule_id)[source]
update(sg_id, name, desc)[source]
update_instance_security_group(instance_id, new_security_group_ids)[source]
class openstack_dashboard.api.nova.SecurityGroupRule(apiresource)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

Wrapper for individual rules in a SecurityGroup.

direction[source]
ethertype[source]
class openstack_dashboard.api.nova.SerialConsole(apidict)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

Wrapper for the “console” dictionary.

Returned by the novaclient.servers.get_serial_console method.

class openstack_dashboard.api.nova.Server(apiresource, request)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

Simple wrapper around novaclient.server.Server.

Preserves the request info so image name can later be retrieved.

availability_zone[source]
host_server[source]
image_name[source]
internal_name[source]
class openstack_dashboard.api.nova.VNCConsole(apidict)[source]

Bases: openstack_dashboard.api.base.APIDictWrapper

Wrapper for the “console” dictionary.

Returned by the novaclient.servers.get_vnc_console method.

openstack_dashboard.api.nova.add_host_to_aggregate(request, aggregate_id, host)[source]
openstack_dashboard.api.nova.add_tenant_to_flavor(request, flavor, tenant)[source]

Add a tenant to the given flavor access list.

openstack_dashboard.api.nova.aggregate_create(request, name, availability_zone=None)[source]
openstack_dashboard.api.nova.aggregate_delete(request, aggregate_id)[source]
openstack_dashboard.api.nova.aggregate_details_list(request)[source]
openstack_dashboard.api.nova.aggregate_get(request, aggregate_id)[source]
openstack_dashboard.api.nova.aggregate_set_metadata(request, aggregate_id, metadata)[source]
openstack_dashboard.api.nova.aggregate_update(request, aggregate_id, values)[source]
openstack_dashboard.api.nova.availability_zone_list(request, detailed=False)[source]
openstack_dashboard.api.nova.can_set_mount_point()[source]

Return the Hypervisor’s capability of setting mount points.

openstack_dashboard.api.nova.can_set_server_password()[source]
openstack_dashboard.api.nova.default_quota_get(request, tenant_id)[source]
openstack_dashboard.api.nova.default_quota_update(request, **kwargs)[source]
openstack_dashboard.api.nova.evacuate_host(request, host, target=None, on_shared_storage=False)[source]
openstack_dashboard.api.nova.extension_supported(*args, **kwargs)[source]

Determine if nova supports a given extension name.

Example values for the extension_name include AdminActions, ConsoleOutput, etc.

openstack_dashboard.api.nova.flavor_access_list(*args, **kwargs)[source]

Get the list of access instance sizes (flavors).

openstack_dashboard.api.nova.flavor_create(request, name, memory, vcpu, disk, flavorid='auto', ephemeral=0, swap=0, metadata=None, is_public=True, rxtx_factor=1)[source]
openstack_dashboard.api.nova.flavor_delete(request, flavor_id)[source]
openstack_dashboard.api.nova.flavor_extra_delete(request, flavor_id, keys)[source]

Unset the flavor extra spec keys.

openstack_dashboard.api.nova.flavor_extra_set(request, flavor_id, metadata)[source]

Set the flavor extra spec keys.

openstack_dashboard.api.nova.flavor_get(request, flavor_id, get_extras=False)[source]
openstack_dashboard.api.nova.flavor_get_extras(request, flavor_id, raw=False, flavor=None)[source]

Get flavor extra specs.

openstack_dashboard.api.nova.flavor_list(*args, **kwargs)[source]

Get the list of available instance sizes (flavors).

openstack_dashboard.api.nova.flavor_list_paged(*args, **kwargs)[source]

Get the list of available instance sizes (flavors).

openstack_dashboard.api.nova.get_password(request, instance_id, private_key=None)[source]
openstack_dashboard.api.nova.get_x509_credentials(request)[source]
openstack_dashboard.api.nova.get_x509_root_certificate(request)[source]
openstack_dashboard.api.nova.host_list(request)[source]
openstack_dashboard.api.nova.hypervisor_list(request)[source]
openstack_dashboard.api.nova.hypervisor_search(request, query, servers=True)[source]
openstack_dashboard.api.nova.hypervisor_stats(request)[source]
openstack_dashboard.api.nova.instance_action_list(request, instance_id)[source]
openstack_dashboard.api.nova.instance_volume_attach(request, volume_id, instance_id, device)[source]
openstack_dashboard.api.nova.instance_volume_detach(request, instance_id, att_id)[source]
openstack_dashboard.api.nova.instance_volumes_list(request, instance_id)[source]
openstack_dashboard.api.nova.interface_attach(request, server, port_id=None, net_id=None, fixed_ip=None)[source]
openstack_dashboard.api.nova.interface_detach(request, server, port_id)[source]
openstack_dashboard.api.nova.keypair_create(request, name)[source]
openstack_dashboard.api.nova.keypair_delete(request, keypair_id)[source]
openstack_dashboard.api.nova.keypair_get(request, keypair_id)[source]
openstack_dashboard.api.nova.keypair_import(request, name, public_key)[source]
openstack_dashboard.api.nova.keypair_list(request)[source]
openstack_dashboard.api.nova.list_extensions(*args, **kwargs)[source]

List all nova extensions, except the ones in the blacklist.

openstack_dashboard.api.nova.migrate_host(request, host, live_migrate=False, disk_over_commit=False, block_migration=False)[source]
openstack_dashboard.api.nova.novaclient(*args, **kwargs)[source]
openstack_dashboard.api.nova.remove_host_from_aggregate(request, aggregate_id, host)[source]
openstack_dashboard.api.nova.remove_tenant_from_flavor(request, flavor, tenant)[source]

Remove a tenant from the given flavor access list.

openstack_dashboard.api.nova.requires_keypair()[source]
openstack_dashboard.api.nova.server_confirm_resize(request, instance_id)[source]
openstack_dashboard.api.nova.server_console_output(request, instance_id, tail_length=None)[source]

Gets console output of an instance.

openstack_dashboard.api.nova.server_create(request, name, image, flavor, key_name, user_data, security_groups, block_device_mapping=None, block_device_mapping_v2=None, nics=None, availability_zone=None, instance_count=1, admin_pass=None, disk_config=None, config_drive=None, meta=None)[source]
openstack_dashboard.api.nova.server_delete(request, instance)[source]
openstack_dashboard.api.nova.server_get(request, instance_id)[source]
openstack_dashboard.api.nova.server_list(request, search_opts=None, all_tenants=False)[source]
openstack_dashboard.api.nova.server_live_migrate(request, instance_id, host, block_migration=False, disk_over_commit=False)[source]
openstack_dashboard.api.nova.server_lock(request, instance_id)[source]
openstack_dashboard.api.nova.server_metadata_delete(request, instance_id, keys)[source]
openstack_dashboard.api.nova.server_metadata_update(request, instance_id, metadata)[source]
openstack_dashboard.api.nova.server_migrate(request, instance_id)[source]
openstack_dashboard.api.nova.server_pause(request, instance_id)[source]
openstack_dashboard.api.nova.server_rdp_console(request, instance_id, console_type='rdp-html5')[source]
openstack_dashboard.api.nova.server_reboot(request, instance_id, soft_reboot=False)[source]
openstack_dashboard.api.nova.server_rebuild(request, instance_id, image_id, password=None, disk_config=None)[source]
openstack_dashboard.api.nova.server_resize(request, instance_id, flavor, disk_config=None, **kwargs)[source]
openstack_dashboard.api.nova.server_resume(request, instance_id)[source]
openstack_dashboard.api.nova.server_revert_resize(request, instance_id)[source]
openstack_dashboard.api.nova.server_serial_console(request, instance_id, console_type='serial')[source]
openstack_dashboard.api.nova.server_shelve(request, instance_id)[source]
openstack_dashboard.api.nova.server_spice_console(request, instance_id, console_type='spice-html5')[source]
openstack_dashboard.api.nova.server_start(request, instance_id)[source]
openstack_dashboard.api.nova.server_stop(request, instance_id)[source]
openstack_dashboard.api.nova.server_suspend(request, instance_id)[source]
openstack_dashboard.api.nova.server_unlock(request, instance_id)[source]
openstack_dashboard.api.nova.server_unpause(request, instance_id)[source]
openstack_dashboard.api.nova.server_unshelve(request, instance_id)[source]
openstack_dashboard.api.nova.server_update(request, instance_id, name)[source]
openstack_dashboard.api.nova.server_vnc_console(request, instance_id, console_type='novnc')[source]
openstack_dashboard.api.nova.service_disable(request, host, binary, reason=None)[source]
openstack_dashboard.api.nova.service_enable(request, host, binary)[source]
openstack_dashboard.api.nova.service_list(request, binary=None)[source]
openstack_dashboard.api.nova.snapshot_create(request, instance_id, name)[source]
openstack_dashboard.api.nova.tenant_absolute_limits(request, reserved=False)[source]
openstack_dashboard.api.nova.tenant_quota_get(request, tenant_id)[source]
openstack_dashboard.api.nova.tenant_quota_update(request, tenant_id, **kwargs)[source]
openstack_dashboard.api.nova.update_pagination(entities, page_size, marker, sort_dir, sort_key, reversed_order)[source]
openstack_dashboard.api.nova.usage_get(request, tenant_id, start, end)[source]
openstack_dashboard.api.nova.usage_list(request, start, end)[source]
openstack_dashboard.api.nova.virtual_interfaces_list(request, instance_id)[source]

Previous topic

The openstack_dashboard.api.base Module

Next topic

The openstack_dashboard.api.cinder Module

Project Source

This Page