dtz_identity_apikey

last updated: 2025-07-10

The dtz_identity_apikey resource allows you to create, update, and delete API keys in the DownToZero.cloud service.

Example Usage

resource "dtz_identity_apikey" "example" {
  alias = "my-api-key"
  context_id = "my-api-key-context"
}

Schema

Required

  • context_id (String) The context ID of the API key.

Optional

  • alias (String) The alias of the API key.

Read-Only

  • apikey (String) The API key.

Import

Import is supported using the following syntax:

terraform import dtz_identity_apikey.example <apikey_id>

Terraform Docs

Github Sources