rancher2_token

Nivis Nix constructor for the rancher2_token resource (provider rancher2). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  annotations ? null,
  cluster_id ? null,
  description ? null,
  id ? null,
  labels ? null,
  renew ? null,
  ttl ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments

_None._

Optional arguments
  • annotations (defaults to null)
  • cluster_id (defaults to null)
  • description (defaults to null)
  • id (defaults to null)
  • labels (defaults to null)
  • renew (defaults to null)
  • ttl (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • access_key
  • enabled
  • expired
  • name
  • secret_key
  • token
  • user_id
Example
rancher2_token {
  name = "token";
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.