Managed
Managed Credentials List
https://api.linode.com/v4/managed/credentials
Returns a paginated list of Managed Credentials on your Account.
This command can only be accessed by the unrestricted users of an account.
Query Parameters
The page of a collection to return.
The number of items to return per page.
Request Samples
- Shell
- CLI
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/credentials
Response Samples
- 200
- default
{
"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
This Credential's unique ID.
The unique label for this Credential. This is for display purposes only.
The date this Credential was last decrypted by a member of Linode special forces.
The current page.
The total number of pages.
The total number of results.
default: Error
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.
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.
Managed Credential Create
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.
This command can only be accessed by the unrestricted users of an account.
Request Body Schema
The unique label for this Credential. This is for display purposes only.
The password to use when accessing the Managed Service.
The username to use when accessing the Managed Service.
Request Samples
- Shell
- CLI
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
- 200
- default
{
"id": 1234,
"label": "prod-password-1",
"last_decrypted": "2018-01-01T00:01:01"
}
Responses
200: Credential created.
This Credential's unique ID.
The unique label for this Credential. This is for display purposes only.
The date this Credential was last decrypted by a member of Linode special forces.
default: Error
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.
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.