Skip to content
Odinex Cloud
Terraform providerReferenceData sources

odinex_ssh_key

Looks up an SSH key by ID, name, fingerprint or label selector.

Looks up an SSH key by ID, name, fingerprint or label selector.

Example Usage

data "odinex_ssh_key" "admin" {
  name = "admin"
}

Schema

Optional

  • fingerprint (String) Fingerprint of the SSH key.
  • id (Number) ID of the SSH key.
  • name (String) Name of the SSH key.
  • with_selector (String) Label selector, e.g. env=prod,role.

Read-Only

  • labels (Map of String) Labels.
  • public_key (String) Public key.

On this page