Skip to content

Commit dde0604

Browse files
authored
add: POST /managed/credentials/{credentialId}/update (#102)
* add: POST /managed/credentials/{credentialId}/update also: updates: components/schemas/ManagedCredential - The last_decryped property (a date-time string) was missing from the schema, added it in. updates: POST /managed/credentials - The password property is required by the API but was not marked as required in the reference. * Grammar fix
1 parent 7e45b77 commit dde0604

File tree

1 file changed

+87
-1
lines changed

1 file changed

+87
-1
lines changed

openapi.yaml

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6475,6 +6475,7 @@ paths:
64756475
schema:
64766476
required:
64776477
- label
6478+
- password
64786479
allOf:
64796480
- $ref: '#/components/schemas/ManagedCredential'
64806481
- type: object
@@ -6564,7 +6565,11 @@ paths:
65646565
- Managed
65656566
summary: Update Managed Credential
65666567
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.
65686573
operationId: updateManagedCredential
65696574
x-linode-cli-action: credential-update
65706575
security:
@@ -6600,6 +6605,78 @@ paths:
66006605
source: >
66016606
linode-cli managed credential-update 9991 \
66026607
--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
66036680
/managed/credentials/{credentialId}/revoke:
66046681
parameters:
66056682
- name: credentialId
@@ -14211,6 +14288,15 @@ components:
1421114288
only.
1421214289
example: prod-password-1
1421314290
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
1421414300
ManagedIssue:
1421514301
type: object
1421614302
description: >

0 commit comments

Comments
 (0)