SSH Key Pairs

SSH key pairs are the public and private keys associated with a cloud provider within an organization service. This class inherits from TopLevelResource and has direct access to the resource’s database object. The following attributes are directly accessible:

attr resource_id:
 The primary resource identifier that takes the form of a prefix followed by numbers and letters
attr organization_service_id:
 The ID of the parent organization service (cloud)
attr region_name:
 The region this SSH key pair resides in
attr keypair_id:
 The ID of the key pair
attr fingerprint:
 The fingerprint of this key pair
attr name:The name of this SSH key pair
class DivvyResource.Resources.sshkeypair.SshKeyPair(resource_id)

Bases: DivvyResource.Resources.toplevelresource.TopLevelResource

SSH Key Pair Operations

Delete this resource. If wrapped in a with JobQueue() block, this will queue the deletion job to the wrapped queue, otherwise it
calls immediately.
static get_db_class()

Retrieve the fingerprint of the SSH Keypair

static get_provider_id_field()
static get_resource_type()

This should be called when a resource is created/discovered after the basic data is added to the database. This gives an opportunity for post-addition hooks (assignment to groups, alerts, etc)


This should be called when a resource is destroyed before the basic data is removed from the database. This gives an opportunity for pre-destruction hooks (removal from projects/groups, alerts, etc)

handle_resource_modified(resource, *args, **kwargs)

This should be called when a resource is modified after the new data has been updated in the DB session This gives an opportunity for post-modification hooks

top_level_resource = True