-
Notifications
You must be signed in to change notification settings - Fork 8
/
09-api-clients-admin.yaml
377 lines (377 loc) · 12.9 KB
/
09-api-clients-admin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
openapi: 3.0.0
info:
title: API clients administration
version: '3'
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://{hostname}/identity-management/v3
tags:
- description: Use helper calls to get information necessary to create an API client.
name: Helper
- description: Manage your own API clients.
name: 'API client: self'
- description: Manage API clients for the account.
name: API clients
x-akamai:
auth-type: EDGE_GRID
file-path: 09-api-clients-admin.yaml
paths:
/api-clients:
post:
operationId: post-api-clients
summary: Create an API client
tags:
- API clients
description: |
This operation creates a new API client. Optionally, you can automatically assign a credential for the client when you create it. If you choose not to assign the credential automatically, see [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) for details.
requestBody:
content:
application/json:
example:
$ref: examples/post-request-api-client.json
schema:
$ref: schemas/api-client-post-request-v3.yaml
responses:
201:
description: |
The response provides the newly created API client.
headers:
Location:
$ref: headers/location.yaml
content:
application/json:
example:
$ref: examples/post-response-api-client.json
schema:
$ref: schemas/api-client-detail-v3.yaml
get:
operationId: get-api-clients
summary: List API clients
tags:
- API clients
description: |
This operation lists API clients an administrator can manage on the current account or other managed accounts using the `accountSwitchKey` parameter.
parameters:
- $ref: parameters/actions-query.yaml
responses:
200:
description: |
The response provides a list of API clients an administrator can manage.
content:
application/json:
example:
$ref: examples/get-list-api-clients.json
schema:
$ref: schemas/api-clients-v3.yaml
/api-clients/self:
get:
operationId: get-api-client-self
summary: Get your API client
tags:
- 'API client: self'
description: |
This operation provides details about your API client.
parameters:
- $ref: parameters/actions-query.yaml
- $ref: parameters/group-access-query.yaml
- $ref: parameters/apis-access-query.yaml
- $ref: parameters/credentials-query.yaml
- $ref: parameters/ip-acl-query.yaml
responses:
200:
description: |
The response provides the API client.
content:
application/json:
example:
$ref: examples/api-client-detail-v3.json
schema:
$ref: schemas/api-client-detail-v3.yaml
put:
operationId: put-api-clients-self
summary: Update your API client
tags:
- 'API client: self'
description: |
This operation updates your API client.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/put-request-api-client.json
schema:
$ref: schemas/api-client-update-request-v3.yaml
responses:
200:
description: |
The response reflects the modified API client.
content:
application/json:
example:
$ref: examples/put-response-api-client.json
schema:
$ref: schemas/api-client-detail-v3.yaml
delete:
operationId: delete-api-client-self
summary: Delete your API client
tags:
- 'API client: self'
description: |
This operation permanently deletes an API client you own, without active credentials. It also breaks any API connections with the client. Before deleting your API client, deactivate all credentials and make sure there aren't any API integrations or scripts using them.
responses:
204:
description: |
API client successfully deleted.
/api-clients/self/account-switch-keys:
get:
operationId: get-self-account-switch-keys
summary: List your account switch keys
tags:
- 'API client: self'
description: |
This operation lists account switch keys available for your API client. You can use the `accountSwitchKey` in many Akamai APIs [to make an API call to another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client).
parameters:
- $ref: parameters/account-switch-keys-query.yaml
responses:
200:
description: |
The response provides your account switch keys and account names.
content:
application/json:
example:
$ref: examples/account-switch-keys-200.json
schema:
$ref: schemas/self-account-switch-keys.yaml
/api-clients/self/lock:
put:
operationId: put-lock-api-client-self
summary: Lock your API client
tags:
- 'API client: self'
description: |
This operation locks your API client. You can't use the API client while it's locked. To unlock your client, run the [Unlock an API client](ref:put-unlock-api-client) operation.
responses:
200:
description: |
The response provides the locked API client.
content:
application/json:
example:
$ref: examples/api-client-simple.json
schema:
$ref: schemas/api-client-simple-v3.yaml
/api-clients/{clientId}:
parameters:
- $ref: parameters/client-id-path.yaml
get:
operationId: get-api-client
summary: Get an API client
tags:
- API clients
description: |
This operation provides details about an API client.
parameters:
- $ref: parameters/actions-query.yaml
- $ref: parameters/group-access-query.yaml
- $ref: parameters/apis-access-query.yaml
- $ref: parameters/credentials-query.yaml
- $ref: parameters/ip-acl-query.yaml
responses:
200:
description: |
The response provides the API client.
content:
application/json:
example:
$ref: examples/api-client-detail-v3.json
schema:
$ref: schemas/api-client-detail-v3.yaml
put:
operationId: put-api-clients
summary: Update an API client
tags:
- API clients
description: |
This operation updates an API client.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/put-request-api-client.json
schema:
$ref: schemas/api-client-update-request-v3.yaml
responses:
200:
description: |
The response reflects the modified API client.
content:
application/json:
example:
$ref: examples/put-response-api-client.json
schema:
$ref: schemas/api-client-detail-v3.yaml
delete:
operationId: delete-api-client
summary: Delete an API client
tags:
- API clients
description: |
This operation permanently deletes the API client, breaking any API connections with the client. To delete a client, you need to own the client, or have admin access on a given group. Before deleting an API client, make sure there aren't any API integrations or scripts using it.
responses:
204:
description: |
API client successfully deleted.
/api-clients/{clientId}/account-switch-keys:
parameters:
- $ref: parameters/client-id-path.yaml
get:
operationId: get-client-account-switch-keys
summary: List account switch keys
tags:
- API clients
description: |
This operation lists account switch keys available for a specific API client. The client can use the `accountSwitchKey` in many Akamai APIs to [make an API call to another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client).
parameters:
- $ref: parameters/account-switch-keys-query.yaml
responses:
200:
description: |
The response provides account switch keys and account names available to you.
content:
application/json:
example:
$ref: examples/account-switch-keys-200.json
schema:
$ref: schemas/client-account-switch-keys.yaml
/api-clients/{clientId}/lock:
parameters:
- $ref: parameters/client-id-path.yaml
put:
operationId: put-lock-api-client
summary: Lock an API client
tags:
- API clients
description: |
This operation locks an API client. You can't use the API client while it's locked. To unlock a client, run the [Unlock an API client](ref:put-unlock-api-client) operation.
responses:
200:
description: |
The response provides the locked API client.
content:
application/json:
example:
$ref: examples/api-client-simple.json
schema:
$ref: schemas/api-client-simple-v3.yaml
/api-clients/{clientId}/unlock:
parameters:
- $ref: parameters/client-id-path.yaml
put:
operationId: put-unlock-api-client
summary: Unlock an API client
tags:
- API clients
description: |
This operation unlocks an API client.
responses:
200:
description: |
The response provides the unlocked API client.
content:
application/json:
example:
$ref: examples/api-client-simple.json
schema:
$ref: schemas/api-client-simple-v3.yaml
/users:
get:
operationId: get-api-clients-users
summary: List authorized users
tags:
- Helper
description: |
This operation lists authorized API client users.
responses:
200:
description: |
The response provides the authorized users.
content:
application/json:
example:
$ref: examples/get-response-authorized-users.json
schema:
$ref: schemas/authorized-users.yaml
/users/{username}/allowed-apis:
parameters:
- $ref: parameters/username-path.yaml
get:
operationId: get-api-clients-users-allowed-apis
summary: List allowed APIs
tags:
- Helper
description: |
This operation lists available APIs for a user.
parameters:
- $ref: parameters/client-type-query.yaml
- $ref: parameters/allow-account-switch-query.yaml
responses:
200:
description: |
The response provides APIs available to the user.
content:
application/json:
example:
$ref: examples/get-response-api-clients-allowed-apis.json
schema:
$ref: schemas/allowed-apis-response.yaml
/users/{username}/allowed-cpcodes:
parameters:
- $ref: parameters/username-path.yaml
post:
operationId: post-api-clients-users-allowed-cpcodes
summary: List allowed CP codes
tags:
- Helper
description: |
This operation lists available CP codes for a user.
requestBody:
content:
application/json:
example:
$ref: examples/post-request-api-clients-allowed-cpcodes.json
schema:
$ref: schemas/allowed-cpcodes-request.yaml
responses:
200:
description: |
The response provides CP codes available to the user.
content:
application/json:
example:
$ref: examples/post-response-api-clients-allowed-cpcodes.json
schema:
$ref: schemas/allowed-cpcodes-response.yaml
/users/{username}/group-access:
parameters:
- $ref: parameters/username-path.yaml
get:
operationId: get-api-clients-users-group-access
summary: List accessible groups
tags:
- Helper
description: |
This operation lists groups available to a user.
responses:
200:
description: |
The response provides groups available to the user.
content:
application/json:
example:
$ref: examples/get-response-api-clients-group-access.json
schema:
$ref: schemas/group-access-response.yaml