@@ -175,3 +175,104 @@ endpoints:
175
175
curl : |
176
176
curl -H "Authorization: Bearer $TOKEN" \
177
177
https://$api_root/$version/managed/services/$service_id
178
+ /managed/credentials :
179
+ group : Credentials
180
+ type : resource
181
+ description : >
182
+ Manage your managed service credentials list.
183
+ methods :
184
+ GET :
185
+ response : ManagedCredential
186
+ description : >
187
+ Returns your credentials list.
188
+ examples :
189
+ curl : |
190
+ curl https://$api_root/$version/managed/credentials
191
+ POST :
192
+ description : >
193
+ Registers a new credential.
194
+ params :
195
+ label :
196
+ type : String
197
+ limit : 2-75 characters
198
+ description : >
199
+ A unique label describing the credential being added.
200
+ username :
201
+ type : String
202
+ description : >
203
+ An optional login username.
204
+ password :
205
+ type : String
206
+ description : >
207
+ A password or passphrase that provides access.
208
+ examples :
209
+ curl : |
210
+ curl -H "Content-Type: application/json" \
211
+ -H "Authorization: Bearer $TOKEN" \
212
+ -X POST -d '{
213
+ "label": "MyCredential",
214
+ "username": "myusername",
215
+ "pasword": "mypassword",
216
+ }' \
217
+ https://$api_root/$version/managed/credentials
218
+ /managed/credentials/$id :
219
+ group : Credentials
220
+ type : resource
221
+ authenticated : true
222
+ description : >
223
+ Manage a particular Managed service credential your account may access.
224
+ methods :
225
+ GET :
226
+ response : ManagedCredential
227
+ description : >
228
+ Returns information about this credential.
229
+ examples :
230
+ curl : |
231
+ curl -H "Authorization: Bearer $TOKEN" \
232
+ https://$api_root/$version/managed/credential/$credential_id
233
+ PUT :
234
+ description : >
235
+ Edits this credential.
236
+ examples :
237
+ curl : |
238
+ curl -H "Content-Type: application/json" \
239
+ -H "Authorization: Bearer $TOKEN" \
240
+ -X PUT -d '{
241
+ "label": "MyNewCredential",
242
+ "username": "myusername2",
243
+ }' \
244
+ https://$api_root/$version/managed/credentials/$credential_id
245
+ /managed/credentials/$id/password :
246
+ group : Credentials
247
+ type : resource
248
+ authenticated : true
249
+ description : >
250
+ Change the password for a credential.
251
+ methods :
252
+ POST :
253
+ response : ManagedCredential
254
+ description : >
255
+ Changes the password for a credential.
256
+ examples :
257
+ curl : |
258
+ curl -H "Content-Type: application/json" \
259
+ -H "Authorization: Bearer $TOKEN" \
260
+ -X POST -d '{
261
+ "pasword": "mypassword",
262
+ }' \
263
+ https://$api_root/$version/managed/credentials/$credential_id/password
264
+ /managed/credentials/$id/revoke :
265
+ group : Credentials
266
+ type : resource
267
+ authenticated : true
268
+ description : >
269
+ Revokes a credential.
270
+ methods :
271
+ POST :
272
+ description : >
273
+ Revokes a credential.
274
+ examples :
275
+ curl : |
276
+ curl -H "Content-Type: application/json" \
277
+ -H "Authorization: Bearer $TOKEN" \
278
+ https://$api_root/$version/managed/credentials/$credential_id/revoke
0 commit comments