Managed

List Managed Credentials

get
https://api.linode.com/v4/managed/credentials

Returns a paginated list of Managed Credentials on your Account.

Authorizations

Personal Access Token
OAuth: ( account:read_only)

Query Parameters

page
integer > = 1
Default: 1

The page of a collection to return.

page_size
integer [25 .. 100]
Default: 100

The number of items to return per page.

Request Samples

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

Response Samples

{
  "data": [
    {
      "id": "",
      "label": "prod-password-1",
      "last_decrypted": "2018-01-01T00:01:01"
    }
  ],
  "page": 1,
  "pages": 1,
  "results": 1
}

Responses

200: A paginated list of ManagedCredentials

data
array of objects
id
integer

This Credential's unique ID.

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

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

last_decrypted
string

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

page
integer
pages
integer
results
integer

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.

Create Managed Credential

post
https://api.linode.com/v4/managed/credentials

Creates a Managed Credential. A Managed Credential is stored securely to allow Linode special forces to access your Managed Services and resolve issues.

Authorizations

Personal Access Token
OAuth: ( account:read_write)

Request Body Schema

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

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

password
Required
string <= 5000 characters

The password to use when accessing the Managed Service.

username
string <= 5000 characters

The username to use when accessing the Managed Service.

Request Samples

curl -H "Content-Type: application/json" \
    -H "Authorization: Bearer $TOKEN" \
    -X POST -d '{
      "label": "prod-password-1",
      "username": "johndoe",
      "password": "s3cur3P@ssw0rd"
    }' \
    https://api.linode.com/v4/managed/credentials

Response Samples

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

Responses

200: Credential created.

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.