Managed

View Managed Credential

get
https://api.linode.com/v4/managed/credentials/{credentialId}

Returns a single Managed Credential.

Authorizations

Personal Access Token
OAuth: ( account:read_write)

Path Parameters

credentialId
Required
integer

The ID of the Credential to access.

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
    https://api.linode.com/v4/managed/credentials/9991

Response Samples

{
  "id": 1234,
  "label": "prod-password-1",
  "last_decrypted": "2018-01-01T00:01:01"
}

Responses

200: The requested Managed Credential.

id
integer

This Credential's unique ID.

label
string [2 .. 75] characters [a-zA-Z0-9-_ \.]{2,75}

The unique label for this Credential. This is for display purposes only.

last_decrypted
string <date-time>

The date this Credential was last decrypted by a member of Linode special forces.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.

Update Managed Credential

put
https://api.linode.com/v4/managed/credentials/{credentialId}

Updates the label of a Managed Credential. This endpoint does not update the username and password for a Managed Credential. To do this, use the Update Managed Credential Username and Password (POST /managed/credentials/{credentialId}/update) endpoint instead.

Authorizations

Personal Access Token
OAuth: ( account:read_write)

Path Parameters

credentialId
Required
integer

The ID of the Credential to access.

Request Body Schema

label
string [2 .. 75] characters [a-zA-Z0-9-_ \.]{2,75}

The unique label for this Credential. This is for display purposes only.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X PUT -d '{
      "label": "prod-password-1"
    }' \
    https://api.linode.com/v4/managed/credentials/9991

Response Samples

{
  "id": 1234,
  "label": "prod-password-1",
  "last_decrypted": "2018-01-01T00:01:01"
}

Responses

200: Credential updated successfully.

id
integer

This Credential's unique ID.

label
string [2 .. 75] characters [a-zA-Z0-9-_ \.]{2,75}

The unique label for this Credential. This is for display purposes only.

last_decrypted
string <date-time>

The date this Credential was last decrypted by a member of Linode special forces.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.