OVHcloud Service API

The Service API from OVHcloud — 6 operation(s) for service.

GitHub OpenAPI

Operations 8

GET /service Services #
GET /service/{serviceId} Get this object properties #
PUT /service/{serviceId} Alter this object properties #
GET /service/{serviceId}/renew List possible renews for this service #
POST /service/{serviceId}/renew Create a renew order #
POST /service/{serviceId}/reopen Reopen a suspended service #
POST /service/{serviceId}/suspend Suspend the service. #
POST /service/{serviceId}/terminate Terminates a suspended service #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ovh:ovh-service-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ovh-service-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ovh Service API
  version: '1.0'
  contact:
    name: OVH
    email: api@ml.ovh.net
  description: 'Operations tagged Service across 2 of this provider''s published API definitions: ovh-v1-service-openapi.json, ovh-v1-service-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://eu.api.ovh.com/v1
tags:
- name: Service
paths:
  /service:
    get:
      summary: Services
      security:
      - oAuth2AuthCode: []
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  type: integer
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/service\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/service\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/get
        required: true
      x-expanded-response: ServiceListService
      tags:
      - Service
      operationId: getService
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
  /service/{serviceId}:
    get:
      summary: Get this object properties
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: The internal ID of your service
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/serviceList.Service'
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/service/{serviceId}\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/service/{serviceId}\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/get
        required: true
      tags:
      - Service
      operationId: getServiceByServiceId
      x-operation-id-source: derived
    put:
      summary: Alter this object properties
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: The internal ID of your service
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/serviceList.Service'
      responses:
        '200':
          description: successful operation
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: serviceList.Service\nresult = client.put(\"/service/{serviceId}\",\n\tresource = None, # Resource service description (type: service.Resource)\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: serviceList.Service\n$result = $ovh->put(\"/service/{serviceId}\", array(\n\tresource => null, // Resource service description (type: service.Resource)\n));\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/edit
        required: true
      tags:
      - Service
      operationId: putServiceByServiceId
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
  /service/{serviceId}/renew:
    get:
      summary: List possible renews for this service
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: query
        name: includeOptions
        description: Include service's option(s)
        schema:
          type: boolean
      - in: path
        name: serviceId
        description: Service Id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/service.renew.RenewDescription'
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.get(\"/service/{serviceId}/renew\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->get(\"/service/{serviceId}/renew\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/renew/get
        required: true
      tags:
      - Service
      operationId: getServiceByServiceIdRenew
      x-operation-id-source: derived
    post:
      summary: Create a renew order
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: Service Id
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                dryRun:
                  type: boolean
                  description: Indicates if renew order is generated
                duration:
                  type: string
                  description: Renew duration
                  format: duration
                services:
                  type: array
                  description: List of services to renew
                  items:
                    type: integer
              required:
              - duration
              - services
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/service.renew.RenewOrder'
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\n# Request body type: coreTypes.ServiceId[]:long[]\nresult = client.post(\"/service/{serviceId}/renew\",\n\tdryRun = None, # Indicates if renew order is generated (type: boolean, nullable)\n\tduration = None, # Renew duration (type: duration)\n\tservices = None, # List of services to renew (type: coreTypes.ServiceId[]:long[])\n)\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n// Request body type: coreTypes.ServiceId[]:long[]\n$result = $ovh->post(\"/service/{serviceId}/renew\", array(\n\tdryRun => null, // Indicates if renew order is generated (type: boolean, nullable)\n\tduration => null, // Renew duration (type: duration)\n\tservices => null, // List of services to renew (type: coreTypes.ServiceId[]:long[])\n));\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/renew/create
        required: true
      tags:
      - Service
      operationId: postServiceByServiceIdRenew
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
  /service/{serviceId}/reopen:
    post:
      summary: Reopen a suspended service
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: The internal ID of your service
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: successful operation
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/service/{serviceId}/reopen\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/service/{serviceId}/reopen\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/reopen
        required: true
      tags:
      - Service
      operationId: postServiceByServiceIdReopen
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
  /service/{serviceId}/suspend:
    post:
      summary: Suspend the service.
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: The internal ID of your service
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: successful operation
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/service/{serviceId}/suspend\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/service/{serviceId}/suspend\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/suspend
        required: true
      tags:
      - Service
      operationId: postServiceByServiceIdSuspend
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
  /service/{serviceId}/terminate:
    post:
      summary: Terminates a suspended service
      security:
      - oAuth2AuthCode: []
      parameters:
      - in: path
        name: serviceId
        description: The internal ID of your service
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: successful operation
      x-developer-hub-navigation:
      - - Offers & Services
        - Services
      x-badges:
      - color: blue
        label: Beta version
      x-code-samples:
      - lang: python
        label: Python
        source: "'''\nFirst, install the latest release of Python wrapper: $ pip install ovh\n'''\nimport json\nimport ovh\n\n# Instantiate an OVH Client.\n# You can generate new credentials with full access to your account on\n# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\nclient = ovh.Client(\n\tendpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n\tapplication_key='xxxxxxxxxx',    # Application Key\n\tapplication_secret='xxxxxxxxxx', # Application Secret\n\tconsumer_key='xxxxxxxxxx',       # Consumer Key\n)\n\nresult = client.post(\"/service/{serviceId}/terminate\")\n\n# Pretty print\nprint(json.dumps(result, indent=4))"
      - lang: php
        label: PHP
        source: "<?php\n/**\n * First, download the latest release of PHP wrapper on github\n * And include this script into the folder with extracted files\n */\nrequire __DIR__ . '/vendor/autoload.php';\nuse \\Ovh\\Api;\n\n/**\n * Instantiate an OVH Client.\n * You can generate new credentials with full access to your account on\n * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)\n */\n$ovh = new Api('xxxxxxxxxx',  // Application Key\n               'xxxxxxxxxx',  // Application Secret\n               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)\n               'xxxxxxxxxx'); // Consumer Key\n\n$result = $ovh->post(\"/service/{serviceId}/terminate\");\n\nprint_r($result);\n?>"
      x-iam-actions:
      - name: account:apiovh:service/terminate
        required: true
      tags:
      - Service
      operationId: postServiceByServiceIdTerminate
      x-operation-id-source: derived
    servers:
    - url: https://eu.api.ovh.com/v1
components:
  schemas:
    service.renew.RenewStrategy:
      type: object
      description: Representation of a product renew pricing
      properties:
        price:
          allOf:
          - $ref: '#/components/schemas/order.Price'
          description: Price of the product
          readOnly: true
        priceInUcents:
          type: integer
          description: Price of the product in micro-centims
          readOnly: true
        services:
          type: array
          description: Services renewed by strategy
          items:
            type: integer
          readOnly: true
        servicesDetails:
          type: array
          description: Details of services renewed by strategy
          items:
            $ref: '#/components/schemas/service.renew.Service'
          readOnly: true
    service.Plan:
      type: object
      description: Plan information
      properties:
        code:
          type:
          - string
          - 'null'
          description: Product code
        product:
          allOf:
          - $ref: '#/components/schemas/service.plan.Product'
          description: Product plan information
    service.renew.Service:
      type: object
      description: Description of a service
      properties:
        serviceId:
          type: integer
          description: ID of the service
          readOnly: true
        serviceName:
          type: string
          description: Name of the service
          readOnly: true
        serviceType:
          type: string
          description: Type of the service
          readOnly: true
    complexType.SafeKeyValue_string:
      type: object
      description: Key and value, with proper key strings
      properties:
        key:
          type: string
        value:
          type: string
    service.ResourceStateEnum:
      type: string
      description: Possible resource states
      enum:
      - deleted
      - deleting
      - ok
      - opening
      - suspended
      - suspending
      - toDelete
      - toOpen
      - toSuspend
    service.BillingStateEnum:
      type: string
      description: Possible billing states
      enum:
      - expired
      - ok
      - pending
      - unpaid
    service.renew.RenewDescription:
      type: object
      description: List possible renews for service
      properties:
        renewPeriod:
          type: duration
          description: ISO8601 formatted renewal duration
          format: duration
          readOnly: true
        strategies:
          type: array
          description: List possible strategies
          items:
            $ref: '#/components/schemas/service.renew.RenewStrategy'
          readOnly: true
    service.renew.Mode:
      type: string
      description: Mode enum informations
      enum:
      - automaticForcedProduct
      - automaticV2012
      - automaticV2014
      - automaticV2016
      - automaticV2024
      - deleteAtEndEngagement
      - deleteAtExpiration
      - manual
      - oneShot
      - option
    serviceList.Service:
      type: object
      description: Details about a Service
      properties:
        creationDate:
          type: string
          description: Creation date
          format: date
          readOnly: true
        details:
          type: array
          description: Resource details
          items:
            $ref: '#/components/schemas/complexType.SafeKeyValue_string'
          readOnly: true
        engagementDate:
          type:
          - string
          - 'null'
          description: Engagement date
          format: date
          readOnly: true
        expirationDate:
          type:
          - string
          - 'null'
          description: Expiration date
          format: date
          readOnly: true
        nextBillingDate:
          type:
          - string
          - 'null'
          description: The next billing date
          format: date
          readOnly: true
        plan:
          allOf:
          - $ref: '#/components/schemas/service.Plan'
          description: Plan service description
          readOnly: true
        quantity:
          type: integer
          description: Quantity
          readOnly: true
        renew:
          allOf:
          - $ref: '#/components/schemas/service.Renew'
          description: Renew service description
          readOnly: true
        resource:
          allOf:
          - $ref: '#/components/schemas/service.Resource'
          description: Resource service description
        route:
          allOf:
          - $ref: '#/components/schemas/service.Route'
          description: Route to use in API
          readOnly: true
        state:
          allOf:
          - $ref: '#/components/schemas/service.BillingStateEnum'
          description: Billing state of your service
          readOnly: true
    service.Renew:
      type: object
      description: Renew information
      properties:
        dayOfMonth:
          type:
          - integer
          - 'null'
          description: Renew day number
        interval:
          allOf:
          - $ref: '#/components/schemas/service.renew.Interval'
          description: Interval between each renewal
        mode:
          allOf:
          - $ref: '#/components/schemas/service.renew.Mode'
          description: Renewal mode
        possibleIntervals:
          type:
          - array
          - 'null'
          description: Possible interval between each renewal
          items:
            $ref: '#/components/schemas/service.renew.Interval'
        possibleModes:
          type: array
          description: Possible renewal mode
          items:
            $ref: '#/components/schemas/service.renew.Mode'
    service.plan.Product:
      type: object
      description: Product plan information
      properties:
        name:
          type:
          - string
          - 'null'
          description: Product name
    service.Resource:
      type: object
      description: Resource service informations
      properties:
        displayName:
          type: string
          description: Custom display name of the service
        name:
          type:
          - string
          - 'null'
          description: Name of the service
        state:
          allOf:
          - $ref: '#/components/schemas/service.ResourceStateEnum'
          description: Resource state
    service.renew.RenewOrder:
      type: object
      description: Details about a renew Order
      properties:
        date:
          type:
          - string
          - 'null'
          description: Creation date of the renew Order
          format: date-time
          readOnly: true
        expirationDate:
          type:
          - string
          - 'null'
          description: Expiration date of the renew Order
          format: date-time
          readOnly: true
        orderId:
          type: integer
          description: ID of the renew Order
          readOnly: true
        password:
          type: string
          description: Password
          readOnly: true
        pdfUrl:
          type: string
          description: Public pdf URL of the generated renew Order
          readOnly: true
        priceWithTax:
          allOf:
          - $ref: '#/components/schemas/order.Price'
          description: Price of the product with tax
          readOnly: true
        priceWithoutTax:
          allOf:
          - $ref: '#/components/schemas/order.Price'
          description: Price of the product without tax
          readOnly: true
        retractionDate:
          type:
          - string
          - 'null'
          description: Retraction date
          format: date-time
          readOnly: true
        tax:
          allOf:
          - $ref: '#/components/schemas/order.Price'
          description: Value of the tax
          readOnly: true
        url:
          type: string
          description: Public URL to display generated renew Order
          readOnly: true
    order.Price:
      type: object
      description: Price with it's currency and textual representation
      properties:
        currencyCode:
          $ref: '#/components/schemas/order.CurrencyCodeEnum'
        text:
          type: string
        value:
          type: number
    service.renew.Interval:
      type: string
      description: Interval enum information
      enum:
      - P1M
      - P1Y
      - P2Y
      - P3M
      - P3Y
      - P6M
    order.CurrencyCodeEnum:
      type: string
      enum:
      - AUD
      - CAD
      - CZK
      - EUR
      - GBP
      - INR
      - LTL
      - MAD
      - N/A
      - PLN
      - SGD
      - TND
      - USD
      - XOF
      - points
    service.Route:
      type: object
      description: route of this service
      properties:
        path:
          type:
          - string
          - 'null'
          description: Path to use in API
        url:
          type:
          - string
          - 'null'
          description: Path with variables applyed
        vars:
          type: array
          description: Variables to use in the path
          items:
            $ref: '#/components/schemas/complexType.SafeKeyValue_string'
  securitySchemes:
    oAuth2AuthCode:
      type: oauth2
      description: Oauth2
      x-client-id: 1bb9c7df371741c0
      x-client-secret: a5b4de870aca620d10fbf63cd18d205b
      flows:
        authorizationCode:
          authorizationUrl: https://auth.eu.ovhcloud.com/oauth2/authorize
          tokenUrl: https://auth.eu.ovhcloud.com/oauth2/token
          scopes:
            account/all: Manage your account
            all: Manage your whole account and all your services
            services/all: Manage your services lifecycle and billing
x-refined-from:
- ovh-v1-service-openapi.json
- ovh-v1-service-openapi.yml