Skip to main content

credentials

Creates, updates, deletes, gets or lists a credentials resource.

Overview

Namecredentials
TypeResource
Idlinode.managed.credentials

Fields

The following fields are returned by SELECT queries:

The requested Managed Credential.

NameDatatypeDescription
idintegerRead-only This Credential's unique ID.
labelstringThe unique label for this Credential. This is for display purposes only. (example: prod-password-1, pattern: [a-zA-Z0-9-_ .]{2,75})
last_decryptedstring (date-time)Read-only The date this Credential was last decrypted by a member of Linode special forces. (example: 2018-01-01T00:01:01)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_credentialselectReturns a single Managed Credential.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
get_managed_credentialsselectpage, page_sizeReturns a paginated list of Managed Credentials on your Account.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
post_managed_credentialinsertdata__label, data__passwordCreates a Managed Credential. A Managed Credential is stored securely to allow Linode special forces to access your Managed Services and resolve issues.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
put_managed_credentialreplaceUpdates the label of a Managed Credential. This operation does not update the username and password for a Managed Credential. To do this, run the Update a managed credential's username and password) operation instead. This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
post_managed_credential_revokeexecDeletes a Managed Credential. Linode special forces will no longer have access to this Credential when attempting to resolve issues.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...
post_managed_credential_username_passwordexecpasswordUpdates the username and password for a Managed Credential.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns a single Managed Credential.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

SELECT
id,
label,
last_decrypted
FROM linode.managed.credentials;

INSERT examples

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

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

INSERT INTO linode.managed.credentials (
data__label,
data__password,
data__username
)
SELECT
'{{ label }}' --required,
'{{ password }}' --required,
'{{ username }}'
RETURNING
id,
label,
last_decrypted
;

REPLACE examples

Updates the label of a Managed Credential. This operation does not update the username and password for a Managed Credential. To do this, run the Update a managed credential's username and password) operation instead. This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

REPLACE linode.managed.credentials
SET
data__label = '{{ label }}'
WHERE

RETURNING
id,
label,
last_decrypted;

Lifecycle Methods

Deletes a Managed Credential. Linode special forces will no longer have access to this Credential when attempting to resolve issues.

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

EXEC linode.managed.credentials.post_managed_credential_revoke 
;