rancher2_custom_user_token

Nivis Nix constructor for the rancher2_custom_user_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,
  password,
  username,
  annotations ? null,
  cluster_id ? null,
  description ? null,
  id ? null,
  labels ? null,
  renew ? null,
  ttl ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • password
  • username
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
  • temp_token
  • temp_token_id
  • token
  • user_id
Example
rancher2_custom_user_token {
  name = "custom_user_token";
  password = …;  # required
  username = …;  # required
}

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