source

OVHProject


def OVHProject(
    id:str, # OVH project id
    region:str=None, # Project ressources region
    consumption_mode:str=None
):

OVH Project class, storing project information

Let’s initiate a OVHProject

project = OVHProject('PROJECT_ID')

it has a base url

project.base_url
'/cloud/project/PROJECT_ID'

We can also set it’s region to manage resources in a specific region

project.set_region('RBX')
project.region
'RBX'