The nova.api.ec2.cloud Module

Cloud Controller: Implementation of EC2 REST API calls, which are dispatched to other nodes via AMQP RPC. State is via distributed datastore.

class CloudController

Bases: object

CloudController provides the critical dispatch between inbound API calls through the endpoint and messages sent to the other nodes.

allocate_address(context, **kwargs)
associate_address(context, instance_id, public_ip, **kwargs)
attach_volume(context, volume_id, instance_id, device, **kwargs)
authorize_security_group_ingress(context, group_name=None, group_id=None, **kwargs)
create_image(context, instance_id, **kwargs)
create_key_pair(context, key_name, **kwargs)
create_security_group(context, group_name, group_description)
create_snapshot(context, volume_id, **kwargs)
create_tags(context, **kwargs)

Add tags to a resource

Returns True on success, error on failure.

Parameters:context – context under which the method is called
create_volume(context, **kwargs)
delete_key_pair(context, key_name, **kwargs)
delete_security_group(context, group_name=None, group_id=None, **kwargs)
delete_snapshot(context, snapshot_id, **kwargs)
delete_tags(context, **kwargs)

Delete tags

Returns True on success, error on failure.

Parameters:context – context under which the method is called
delete_volume(context, volume_id, **kwargs)
deregister_image(context, image_id, **kwargs)
describe_addresses(context, public_ip=None, **kwargs)
describe_availability_zones(context, **kwargs)
describe_image_attribute(context, image_id, attribute, **kwargs)
describe_images(context, image_id=None, **kwargs)
describe_instance_attribute(context, instance_id, attribute, **kwargs)
describe_instances(context, **kwargs)
describe_instances_v6(context, **kwargs)
describe_key_pairs(context, key_name=None, **kwargs)
describe_regions(context, region_name=None, **kwargs)
describe_security_groups(context, group_name=None, group_id=None, **kwargs)
describe_snapshots(context, snapshot_id=None, owner=None, restorable_by=None, **kwargs)
describe_tags(context, **kwargs)

List tags

Returns a dict with a single key ‘tagSet’ on success, error on failure.

Parameters:context – context under which the method is called
describe_volumes(context, volume_id=None, **kwargs)
detach_volume(context, volume_id, **kwargs)
disassociate_address(context, public_ip, **kwargs)
get_console_output(context, instance_id, **kwargs)
get_password_data(context, instance_id, **kwargs)
import_key_pair(context, key_name, public_key_material, **kwargs)
modify_image_attribute(context, image_id, attribute, operation_type, **kwargs)
reboot_instances(context, instance_id, **kwargs)

instance_id is a list of instance ids.

register_image(context, image_location=None, **kwargs)
release_address(context, public_ip, **kwargs)
revoke_security_group_ingress(context, group_name=None, group_id=None, **kwargs)
run_instances(context, **kwargs)
start_instances(context, instance_id, **kwargs)

Start each instances in instance_id. Here instance_id is a list of instance ids

stop_instances(context, instance_id, **kwargs)

Stop each instances in instance_id. Here instance_id is a list of instance ids

terminate_instances(context, instance_id, **kwargs)

Terminate each instance in instance_id, which is a list of ec2 ids. instance_id is a kwarg so its name cannot be modified.

update_image(context, image_id, **kwargs)
class CloudSecurityGroupNeutronAPI(skip_policy_check=False)

Bases: nova.api.ec2.cloud.EC2SecurityGroupExceptions, nova.network.security_group.neutron_driver.SecurityGroupAPI

class CloudSecurityGroupNovaAPI(skip_policy_check=False, **kwargs)

Bases: nova.api.ec2.cloud.EC2SecurityGroupExceptions, nova.compute.api.SecurityGroupAPI

class EC2SecurityGroupExceptions

Bases: object

static raise_group_already_exists(msg)
static raise_invalid_cidr(cidr, decoding_exception=None)
static raise_invalid_group(msg)
static raise_invalid_property(msg)
static raise_not_found(msg)
static raise_over_quota(msg)
get_cloud_security_group_api()
validate_instance_id(instance_id)
validate_volume_id(volume_id)

Previous topic

The nova.api.ec2.apirequest Module

Next topic

The nova.api.ec2.ec2utils Module

Project Source

This Page