List and filter on SSH keys in the Linode profile.
- name: List all of the SSH keys for the current Linode Account
linode.cloud.ssh_key_list: {}
- name: List the latest 5 SSH keys for the current Linode Account
linode.cloud.ssh_key_list:
count: 5
order_by: created
order: desc
- name: List filtered personal SSH keys for the current Linode Account
linode.cloud.ssh_key_list:
filters:
- name: label-or-some-other-field
values: MySSHKey1
- name: List filtered personal SSH keys for the current Linode Account
linode.cloud.ssh_key_list:
filters:
- name: label-or-some-other-field
values:
- MySSHKey1
- MySSHKey2
Field |
Type |
Required |
Description |
order |
str |
Optional |
The order to list ssh keys in. (Choices: desc , asc ; Default: asc ) |
order_by |
str |
Optional |
The attribute to order ssh keys by. |
filters (sub-options) |
list |
Optional |
A list of filters to apply to the resulting ssh keys. |
count |
int |
Optional |
The number of results to return. If undefined, all results will be returned. |
Field |
Type |
Required |
Description |
name |
str |
Required |
The name of the field to filter on. Valid filterable attributes can be found here: https://www.linode.com/docs/api/profile/#ssh-keys-list |
values |
list |
Required |
A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |