Skip to content

Commit 106e2e6

Browse files
authored
Merge pull request #109 from ovh/develop
Develop > Master alignment
2 parents 61635af + 8ccf83b commit 106e2e6

896 files changed

Lines changed: 15254 additions & 14603 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/de/guides/account-and-service-management/account-information/authenticate-api-with-service-account.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ Depending on the location of your API, you will need to use the following URL:
101101
Following this API call, you will receive a response in the following format:
102102

103103
```json
104-
{
104+
{
105105
"access_token":"your-api-token",
106106
"token_type":"Bearer",
107107
"expires_in":3599,
108108
"scope":"all"
109-
}
109+
}
110110
```
111111

112112
Save the token in the **access_token** field. You will need it to authenticate your API calls.
@@ -119,18 +119,18 @@ To get information on your web hosting plan, you can now make a call on:
119119
To do this, you will need to provide the token retrieved earlier in the header of your request, as follows:
120120

121121
```bash
122-
curl -i -X GET "https://{eu|ca}.api.ovh.com/v1/hosting/web/xxxxxxx.cluster001.hosting.ovh.net" \
122+
curl -i -X GET "https://{eu|ca}.api.ovh.com/v1/hosting/web/xxxxxxx.cluster001.hosting.ovh.net" \
123123
-H "Accept: application/json"\
124124
-H "Authorization: Bearer your-api-token"
125125
```
126126

127127
With this access policy, you only have access to the webhosting APIs. The other APIs will return the following HTTP 403 error:
128128

129129
```json
130-
{
130+
{
131131
"class":"Client::Forbidden",
132132
"message":"User not granted for this request"
133-
}
133+
}
134134
```
135135

136136
If you would like to use these other APIs, you will need to modify your access policy to grant it the corresponding rights.

0 commit comments

Comments
 (0)