Instance
Compute Instances are virtual private servers. Examples of this would be AWS EC2 and Azure Virtual Machines. This class inherits from TopLevelResource and has direct access to the resource’s database object.
Attributes |
Description |
---|---|
resource_id |
The primary resource identifier that takes the form of a prefix followed by numbers and letters |
organization_service_id |
The ID of the parent organization service (cloud) |
region_name |
The region that the instance resides in |
instance_id |
The provider ID of the instance |
instance_type |
The type of instance |
instance_flavor_resource_id |
The resource ID of the type (flavor) this instance runs on |
state |
The state that the instance is in |
name |
The name of the instance |
availability_zone |
The availability zone where this instance runs |
launch_time |
The time the instance was launched (started) |
create_time |
The time the instance was created |
platform |
The platform the system runs on (linux/windows) |
root_device_type |
Denotes the root device storage type |
root_device_name |
The name of the root device |
image_id |
The ID of the image used to create this instance |
key_name |
The name of the key pair used for this instance |
public_ip_address |
Returns the public IP address of this instance |
private_ip_address |
Returns the private IP address of this instance |
tenancy |
Type of tenancy - dedicated or default |
instance_status |
Returns the system and instance reachability status |
instance_flavor |
Returns a flavor object which contains information on the size of the instance |
access_lists |
Returns a list of associated security groups |
network_interfaces |
Returns a list of attached network interfaces |
volumes |
Returns a list of attached volumes |
Instance Operations
add_instance_to_app(name)
delete(user_resource_id=None, force_delete=False, wait_for_result=True)
get_aggregate_cost()
get_attached_ips()
get_attached_network_interfaces()
get_attached_networks()
get_attached_private_ips()
get_attached_public_ips()
get_attached_volumes()
get_availability_zone()
get_date_created()
static get_db_class()
get_image()
get_image_id()
get_image_name()
get_instance_type()
get_primary_network_interface_id()
static get_provider_id_field()
get_resource_dependencies()
static get_resource_type()
get_security_groups()
get_supported_actions()
handle_resource_created(user_resource_id=None, project_resource_id=None)
handle_resource_destroyed(user_resource_id=None)
handle_resource_modified(resource, *args, **kwargs)
instance
instance_id
is_attached_to_asg()
organization_service_id
pause()
region_name
remove_instance_from_app()
restart()
resume()
shelve()
start()
stop()
suspend()
top_level_resource = True
unpause()
unshelve()
uses_simple_networking()