OVH is an Internet Service Provider providing dedicated servers, shared andcloud hosting, domain registration, and VOIP telephony services.
Giles 21296 Power Pack Assembly With Driver Board, 120V. View Full Details. Giles 35881 Fan Assembly, 208-240V, 60HZ, 1PH, OVH-10. Resolution of problems linked to the functioning of the OVH Control Panel or OVH APIs Code development Maintenance, unblocking, outages and support for software not developed by OVHcloud Webmastering, source code, development or website updates Management of distributions and customised operating systems System administration. Resolution of problems linked to the functioning of the OVH Control Panel or OVH APIs Code development Maintenance, unblocking, outages and support for software not developed by OVHcloud Webmastering, source code, development or website updates Management of distributions and customised operating systems System administration. Activity Cost Driver Est Ovh Rapiwash Cleanwash Pump assembly Number of units 6 10600 Machining Machine hours 3 12680 Assembly Assembly hour. Windows 8.1 Lite Clean By SasNet with Latest Updates. Original Microsoft ISO Image from MSDN (Windows 8.1 with Update (multiple editions) (x86) - DVD (English) 6051550).
OVH driver uses a REST API, for more information about that, please refer toAPI console.
Instantiating a driver¶
When you instantiate a driver you need to pass the following arguments to thedriver constructor:
key
- Application keysecret
- Application secretex_project_id
- Project IDex_consumer_key
- Consumer key
For get application key and secret, you must register an applicationat https://eu.api.ovh.com/createApp/. Next step, create a consumer key withfollowing command:
This will answer a JSON like below with inside your Consumer Key andvalidationUrl
. Follow this link for valid your key.
Secondly, you must create a cloud project and retrieve its ID, from URL forexample.
Now you have and can use you credentials with Libcloud.
Examples¶
Create node¶
Create and attach a volume to a node¶
API Docs¶
libcloud.compute.drivers.ovh.
OvhNodeDriver
(key, secret, ex_project_id, ex_consumer_key=None, region=None)[source]¶Libcloud driver for the Ovh API
For more information on the Ovh API, read the official reference:
Instantiate the driver with the given API credentials.
Parameters: |
|
---|---|
Return type: |
|
attach_volume
(node, volume, device=None)[source]¶Attach a volume to a node.
Parameters: |
|
---|---|
Returns: | True or False representing operation successful |
Return type: |
|
connectionCls
¶alias of libcloud.common.ovh.OvhConnection
copy_image
(source_region, node_image, name, description=None)¶Copies an image from a source region to the current region.
Parameters: |
|
---|---|
Return type: |
|
Returns: | NodeImage instance on success. |
create_image
(node, name, description=None)¶Creates an image from a node object.
Parameters: |
|
---|---|
Return type: |
|
Returns: | NodeImage instance on success. |
create_key_pair
(name)¶Create a new key pair object.
Parameters: | name (str ) – Key pair name. |
---|---|
Return type: | KeyPair object |
create_node
(name, image, size, location, ex_keyname=None)[source]¶Create a new node
Parameters: |
|
---|---|
Returns: | Created node |
:rtype : Node
create_volume
(size, name, location, snapshot=None, ex_volume_type='classic', ex_description=None)[source]¶Create a volume.
Parameters: |
|
---|---|
Returns: | Storage Volume object |
Return type: |
|
create_volume_snapshot
(volume, name=None, ex_description=None)[source]¶Create snapshot from volume
Parameters: |
|
---|---|
Return type: |
|
delete_image
(node_image)¶Deletes a node image from a provider.
Parameters: | node_image (NodeImage ) – Node image object. |
---|---|
Returns: | True if delete_image was successful, False otherwise. |
Return type: | bool |
delete_key_pair
(key_pair)[source]¶Delete an existing key pair.
Parameters: | key_pair (KeyPair ) – Key pair object. |
---|---|
Return type: | bool |
deploy_node
(deploy, ssh_username='root', ssh_alternate_usernames=None, ssh_port=22, ssh_timeout=10, ssh_key=None, ssh_key_password=None, auth=None, timeout=300, max_tries=3, ssh_interface='public_ips', at_exit_func=None, wait_period=5, **create_node_kwargs)¶Create a new node, and start deployment.
In order to be able to SSH into a created node access credentials arerequired.
A user can pass either a NodeAuthPassword
orNodeAuthSSHKey
to the auth
argument. If thecreate_node
implementation supports that kind if credential (asdeclared in self.features['create_node']
) then it is passed on tocreate_node
. Otherwise it is not passed on to create_node
andit is only used for authentication.
If the auth
parameter is not supplied but the driver declares itsupports generates_password
then the password returned bycreate_node
will be used to SSH into the server.
Omh Driver Installer
Finally, if the ssh_key_file
is supplied that key will be used toSSH into the server.
This function may raise a DeploymentException
, if acreate_node call was successful, but there is a later error (like SSHfailing or timing out). This exception includes a Node object whichyou may want to destroy if incomplete deployments are not desirable.
Deploy node is typically not overridden in subclasses. Theexisting implementation should be able to handle most such.
Parameters: |
|
---|
destroy_node
(node)[source]¶Destroy a node.
Depending upon the provider, this may destroy all data associated withthe node, including backups.
Parameters: | node (Node ) – The node to be destroyed |
---|---|
Returns: | True if the destroy was successful, False otherwise. |
Return type: | bool |
destroy_volume
(volume)[source]¶Destroys a storage volume.
Parameters: | volume (StorageVolume ) – Volume to be destroyed |
---|---|
Return type: | bool |
destroy_volume_snapshot
(snapshot)[source]¶Destroys a snapshot.
Parameters: | snapshot (VolumeSnapshot ) – The snapshot to delete |
---|---|
Return type: | bool |
detach_volume
(volume, ex_node=None)[source]¶Detach a volume to a node.
Parameters: |
|
---|---|
Returns: | True or False representing operation successful |
Return type: |
|
Raises: | Exception: If |
ex_get_node
(node_id)[source]¶Get a individual node.
Parameters: | node_id (str ) – Node’s ID |
---|---|
Returns: | Created node |
:rtype : Node
ex_get_size
(size_id)[source]¶Get an individual size (flavor).
Parameters: | size_id (str ) – Size’s ID |
---|---|
Returns: | Size |
Return type: | NodeSize |
ex_get_volume
(volume_id)[source]¶Return a Volume object based on a volume ID.
Parameters: | volume_id (int ) – The ID of the volume |
---|---|
Returns: | A StorageVolume object for the volume |
Return type: | StorageVolume |
ex_get_volume_snapshot
(snapshot_id)[source]¶Returns a single volume snapshot.
Parameters: | snapshot_id (str ) – Node to run the task on. |
---|
:rtype VolumeSnapshot
::return: Volume snapshot.
ex_list_snapshots
(location=None)[source]¶List all snapshots.
Parameters: | location (NodeLocation or None ) – Location used to filter |
---|---|
Return type: | list of VolumeSnapshot |
get_image
(image_id)[source]¶Returns a single node image from a provider.
Parameters: | image_id (str ) – Node to run the task on. |
---|
:rtype NodeImage
::return: NodeImage instance on success.
get_key_pair
(name, ex_location=None)[source]¶Get an individual SSH public key by its name and location.
Parameters: |
|
---|---|
Returns: | Public key |
Return type: |
|
import_key_pair_from_file
(name, key_file_path)¶Import a new public key from string.
Parameters: |
|
---|---|
Return type: |
|
import_key_pair_from_string
(name, key_material, ex_location)[source]¶Import a new public key from string.
Parameters: |
|
---|---|
Returns: | Imported key pair object. |
Return type: |
|
list_images
(location=None, ex_size=None)[source]¶List available images
Parameters: |
|
---|---|
Returns: | List of images |
:rtype : list
of NodeImage
list_key_pairs
(ex_location=None)[source]¶List available SSH public keys.
Parameters: | ex_location (NodeLocation ) – Location (region) used as filter |
---|---|
Returns: | Public keys |
Return type: | ``list``of KeyPair |
list_locations
()[source]¶List data centers for a provider
Returns: | list of node location objects |
---|---|
Return type: | list of NodeLocation |
list_nodes
(location=None)[source]¶List all nodes.
Parameters: | location (NodeLocation ) – Location (region) used as filter |
---|---|
Returns: | List of node objects |
Return type: | list of Node |
list_sizes
(location=None)[source]¶List sizes on a provider
Parameters: | location (NodeLocation ) – The location at which to list sizes |
---|---|
Returns: | list of node size objects |
Return type: | list of NodeSize |
list_volume_snapshots
(volume)[source]¶List snapshots for a storage volume.
Return type: | list of VolumeSnapshot |
---|
list_volumes
(ex_location=None)[source]¶Return a list of volumes.
Parameters: | ex_location (NodeLocation or None ) – Location used to filter |
---|---|
Returns: | A list of volume objects. |
Return type: | list of StorageVolume |
reboot_node
(node)¶Reboot a node.
Parameters: | node (Node ) – The node to be rebooted |
---|---|
Returns: | True if the reboot was successful, otherwise False |
Return type: | bool |
start_node
(node)¶Start a node.
Parameters: | node (Node ) – The node to be started |
---|---|
Returns: | True if the start was successful, otherwise False |
Return type: | bool |
stop_node
(node)¶Stop a node
Parameters: | node (Node ) – The node to be stopped. |
---|---|
Returns: | True if the stop was successful, otherwise False |
Return type: | bool |
wait_until_running
(nodes, wait_period=5, timeout=600, ssh_interface='public_ips', force_ipv4=True, ex_list_nodes_kwargs=None)¶Block until the provided nodes are considered running.
Node is considered running when it’s state is “running” and when it hasat least one IP address assigned.
Oh Drivers License
Parameters: |
|
---|---|
Returns: |
|
Return type: |
|
Oh Drivers License Age
- Rise ServersHosting websites, streaming platforms and business applic...
- Advance ServersVersatile servers, adapted to suit your business needs.
- Dedicated Infrastructure serversTop range components with high-speed connectivity, advanc...
- Storage ServersStore large amounts of data, archive or perform backups.
- HG Premium Customisable Servers - Big DataResource-intensive production uses, while offering high s...
- Game serversHigh performance for video game designers and streaming p...
- All OVHcloud dedicated serversSee all our dedicated server ranges
- Distributions et licencesSee all our distributions and licences