Skip to content

Commit 3b7aa86

Browse files
committed
Proofreading
1 parent 5060b3a commit 3b7aa86

File tree

2 files changed

+37
-32
lines changed

2 files changed

+37
-32
lines changed
Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
---
22
title: 'Exploring the OVHcloud APIs'
3-
slug: ovh-api-exploration
3+
slug: api-console-exploration
44
excerpt: 'Discover how to explore the OVHcloud APIs'
5-
section: 'First steps'
5+
section: 'Getting started'
6+
order: 02
67
updated: 2023-03-27
78
---
89

910
**Last updated March 27th 2023**
1011

1112
## Objective
1213

13-
The APIs available on [https://eu.api.ovh.com/](https://eu.api.ovh.com/){.external} allow you to purchase, manage, update and configure OVHcloud products without using a graphical interface such as the Control Panel.
14+
The APIs available on [https://eu.api.ovh.com/](https://eu.api.ovh.com/){.external} allow you to purchase, manage, update and configure OVHcloud products without using a graphical interface such as the OVHcloud Control Panel.
1415

1516
**Discover how to explore the OVHcloud APIs on our brand new console**
1617

@@ -27,39 +28,38 @@ The APIs available on [https://eu.api.ovh.com/](https://eu.api.ovh.com/){.extern
2728
> This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a specialised provider and/or the software publisher for the service if you encounter any difficulties. We will not be able to assist you ourselves. You can find more information in the [“Go further”](#gofurther) section of this guide.
2829
>
2930
30-
### Simple Use
31-
32-
#### Sign in to OVHcloud APIs
31+
### Signing in to OVHcloud APIs
3332

3433
On the [OVHcloud API](https://eu.api.ovh.com/) page, click `Try the new OVHcloud API console`{.action} to view the list of APIs.
3534

3635
To use the APIs on your products, you must sign in to this site using your OVHcloud credentials.
3736

3837
- Click `Authentication`{.action} in the upper left.
39-
- The authentication process uses OAuth2 protocol with scopes. To authenticate yourself, you have to choose at least one scope from the list. A scope will limit the access of the generated token to a subset of the API operations. For this tutorial, simply select the scope `all` that allows all API operations, then click on `GET TOKEN`.
38+
- The authentication process uses OAuth2 protocol with scopes. To authenticate yourself, you have to choose at least one scope from the list. A scope will limit the access of the generated token to a subset of the API operations. For this tutorial, simply select the scope `all` that allows all API operations, then click on `GET TOKEN`{.action}.
4039
- You will be redirected to the OVHcloud authentication page on which you need to enter your OVHcloud credentials.
41-
- Once your credentials validated, you will be redirected on the API console and will be able to try calls.
40+
- Once your credentials are validated, you will be redirected on the API console and will be able to try calls.
4241

4342
![API](images/authentication.png){.thumbnail}
4443

4544
> [!primary]
4645
>
47-
> If your OVHcloud account is protected by [two-factor authentication](https://docs.ovh.com/us/en/customer/secure-account-with-2FA/), you will also need to enter the code generated by SMS or OTP mobile application or U2F key.
46+
> If your OVHcloud account is protected by [two-factor authentication](https://docs.ovh.com/gb/en/customer/secure-account-with-2FA/), you will also need to enter the code generated by SMS or OTP mobile application or U2F key.
4847
>
4948
50-
#### Explore the available products on OVHcloud APIs
49+
### Exploring the available products on OVHcloud APIs
5150

52-
##### API branch selection
51+
#### Selecting the API branch
5352

5453
Several branches of OVHcloud APIs are available:
54+
5555
- **V1**: the API available at [https://eu.api.ovh.com/v1](https://eu.api.ovh.com/v1)
5656
- **V2**: the new OVHcloud API, available at [https://eu.api.ovh.com/v2](https://eu.api.ovh.com/v2)
5757

5858
The API branch can be selected using the drop-down menu in the upper left.
5959

6060
![API](images/api-branches.png){.thumbnail}
6161

62-
##### API section selection
62+
#### Selecting the API section
6363

6464
Once you have chosen an API branch, you can browse the different sections of the selected branch. The sections are sorted in alphabetical order and by default the first section is displayed.
6565

@@ -69,82 +69,85 @@ You can choose a section in the drop-down menu just next to the branch-selection
6969

7070
Once you have selected an API section, the operations it contains are displayed in the left menu.
7171

72-
##### Exploring the operations
72+
#### Exploring the operations
7373

7474
The list of operations of the selected API section is displayed in the lower part of the left menu.
7575

7676
![API](images/api-operations.png){.thumbnail}
7777

7878
Each line contains the following pieces of information:
79+
7980
- HTTP verb of the operation (GET, PUT, POST, PATCH, DELETE)
8081
- Path of the operation
81-
- Operation's state: if the operation is in state *alpha* or *beta*, you will see a badge on the right of the operation's path.
82+
- Operation's state: if the operation is in state *alpha* or *beta*, you will see a badge to the right of the operation's path.
8283

8384
![API](images/operation-beta.png){.thumbnail}
8485

8586
If the operation is deprecated, the path will be greyed out in the list of operations. In the following example, the second operation is deprecated.
8687

8788
![API](images/operation-deprecated.png){.thumbnail}
8889

89-
Once you selected an operation, its detailed information will be displayed on the right side of the page.
90+
Once you select an operation, its detailed information will be displayed on the right side of the page.
9091

9192
This view is divided in four subsections described below.
9293

93-
###### General information
94+
##### **General information**
9495

9596
This subsection contains basic information about the operation:
97+
9698
- State of the operation (e.g. *Beta version*)
9799
- Description of the operation
98100
- Path of the operation and HTTP verb
99101

100102
![API](images/operation-information.png){.thumbnail}
101103

102-
###### Request
104+
##### **Request**
103105

104-
This subsection describes the input parameters of the operation. Depending of the operation's parameters, the following information will be displayed:
106+
This subsection describes the input parameters of the operation. Depending on the operation's parameters, the following information will be displayed:
105107

106-
**Path parameters**
108+
- **Path parameters**
107109

108110
![API](images/operation-path-parameter.png){.thumbnail}
109111

110112
The red star located on the left of the parameter's name indicates that this parameter is mandatory to be able to execute the request.
111113

112-
**Header parameters**
114+
- **Header parameters**
113115

114116
![API](images/operation-header-parameter.png){.thumbnail}
115117

116-
**Query parameters**
118+
- **Query parameters**
117119

118120
![API](images/operation-query-parameter.png){.thumbnail}
119121

120-
**Request body**
122+
- **Request body**
121123

122124
This subsection describes the request body. The default view shows an example body that can be used in a request.
123125
These values can be modified directly in place to try the call with values corresponding to your services.
124126

125127
![API](images/operation-request-body.png){.thumbnail}
126128

127-
There is also a tab *SCHEMA* that exposes the details of type, description, et allowed values for each parameter.
129+
There is also a tab *SCHEMA* that exposes the details of type, description, and allowed values for each parameter.
128130

129131
![API](images/operation-request-schema.png){.thumbnail}
130132

131-
###### Response
133+
##### **Response**
132134

133135
This section is similar to the previous one and describes the operation's response.
134136

135137
![API](images/operation-response.png){.thumbnail}
136138

137-
The *SCHEMA* tab is also available to get the details of the returned fields alongside their description.
139+
The *SCHEMA* tab is also available to get the details of the returned fields alongside with their description.
138140

139141
![API](images/operation-response-schema.png){.thumbnail}
140142

141-
##### Advanced search
143+
#### Advanced search
142144

143-
An advanced search is available by clicking on the `Search` button in the upper left.
145+
An advanced search is available by clicking on the `Search`{.action} button in the upper left.
144146

145147
![API](images/api-advance-search.png){.thumbnail}
146148

147-
When clicking on this button, a popup is opened allowing to search through operation with the following criterias:
149+
When clicking this button, a popup windows is opened allowing to search through operation with the following criteria:
150+
148151
- Path of the operation
149152
- Description of the API route
150153
- Parameters of the operation
@@ -154,24 +157,25 @@ When clicking on this button, a popup is opened allowing to search through opera
154157

155158
![API](images/api-advance-search-popup.png){.thumbnail}
156159

157-
#### Execute requests
160+
### Executing requests
158161

159-
From the console, it is possible to interact directly with the API using the `TRY` button.
162+
From the console, it is possible to interact directly with the API using the `TRY`{.action} button.
160163

161164
![API](images/operation-try-call.png){.thumbnail}
162165

163166
After having set all the required parameters (when necessary), this button allows you to make a real call to the OVHcloud API.
164167
When executing the request, the API response is displayed below the operation parameters.
165168

166169
Three tabs are then available:
170+
167171
- **RESPONSE**: response body of the API
168172
- **RESPONSE HEADERS**: headers returned by the API
169173
- **CURL**: show the equivalent of the request using the tool `curl`
170174

171175
## Go further <a name="gofurther"></a>
172176

173-
[Managing a Domain Name with the OVHcloud API](https://docs.ovh.com/us/en/domains/api/)
177+
[Managing a Domain Name with the OVHcloud API](https://docs.ovh.com/gb/en/domains/api/)
174178

175-
[How to manage a customer’s account via OVHcloud API](https://docs.ovh.com/us/en/api/api-rights-delegation/)
179+
[How to manage a customer’s account via OVHcloud API](https://docs.ovh.com/gb/en/api/api-rights-delegation/)
176180

177181
Join our community of users on <https://community.ovh.com/en/>.

pages/account/api/first-steps/guide.en-gb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: 'First Steps with the OVHcloud APIs'
33
slug: first-steps-with-ovh-api
44
excerpt: 'Learn how to use OVHcloud APIs'
55
section: 'Getting started'
6+
order: 01
67
updated: 2022-05-30
78
---
89

0 commit comments

Comments
 (0)