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

FloatingIpManager.allocate(pool)[source]
FloatingIpManager.associate(floating_ip_id, port_id)[source]
FloatingIpManager.disassociate(floating_ip_id, port_id)[source]
FloatingIpManager.get(floating_ip_id)[source]
FloatingIpManager.get_target_id_by_instance(instance_id)[source]
FloatingIpManager.is_simple_associate_supported()[source]
FloatingIpManager.list()[source]
FloatingIpManager.list_pools()[source]
FloatingIpManager.list_target_id_by_instance(instance_id)[source]
FloatingIpManager.list_targets()[source]
FloatingIpManager.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.NovaUsage(apiresource)[source]

Bases: openstack_dashboard.api.base.APIResourceWrapper

Simple wrapper around contrib/simple_usage.py.

NovaUsage.disk_gb_hours[source]
NovaUsage.get_summary()[source]
NovaUsage.local_gb[source]
NovaUsage.memory_mb[source]
NovaUsage.total_active_instances[source]
NovaUsage.vcpu_hours[source]
NovaUsage.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 which wraps its rules in SecurityGroupRule objects and allows access to them.

SecurityGroup.rules[source]

Decorator that converts a method with a single self argument into a property cached on the instance.

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

Bases: openstack_dashboard.api.network_base.SecurityGroupManager

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

Gets security groups of an instance.

SecurityGroupManager.rule_create(parent_group_id, direction=None, ethertype=None, ip_protocol=None, from_port=None, to_port=None, cidr=None, group_id=None)[source]
SecurityGroupManager.rule_delete(security_group_rule_id)[source]
SecurityGroupManager.update(sg_id, name, desc)[source]
SecurityGroupManager.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.

SecurityGroupRule.direction[source]
SecurityGroupRule.ethertype[source]
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

Server.availability_zone[source]
Server.image_name[source]
Server.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_update(request, aggregate_id, values)[source]
openstack_dashboard.api.nova.availability_zone_list(request, detailed=False)[source]
openstack_dashboard.api.nova.can_set_server_password()[source]
openstack_dashboard.api.nova.default_quota_get(request, tenant_id)[source]
openstack_dashboard.api.nova.extension_supported(*args, **kwargs)[source]

this method will 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)[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)[source]
openstack_dashboard.api.nova.flavor_get_extras(request, flavor_id, raw=False)[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.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_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.keypair_create(request, name)[source]
openstack_dashboard.api.nova.keypair_delete(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]
openstack_dashboard.api.nova.novaclient(request)[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.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)[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_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_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_unpause(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_list(request)[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.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.glance Module

Next topic

The openstack_dashboard.api.trove Module

This Page