-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpersonal_tokens.yaml
232 lines (223 loc) · 5.67 KB
/
personal_tokens.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
openapi: 3.0.3
info:
title: Personal Tokens - OpenAPI
description: |
The Personal Tokens API allows you to manage your existing personal tokens.
license:
name: MIT
url: https://github.com/aziontech/azionapi-openapi/blob/main/LICENSE.md
version: 1.0.0
externalDocs:
description: See the documentation of Personal Tokens for more information.
url: https://www.azion.com/en/documentation/products/accounts/personal-tokens/
servers:
- description: Production
url: https://api.azionapi.net
security:
- tokenAuth: []
tags:
- name: Personal Token
description: List all personal tokens
paths:
/iam/personal_tokens:
get:
tags:
- Personal Token
summary: List all existing personal token
description: List all existing personal token
operationId: ListPersonalToken
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/PersonalTokenResponseWithResults'
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'429':
description: Rate Limit
'500':
description: Internal Server Error
post:
tags:
- Personal Token
summary: Create a new personal token
description: Create a new personal token
operationId: CreatePersonalToken
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePersonalTokenRequest'
responses:
'201':
description: Created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePersonalTokenResponse'
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'429':
description: Rate Limit
'500':
description: Internal Server Error
/iam/personal_tokens/{personalTokenId}:
get:
tags:
- Personal Token
summary: Get a personal token info
description: Get a personal token info
operationId: GetPersonalToken
parameters:
- in: path
name: personalTokenId
required: true
schema:
format: uuid
type: string
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/PersonalTokenResponseGet'
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'429':
description: Rate Limit
'500':
description: Internal Server Error
delete:
tags:
- Personal Token
summary: Delete a personal token by id
description: Delete a personal token
operationId: DeletePersonalToken
parameters:
- in: path
name: personalTokenId
required: true
schema:
format: uuid
type: string
responses:
'204':
description: Successful operation
'400':
description: Bad Request
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
'429':
description: Rate Limit
'500':
description: Internal Server Error
components:
schemas:
PersonalTokenResponseWithResults:
type: object
properties:
count:
type: integer
format: int64
total_pages:
type: integer
format: int6
schema_version:
type: integer
format: int64
links:
type: object
properties:
next:
type: string
nullable: true
previous:
type: string
nullable: true
results:
type: array
items:
$ref: '#/components/schemas/PersonalTokenResponseGet'
PersonalTokenResponseGet:
type: object
properties:
uuid:
type: string
format: uuid
name:
type: string
created:
type: string
format: date-time
expires_at:
type: string
format: date-time
description:
type: string
nullable: true
CreatePersonalTokenRequest:
type: object
properties:
name:
type: string
expires_at:
type: string
format: date-time
description:
type: string
nullable: true
CreatePersonalTokenResponse:
type: object
properties:
uuid:
type: string
format: uuid
name:
type: string
key:
type: string
user_id:
type: number
created:
type: string
format: date-time
expires_at:
type: string
format: date-time
description:
type: string
nullable: true
securitySchemes:
tokenAuth:
type: apiKey
name: Authorization
in: header
description: |
You must inform a token to auth.
Usage format: `Token <TOKEN>`