File tree Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -265,22 +265,33 @@ endpoints:
265
265
"username": "myusername2",
266
266
}' \
267
267
https://$api_root/$version/managed/credentials/$credential_id
268
- /managed/credentials/$id/password :
268
+ /managed/credentials/$id/update :
269
269
group : Credentials
270
270
type : resource
271
271
authenticated : true
272
272
description : >
273
- Change the password for a credential.
273
+ Change the username and/or password for a credential.
274
274
methods :
275
275
POST :
276
276
response : ManagedCredential
277
277
description : >
278
- Changes the password for a credential.
278
+ Changes the username and/or password for a credential.
279
+ params :
280
+ username :
281
+ optional : True
282
+ description : New username to set for this credential.
283
+ value : myusername
284
+ type : String
285
+ password :
286
+ description : New password to set for this credential.
287
+ value : mypassword
288
+ type : String
279
289
examples :
280
290
curl : |
281
291
curl -H "Content-Type: application/json" \
282
292
-H "Authorization: Bearer $TOKEN" \
283
293
-X POST -d '{
294
+ "username": "myusername",
284
295
"pasword": "mypassword",
285
296
}' \
286
297
https://$api_root/$version/managed/credentials/$credential_id/password
Original file line number Diff line number Diff line change @@ -14,22 +14,3 @@ schema:
14
14
value : CredentialLabel
15
15
description : >
16
16
A unique Label describing the credential.
17
- username :
18
- type : String
19
- value : myusername
20
- description : >
21
- An optional login username.
22
- last_decryption :
23
- type : Object
24
- description : >
25
- The username and datetime of the last login using this credential.
26
- who :
27
- type : String
28
- value : myusername
29
- description : >
30
- The username of the last successful login.
31
- when :
32
- type : Datetime
33
- value : 2017-10-31T11:12:21
34
- description : >
35
- The datetime of the last successful login.
You can’t perform that action at this time.
0 commit comments