observe_datastream_token#

Manages a token for a datastream. This token can be used when sending data to Observe, which will be directed into the datastream’s dataset.

Example Usage#

data "observe_workspace" "default" {
  name = "Default"
}

data "observe_datastream" "example" {
  workspace = data.observe_workspace.default.oid
  name      = "My Datastream"
}

resource "observe_datastream_token" "example" {
  datastream = data.observe_datastream.example.oid
  name       = "My Token"
}

Schema#

Required#

  • datastream (String) OID of datastream token is contained in.

  • name (String) Datastream name. Must be unique within workspace.

Optional#

  • description (String) Datastream description.

  • disabled (Boolean) Disable token.

Read-Only#

  • id (String) The ID of this resource.

  • oid (String) The Observe ID for datastream token.

  • secret (String, Sensitive)

Import#

Import is supported using the following syntax:

# Set SECRET to import with the token secret
SECRET=the-token-secret terraform import observe_datastream_token.example 1414010

# Otherwise, because token secrets cannot be read from the API, it will be null
terraform import observe_datastream_token.example 1414010