@@ -6475,6 +6475,7 @@ paths:
6475
6475
schema:
6476
6476
required:
6477
6477
- label
6478
+ - password
6478
6479
allOf:
6479
6480
- $ref: '#/components/schemas/ManagedCredential'
6480
6481
- type: object
@@ -6564,7 +6565,11 @@ paths:
6564
6565
- Managed
6565
6566
summary: Update Managed Credential
6566
6567
description: >
6567
- Updates information about a Managed Credential.
6568
+ Updates the label of a Managed Credential. This endpoint
6569
+ does not update the username and password for a Managed Credential.
6570
+ To do this, use the Update Managed Credential Username and Password
6571
+ ([POST /managed/credentials/{credentialId}/update](https://developers.linode.com/api/docs/v4#operation/updateManagedCredentialUsernamePassword))
6572
+ endpoint instead.
6568
6573
operationId: updateManagedCredential
6569
6574
x-linode-cli-action: credential-update
6570
6575
security:
@@ -6600,6 +6605,78 @@ paths:
6600
6605
source: >
6601
6606
linode-cli managed credential-update 9991 \
6602
6607
--label prod-password-1
6608
+ /managed/credentials/{credentialId}/update:
6609
+ parameters:
6610
+ - name: credentialId
6611
+ in: path
6612
+ required: true
6613
+ description: The ID of the Credential to update.
6614
+ schema:
6615
+ type: integer
6616
+ x-linode-cli-command: managed
6617
+ post:
6618
+ x-linode-grant: unrestricted only
6619
+ tags:
6620
+ - Managed
6621
+ summary: Update Managed Credential Username and Password
6622
+ description: >
6623
+ Updates the username and password for a Managed Credential.
6624
+ operationId: updateManagedCredentialUsernamePassword
6625
+ x-linode-cli-action: credential-update-username-password
6626
+ security:
6627
+ - personalAccessToken: []
6628
+ - oauth:
6629
+ - account:read_write
6630
+ requestBody:
6631
+ description: >
6632
+ The new username and password to assign to the
6633
+ Managed Credential.
6634
+ content:
6635
+ application/json:
6636
+ schema:
6637
+ required:
6638
+ - password
6639
+ allOf:
6640
+ - type: object
6641
+ properties:
6642
+ username:
6643
+ type: string
6644
+ minLength: 0
6645
+ maxLength: 5000
6646
+ description: >
6647
+ The username to use when accessing the Managed Service.
6648
+ example: johndoe
6649
+ password:
6650
+ type: string
6651
+ minLength: 0
6652
+ maxLength: 5000
6653
+ description: >
6654
+ The password to use when accessing the Managed Service.
6655
+ example: s3cur3P@ssw0rd
6656
+ responses:
6657
+ '200':
6658
+ description: Credential username and password updated.
6659
+ content:
6660
+ application/json:
6661
+ schema:
6662
+ type: object
6663
+ default:
6664
+ $ref: '#/components/responses/ErrorResponse'
6665
+ x-code-samples:
6666
+ - lang: Shell
6667
+ source: >
6668
+ curl -H "Content-Type: application/json" \
6669
+ -H "Authorization: Bearer $TOKEN" \
6670
+ -X POST -d '{
6671
+ "username": "johndoe",
6672
+ "password": "s3cur3P@ssw0rd"
6673
+ }' \
6674
+ https://api.linode.com/v4/managed/credentials/9991/update
6675
+ - lang: CLI
6676
+ source: >
6677
+ linode-cli managed credential-update-username-password 9991 \
6678
+ --username johndoe \
6679
+ --password s3cur3P@ssw0rd
6603
6680
/managed/credentials/{credentialId}/revoke:
6604
6681
parameters:
6605
6682
- name: credentialId
@@ -14211,6 +14288,15 @@ components:
14211
14288
only.
14212
14289
example: prod-password-1
14213
14290
x-linode-cli-display: 2
14291
+ last_decrypted:
14292
+ type: string
14293
+ format: date-time
14294
+ description: >
14295
+ The date this Credential was last decrypted by a member of Linode
14296
+ special forces.
14297
+ readOnly: true
14298
+ example: "2018-01-01T00:01:01"
14299
+ x-linode-cli-display: 3
14214
14300
ManagedIssue:
14215
14301
type: object
14216
14302
description: >
0 commit comments