keenauth_permission

La risorsa keenauth_permission definisce un'autorizzazione (uno scope OAuth) di un'API, con i testi che mostra la schermata di consenso. Il provider non gestisce l'API stessa: passa l'ID di un'API esistente come api_id. Inserisci l'autorizzazione in un ruolo con keenauth_role.

resource "keenauth_permission" "invoices_read" {
  api_id       = "api_01j9zq3v8c5m2x7k4t6r1n0b3d"
  value        = "invoices:read"
  display_name = "Read invoices"
  description  = "See the invoices of the account."
  sensitivity  = "normal"

  consent_text_i18n = {
    de = "Rechnungen ansehen"
    tr = "Faturaları görüntüle"
  }
}

Ciclo di vita

Import

Importa tramite ID dell'API e ID dell'autorizzazione, oppure tramite ID dell'API e valore:

tofu import keenauth_permission.invoices_read api_01j9zq3v8c5m2x7k4t6r1n0b3d/perm_01j9zq3v8c5m2x7k4t6r1n0b3e
tofu import keenauth_permission.invoices_read api_01j9zq3v8c5m2x7k4t6r1n0b3d/invoices:read