

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L24"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager

``` python

def OVHGPUManager(
    endpoint:NoneType=None, # API endpoint like 'ovh-eu'
    application_key:NoneType=None, # Application key
    application_secret:NoneType=None, # Application secret
    consumer_key:NoneType=None, # Consumer key
):

```

*OVHGPUManager is a OVH API client wrapper that enables to create,
delete, start and stop GPU instances*

By default the OVH client expects the following environment variables to
be set, but you can overwrite them using the provided arguments:

- OVH_ENDPOINT
- OVH_APPLICATION_KEY
- OVH_APPLICATION_SECRET
- OVH_CONSUMER_KEY

This is an example of OVHGPUManager creation, it assumes the expected
environment variables have been set

``` python
# assuming environment variables are set
client = OVHGPUManager()
```

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L71"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.list_projects

``` python

def list_projects(
    
)->list:

```

*Returns the list of available project IDs for the OVH Cloud account*

``` python
# listing the projects existing in the OVH Cloud account
client.list_projects()
```

    ['PROJECT_ID']

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L79"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_project

``` python

def select_project(
    project_idx:str=None, # Project OVH ID
)->Any:

```

*Lists available projects for the OVH Cloud account and prompts user to
select a project if no project id is passed as an argument*

Let’s now select a project by passing a specific project ID

``` python
client.select_project('PROJECT_ID')
```

    2026-02-11 15:20:53.542 | INFO     | __main__:select_project:12 - Available projects:
    2026-02-11 15:20:53.586 | INFO     | __main__:select_project:20 - Selected project: PROJECT_ID

    1. PROJECT_ID

    <ovhmanager.project.OVHProject>

Or by interactively selecting it

``` python
client.select_project()
```

    2026-02-11 12:11:30.322 | INFO     | __main__:select_project:12 - Available projects:

    1. PROJECT_ID

    Select project number:  1

    2026-02-11 12:11:32.161 | INFO     | __main__:select_project:20 - Selected project: PROJECT_ID

    <ovhmanager.project.OVHProject>

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L101"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.list_regions

``` python

def list_regions(
    
)->list:

```

*Returns the list region for the selected project*

``` python
client.list_regions()
```

    ['BHS',
     'BHS5',
     'CA-EAST-TOR',
     'DE',
     'DE1',
     'EU-SOUTH-MIL',
     'EU-WEST-PAR',
     'GRA',
     'GRA9',
     'RBX',
     'RBX-A',
     'RBX-ARCHIVE',
     'SBG',
     'SBG5',
     'UK',
     'UK1',
     'WAW',
     'WAW1']

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L110"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_region

``` python

def select_region(
    region:str=None, # OVH region
)->Any:

```

*Lists available region for the OVH Project and prompts user to select a
region if no region is passed as an argument* This method sets both the
OVHGPUManager and the OVHProject

let’s now select a region by passing it

``` python
client.select_region('GRA9')
```

    2026-02-11 15:20:59.975 | INFO     | __main__:select_region:23 - Selected region: GRA9

    'GRA9'

``` python
client.region, client.project.region
```

    ('GRA9', 'GRA9')

Or by interactively selecting it

``` python
client.select_region()
```

    2026-02-11 12:59:13.263 | INFO     | __main__:select_region:14 - Available region:

    1. BHS
    2. BHS5
    3. CA-EAST-TOR
    4. DE
    5. DE1
    6. EU-SOUTH-MIL
    7. EU-WEST-PAR
    8. GRA
    9. GRA9
    10. RBX
    11. RBX-A
    12. RBX-ARCHIVE
    13. SBG
    14. SBG5
    15. UK
    16. UK1
    17. WAW
    18. WAW1

    Select region number:  9

    2026-02-11 12:59:17.141 | INFO     | __main__:select_region:23 - Selected region: GRA9

    'GRA9'

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L135"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_consumption_mode

``` python

def select_consumption_mode(
    consumption_mode:str=None, # Ressource consumption mode
)->str:

```

*Lists available OVH ressources consumption modes and prompts user to
select a consumption mode if no mode is passed as an argument*

let’s now select a consumption mode by passing it

``` python
client.select_consumption_mode('monthly.postpaid')
```

    2026-02-11 12:11:47.587 | INFO     | __main__:select_consumption_mode:20 - Selected consumption mode: monthly.postpaid

    'monthly.postpaid'

``` python
client.select_consumption_mode()
```

    2026-02-11 12:53:36.534 | INFO     | __main__:select_consumption_mode:13 - Available consumption modes:


    Consumption modes:
    1. consumption (hourly)
    2. monthly.postpaid

    Select mode:  1

    2026-02-11 12:53:38.138 | INFO     | __main__:select_consumption_mode:20 - Selected consumption mode: consumption

    'consumption'

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L157"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.retrieve_catalog_dict

``` python

def retrieve_catalog_dict(
    subsidiary:str='FR', # OVH catalpg subsidiary/country code
)->dict:

```

*Retrieves an OVH catalog for a specific OVH subsidiary*

``` python
catalog_dict = client.retrieve_catalog_dict()
assert catalog_dict
```

    2026-02-11 12:53:42.316 | INFO     | __main__:retrieve_catalog_dict:13 - Retrieved catalog dictionary for FR subsidiary

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L174"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_gpu_instance_type

``` python

def select_gpu_instance_type(
    subsidiary:str='FR', # OVH catalog subsidiary/country code
    gpu_type:NoneType=None, # GPU instance type
    consumption_mode:NoneType=None, # Ressource consumption mode
)->Any:

```

*Lists available OVH GPU instance types and prompts user to select a GPU
type if no gpu type is passed as an argument*

Let’s now select a specific gpu type and consumption mode

``` python
client.select_gpu_instance_type(gpu_type='t2-180', consumption_mode='monthly.postpaid')
```

    2026-02-11 12:53:47.712 | INFO     | __main__:retrieve_catalog_dict:13 - Retrieved catalog dictionary for FR subsidiary
    2026-02-11 12:53:47.712 | INFO     | __main__:select_gpu_instance_type:17 - Retrieved OVH catalog
    2026-02-11 12:53:47.713 | INFO     | __main__:select_consumption_mode:20 - Selected consumption mode: monthly.postpaid
    2026-02-11 12:53:47.713 | INFO     | __main__:select_gpu_instance_type:31 - Selected GPU: t2-180, with monthly.postpaid consumption mode

    't2-180'

Let’s now interactively select a gpu type

``` python
client.select_gpu_instance_type()
```

    2026-02-11 12:53:49.314 | INFO     | __main__:retrieve_catalog_dict:13 - Retrieved catalog dictionary for FR subsidiary
    2026-02-11 12:53:49.315 | INFO     | __main__:select_gpu_instance_type:17 - Retrieved OVH catalog
    2026-02-11 12:53:49.315 | INFO     | __main__:select_consumption_mode:13 - Available consumption modes:


    Consumption modes:
    1. consumption (hourly)
    2. monthly.postpaid

    Select mode:  1

    2026-02-11 12:53:54.989 | INFO     | __main__:select_consumption_mode:20 - Selected consumption mode: consumption
    2026-02-11 12:53:54.996 | INFO     | ovhmanager.catalog:list_gpu_instances:101 - Available GPU instances:

    +----+------------+------------------+----------------+--------------+-------------+--------+
    |    | Name       | Price per hour   | GPU Model      | GPU Memory   |   CPU Cores | RAM    |
    +====+============+==================+================+==============+=============+========+
    |  1 | a10-180    | 3.04 €           | A10            | 24GB         |         120 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  2 | a10-45     | 0.76 €           | A10            | 24GB         |          30 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  3 | a10-90     | 1.52 €           | A10            | 24GB         |          60 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  4 | h100-1520  | 11.20 €          | H100           | 80GB         |         120 | 1520GB |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  5 | h100-380   | 2.80 €           | H100           | 80GB         |          30 | 380GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  6 | h100-760   | 5.60 €           | H100           | 80GB         |          60 | 760GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  7 | l4-180     | 1.50 €           | L4             | 24GB         |          45 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  8 | l4-360     | 3.00 €           | L4             | 24GB         |          90 | 360GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  9 | l4-90      | 0.75 €           | L4             | 24GB         |          22 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 10 | rtx5000-28 | 0.36 €           | Quadro-RTX5000 | 16GB         |           4 | 28GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 11 | rtx5000-56 | 0.72 €           | Quadro-RTX5000 | 16GB         |           8 | 56GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 12 | rtx5000-84 | 1.08 €           | Quadro-RTX5000 | 16GB         |          16 | 84GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 13 | t1-180     | 6.60 €           | Tesla V100     | 16GB         |          36 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 14 | t1-45      | 1.65 €           | Tesla V100     | 16GB         |           8 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 15 | t1-90      | 3.30 €           | Tesla V100     | 16GB         |          18 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 16 | t1-le-180  | 2.80 €           | Tesla V100     | 16GB         |          32 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 17 | t1-le-45   | 0.70 €           | Tesla V100     | 16GB         |           8 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 18 | t1-le-90   | 1.40 €           | Tesla V100     | 16GB         |          16 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 19 | t2-180     | 7.20 €           | Tesla V100S    | 32GB         |          60 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 20 | t2-45      | 1.80 €           | Tesla V100S    | 32GB         |          15 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 21 | t2-90      | 3.60 €           | Tesla V100S    | 32GB         |          30 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 22 | t2-le-180  | 3.20 €           | Tesla V100S    | 32GB         |          60 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 23 | t2-le-45   | 0.80 €           | Tesla V100S    | 32GB         |          15 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 24 | t2-le-90   | 1.60 €           | Tesla V100S    | 32GB         |          30 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+


    Select GPU instance number:  10

    2026-02-11 12:54:04.384 | INFO     | __main__:select_gpu_instance_type:31 - Selected GPU: rtx5000-28, with consumption consumption mode

    'rtx5000-28'

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L215"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.retrieve_gpu_flavor

``` python

def retrieve_gpu_flavor(
    
)->str:

```

*Retrieve the OVH instance flavor associated the selected GPU type*

``` python
client.retrieve_gpu_flavor()
```

    2026-02-11 15:08:46.376 | INFO     | __main__:retrieve_gpu_flavor:15 - Selected GPU flavor id: c5708c95-f450-43c3-8b56-7d498e7b5d07

    'c5708c95-f450-43c3-8b56-7d498e7b5d07'

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L232"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_instance_image

``` python

def select_instance_image(
    image_family:str='Ubuntu', # The OS familly to look for. Based on key word search
    image_id:str=None, # The image id if already nown
    image_name:str=None, # The image name if already nown
)->tuple:

```

*Lists available instance images and prompts user to select an image if
no image ID an is passed as an argument*

``` python
client.select_instance_image()
```

    2026-02-11 12:54:12.964 | INFO     | __main__:select_instance_image:19 - 
    Available Ubuntu images:

    1. Baremetal - Ubuntu 22.04
    2. Ubuntu 25.04
    3. Ubuntu 24.04
    4. Ubuntu 22.04
    5. Ubuntu 25.04 - UEFI
    6. Ubuntu 24.04 - UEFI
    7. Ubuntu 22.04 - UEFI

    Select image number:  3

    2026-02-11 12:54:17.841 | INFO     | __main__:select_instance_image:28 - Selected instance image: 8d595649-b9b2-4aeb-a544-a3709abf437f:Ubuntu 24.04

    ('8d595649-b9b2-4aeb-a544-a3709abf437f', 'Ubuntu 24.04')

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L262"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.select_ssh_key

``` python

def select_ssh_key(
    ssh_key_id:str=None, # OVH ssh key ID
    ssh_key_name:str=None
)->tuple:

```

*Lists available ssh keys and prompts user to select a ssh key if no ssh
key ID is passed as an argument*

``` python
client.select_ssh_key()
```

    2026-02-11 12:54:22.512 | INFO     | __main__:select_ssh_key:16 - 
    Available SSH keys:

    1. Mac-V
    2. Sys76

    Select SSH key number:  1

    2026-02-11 12:54:24.946 | INFO     | __main__:select_ssh_key:24 - Selected SSH key: 5457466a4c56593d:Mac-V

    ('5457466a4c56593d', 'Mac-V')

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L288"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.create_instance

``` python

def create_instance(
    subsidiary:str='FR', # OVH catalpg subsidiary/country code
    gpu_type:NoneType=None, # GPU instance type
    consumption_mode:NoneType=None, # Ressource consumption mode
    image_family:str='Ubuntu', # The OS familly to look for. Based on key word search
    image_id:str=None, # The image id if already nown
    image_name:str=None, # The image name if already nown
    ssh_key_id:str=None, # OVH ssh key ID
    ssh_key_name:str=None, instance_name:NoneType=None
)->Any:

```

*Creates an OVH GPU instance either using passed arguments otherwise by
prompting the user for inputs*

``` python
client.create_instance()
```

    2026-02-11 15:08:53.885 | INFO     | __main__:retrieve_catalog_dict:13 - Retrieved catalog dictionary for FR subsidiary
    2026-02-11 15:08:53.886 | INFO     | __main__:select_gpu_instance_type:19 - Retrieved OVH catalog
    2026-02-11 15:08:53.887 | INFO     | __main__:select_consumption_mode:13 - Available consumption modes:


    Consumption modes:
    1. consumption (hourly)
    2. monthly.postpaid

    Select mode:  1

    2026-02-11 15:08:55.655 | INFO     | __main__:select_consumption_mode:20 - Selected consumption mode: consumption
    2026-02-11 15:08:55.661 | INFO     | ovhmanager.catalog:list_gpu_instances:101 - Available GPU instances:

    +----+------------+------------------+----------------+--------------+-------------+--------+
    |    | Name       | Price per hour   | GPU Model      | GPU Memory   |   CPU Cores | RAM    |
    +====+============+==================+================+==============+=============+========+
    |  1 | a10-180    | 3.04 €           | A10            | 24GB         |         120 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  2 | a10-45     | 0.76 €           | A10            | 24GB         |          30 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  3 | a10-90     | 1.52 €           | A10            | 24GB         |          60 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  4 | h100-1520  | 11.20 €          | H100           | 80GB         |         120 | 1520GB |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  5 | h100-380   | 2.80 €           | H100           | 80GB         |          30 | 380GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  6 | h100-760   | 5.60 €           | H100           | 80GB         |          60 | 760GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  7 | l4-180     | 1.50 €           | L4             | 24GB         |          45 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  8 | l4-360     | 3.00 €           | L4             | 24GB         |          90 | 360GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    |  9 | l4-90      | 0.75 €           | L4             | 24GB         |          22 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 10 | rtx5000-28 | 0.36 €           | Quadro-RTX5000 | 16GB         |           4 | 28GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 11 | rtx5000-56 | 0.72 €           | Quadro-RTX5000 | 16GB         |           8 | 56GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 12 | rtx5000-84 | 1.08 €           | Quadro-RTX5000 | 16GB         |          16 | 84GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 13 | t1-180     | 6.60 €           | Tesla V100     | 16GB         |          36 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 14 | t1-45      | 1.65 €           | Tesla V100     | 16GB         |           8 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 15 | t1-90      | 3.30 €           | Tesla V100     | 16GB         |          18 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 16 | t1-le-180  | 2.80 €           | Tesla V100     | 16GB         |          32 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 17 | t1-le-45   | 0.70 €           | Tesla V100     | 16GB         |           8 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 18 | t1-le-90   | 1.40 €           | Tesla V100     | 16GB         |          16 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 19 | t2-180     | 7.20 €           | Tesla V100S    | 32GB         |          60 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 20 | t2-45      | 1.80 €           | Tesla V100S    | 32GB         |          15 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 21 | t2-90      | 3.60 €           | Tesla V100S    | 32GB         |          30 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 22 | t2-le-180  | 3.20 €           | Tesla V100S    | 32GB         |          60 | 180GB  |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 23 | t2-le-45   | 0.80 €           | Tesla V100S    | 32GB         |          15 | 45GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+
    | 24 | t2-le-90   | 1.60 €           | Tesla V100S    | 32GB         |          30 | 90GB   |
    +----+------------+------------------+----------------+--------------+-------------+--------+


    Select GPU instance number:  10

    2026-02-11 15:08:58.791 | INFO     | __main__:select_gpu_instance_type:33 - Selected GPU: rtx5000-28, with consumption consumption mode
    2026-02-11 15:08:58.863 | INFO     | __main__:retrieve_gpu_flavor:15 - Selected GPU flavor id: c5708c95-f450-43c3-8b56-7d498e7b5d07
    2026-02-11 15:08:59.446 | INFO     | __main__:select_instance_image:19 - 
    Available Ubuntu images:

    1. Baremetal - Ubuntu 22.04
    2. Ubuntu 25.04
    3. Ubuntu 24.04
    4. Ubuntu 22.04
    5. Ubuntu 25.04 - UEFI
    6. Ubuntu 24.04 - UEFI
    7. Ubuntu 22.04 - UEFI

    Select image number:  3

    2026-02-11 15:09:03.297 | INFO     | __main__:select_instance_image:28 - Selected instance image: 8d595649-b9b2-4aeb-a544-a3709abf437f:Ubuntu 24.04
    2026-02-11 15:09:03.409 | INFO     | __main__:select_ssh_key:16 - 
    Available SSH keys:

    1. Mac-V
    2. Sys76

    Select SSH key number:  1

    2026-02-11 15:09:05.633 | INFO     | __main__:select_ssh_key:24 - Selected SSH key: 5457466a4c56593d:Mac-V


    Enter instance name:  test-auto-6

    2026-02-11 15:09:10.821 | INFO     | __main__:create_instance:39 - 
    Creating instance 'test-auto-6'...

    (<ovhmanager.instance.GPUInstance>,
     {'id': '7ed09818-0b89-4b87-b898-c4a0aa48a1ce',
      'name': 'test-auto-6',
      'ipAddresses': [],
      'status': 'BUILD',
      'created': '2026-02-11T14:09:15Z',
      'region': 'GRA9',
      'flavor': {'id': 'c5708c95-f450-43c3-8b56-7d498e7b5d07',
       'name': 'rtx5000-28',
       'region': 'GRA9',
       'ram': 28,
       'disk': 400,
       'vcpus': 4,
       'type': 'ovh.raid-nvme.t1',
       'osType': 'linux',
       'inboundBandwidth': 2000,
       'outboundBandwidth': 2000,
       'available': True,
       'planCodes': {'monthly': None,
        'hourly': 'rtx5000-28.consumption',
        'license': None},
       'capabilities': [{'name': 'resize', 'enabled': True},
        {'name': 'snapshot', 'enabled': True},
        {'name': 'volume', 'enabled': True},
        {'name': 'failoverip', 'enabled': True}],
       'quota': 7},
      'image': {'id': '8d595649-b9b2-4aeb-a544-a3709abf437f',
       'name': 'Ubuntu 24.04',
       'region': 'GRA9',
       'visibility': 'public',
       'type': 'linux',
       'minDisk': 0,
       'minRam': 0,
       'size': 4,
       'creationDate': '2025-11-05T10:08:13Z',
       'status': 'active',
       'user': 'ubuntu',
       'flavorType': None,
       'tags': [],
       'planCode': None},
      'sshKey': {'id': '5457466a4c56593d',
       'name': 'Mac-V',
       'regions': ['GRA9'],
       'fingerPrint': 'db:d2:44:36:a8:5a:61:e4:fd:3f:8c:d1:f3:7b:db:89',
       'publicKey': 'ssh-ed25519 SSH_KEY_VALUE YOUR_EMAIL_ADDRESS'},
      'monthlyBilling': None,
      'planCode': 'rtx5000-28.consumption',
      'licensePlanCode': None,
      'operationIds': [],
      'currentMonthOutgoingTraffic': None,
      'rescuePassword': None,
      'availabilityZone': None})

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L351"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.list_instances

``` python

def list_instances(
    
)->list:

```

*Lists and displays available OVH GPU instances for specific project*

``` python
client.list_instances()
```

    2026-02-11 15:27:44.939 | INFO     | __main__:list_instances:9 - 
    Available GPU instances:

    region: GRA9
    name: test-auto-6
    id: 7ed09818-0b89-4b87-b898-c4a0aa48a1ce
    status: ACTIVE
    gpu_type: rtx5000-28
    flavor_id: c5708c95-f450-43c3-8b56-7d498e7b5d07
    image_id: 8d595649-b9b2-4aeb-a544-a3709abf437f
    consumption_mode: consumption
    planCode: rtx5000-28.consumption
    created: 2026-02-11T14:09:15Z
    ------

    [<ovhmanager.instance.GPUInstance>]

``` python
if len(client.gpu_instances)>0:
    print(client.gpu_instances[0].name, client.gpu_instances[0].id)
```

    test-auto-6 7ed09818-0b89-4b87-b898-c4a0aa48a1ce

------------------------------------------------------------------------

<a
href="https://github.com/hassoun/ovhmanager/blob/main/ovhmanager/core.py#L382"
target="_blank" style="float:right; font-size:smaller">source</a>

### OVHGPUManager.get_instance

``` python

def get_instance(
    instance_id:str, # OVH GPU instance id
)->tuple:

```

*Retrieves an OVH GPU instance information for a specific instance ID*

``` python
client.get_instance('7ed09818-0b89-4b87-b898-c4a0aa48a1ce')
```

    region: GRA9
    name: test-auto-6
    id: 7ed09818-0b89-4b87-b898-c4a0aa48a1ce
    status: ACTIVE
    gpu_type: rtx5000-28
    flavor_id: c5708c95-f450-43c3-8b56-7d498e7b5d07
    image_id: 8d595649-b9b2-4aeb-a544-a3709abf437f
    consumption_mode: consumption
    planCode: rtx5000-28.consumption
    created: 2026-02-11T14:09:15Z

    (<ovhmanager.instance.GPUInstance>,
     {'id': '7ed09818-0b89-4b87-b898-c4a0aa48a1ce',
      'name': 'test-auto-6',
      'ipAddresses': [{'ip': '51.178.114.20',
        'type': 'public',
        'version': 4,
        'networkId': 'bc63b98d13fbba642b2653711cc9d156ca7b404d2df009f7227172d37b5280a6',
        'gatewayIp': '51.178.114.1'},
       {'ip': '2001:41d0:304:400::3b86',
        'type': 'public',
        'version': 6,
        'networkId': 'bc63b98d13fbba642b2653711cc9d156ca7b404d2df009f7227172d37b5280a6',
        'gatewayIp': '2001:41d0:304:400::1'}],
      'status': 'ACTIVE',
      'created': '2026-02-11T14:09:15Z',
      'region': 'GRA9',
      'flavor': {'id': 'c5708c95-f450-43c3-8b56-7d498e7b5d07',
       'name': 'rtx5000-28',
       'region': 'GRA9',
       'ram': 28,
       'disk': 400,
       'vcpus': 4,
       'type': 'ovh.raid-nvme.t1',
       'osType': 'linux',
       'inboundBandwidth': 2000,
       'outboundBandwidth': 2000,
       'available': True,
       'planCodes': {'monthly': None,
        'hourly': 'rtx5000-28.consumption',
        'license': None},
       'capabilities': [{'name': 'resize', 'enabled': True},
        {'name': 'snapshot', 'enabled': True},
        {'name': 'volume', 'enabled': True},
        {'name': 'failoverip', 'enabled': True}],
       'quota': 7},
      'image': {'id': '8d595649-b9b2-4aeb-a544-a3709abf437f',
       'name': 'Ubuntu 24.04',
       'region': 'GRA9',
       'visibility': 'public',
       'type': 'linux',
       'minDisk': 0,
       'minRam': 0,
       'size': 4,
       'creationDate': '2025-11-05T10:08:13Z',
       'status': 'active',
       'user': 'ubuntu',
       'flavorType': None,
       'tags': [],
       'planCode': None},
      'sshKey': {'id': '5457466a4c56593d',
       'name': 'Mac-V',
       'regions': ['GRA9'],
       'fingerPrint': 'db:d2:44:36:a8:5a:61:e4:fd:3f:8c:d1:f3:7b:db:89',
       'publicKey': 'ssh-ed25519 SSH_KEY_VALUE YOUR_EMAIL_ADDRESS'},
      'monthlyBilling': None,
      'planCode': 'rtx5000-28.consumption',
      'licensePlanCode': None,
      'operationIds': [],
      'currentMonthOutgoingTraffic': None,
      'rescuePassword': None,
      'availabilityZone': None})
