OVHcloud Authorization API
These routes allow to validate authorizations granted on resources.
These routes allow to validate authorizations granted on resources.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ovh:ovh-authorization-api"
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.
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: 3.2.0
info:
title: Ovh Authorization API
version: '1.0'
contact:
name: OVH
email: api@ml.ovh.net
description: 'Operations tagged Authorization across 2 of this provider''s published API definitions: ovh-v2-iam-openapi.json, ovh-v2-iam-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://eu.api.ovh.com/v2
tags:
- name: Authorization
x-tag-expanded: false
description: These routes allow to validate authorizations granted on resources.
paths:
/iam/authorization/check:
post:
operationId: checkIamAuthorizations
summary: Check authorizations on resources
description: 'Checks the listed actions against each `resourceURN`.
Returns, per resource, which actions are authorized and which are not.'
security:
- oAuth2AuthCode: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/iam.AuthorizeBatchRequest'
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/iam.AuthorizeBatchResponse'
tags:
- Authorization
x-developer-hub-navigation:
- - Manage & Operate
- Identity & Access Management@@@10
x-badges:
- color: green
label: Stable production 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: iam.AuthorizeBatchRequest\nresult = client.post(\"/v2/iam/authorization/check\",\n\tactions = None, # List of actions to check authorizations for (type: array)\n\tresourceURNs = None, # Resources on which accesses should be checked (type: array)\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: iam.AuthorizeBatchRequest\n$result = $ovh->post(\"/v2/iam/authorization/check\", array(\n\tactions => null, // List of actions to check authorizations for (type: array)\n\tresourceURNs => null, // Resources on which accesses should be checked (type: array)\n));\n\nprint_r($result);\n?>"
servers:
- url: https://eu.api.ovh.com/v2
/iam/resource/{resourceURN}/authorization/check:
post:
operationId: checkIamResourceAuthorizations
summary: Check authorizations on a resource
description: 'Checks the listed actions on this resource.
Returns the actions that are authorized and those that are not.'
security:
- oAuth2AuthCode: []
parameters:
- in: path
name: resourceURN
description: ResourceURN
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/iam.AuthorizeRequest'
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/iam.AuthorizeResponse'
tags:
- Authorization
x-developer-hub-navigation:
- - Manage & Operate
- Identity & Access Management
- Policies
- Resources@@@30
x-badges:
- color: green
label: Stable production 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: iam.AuthorizeRequest\nresult = client.post(\"/v2/iam/resource/{resourceURN}/authorization/check\",\n\tactions = None, # List of actions to check authorizations for (type: array)\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: iam.AuthorizeRequest\n$result = $ovh->post(\"/v2/iam/resource/{resourceURN}/authorization/check\", array(\n\tactions => null, // List of actions to check authorizations for (type: array)\n));\n\nprint_r($result);\n?>"
servers:
- url: https://eu.api.ovh.com/v2
components:
schemas:
iam.AuthorizeResponse:
type: object
description: Result of an authorization request
properties:
authorizedActions:
type: array
description: Actions from your request that the caller is allowed to perform on the resource
items:
type: string
readOnly: true
unauthorizedActions:
type: array
description: Actions from your request that the caller is not allowed to perform on the resource
items:
type: string
readOnly: true
iam.AuthorizeRequest:
type: object
description: Authorization request
properties:
actions:
type: array
description: List of actions to check authorizations for
items:
type: string
required:
- actions
iam.AuthorizeBatchResponse:
type: object
description: Result of an authorization request
properties:
authorizedActions:
type: array
description: Actions from your request that the caller is allowed to perform on the resource
items:
type: string
readOnly: true
resourceURN:
type: string
description: URN of the resource
readOnly: true
unauthorizedActions:
type: array
description: Actions from your request that the caller is not allowed to perform on the resource
items:
type: string
readOnly: true
iam.AuthorizeBatchRequest:
type: object
description: Authorization request
properties:
actions:
type: array
description: List of actions to check authorizations for
items:
type: string
resourceURNs:
type: array
description: Resources on which accesses should be checked
items:
type: string
required:
- actions
- resourceURNs
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-v2-iam-openapi.json
- ovh-v2-iam-openapi.yml