Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.29 KB

ssh_key_info.md

File metadata and controls

46 lines (33 loc) · 1.29 KB

ssh_key_info

Get info about the Linode SSH public key.

Examples

- name: Get info about a SSH key by label
  linode.cloud.ssh_key_info:
    label: my-ssh-key
- name: Get info about a SSH key by ID
  linode.cloud.ssh_key_info:
    id: 12345

Parameters

Field Type Required Description
id int Optional The ID of the SSH key. (Conflicts With: label)
label str Optional The label of the SSH key. (Conflicts With: id)

Return Values

  • ssh_key - The SSH key in JSON serialized form.

    • Sample Response:
      {
        "created": "2018-01-01T00:01:01",
        "id": 42,
        "label": "My SSH Key",
        "ssh_key": "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"
      }
    • See the Linode API response documentation for a list of returned fields