Both the Gandi documentation when creating an API key and API documentation mention that API keys are deprecated and that they now offer (with more fine-grained permission control) Personal Access Tokens.
However, since this changed the header required in the Authorization header (requiring Bearer rather than Apikey as the first word). This is somewhat confusing to new comers because the error messages are either 500 and 404's from the API, or Terraform saying it cannot parse a < in the response (which comes from the HTML in the error that Gandi answers).
Steps to reproduce: configure a PAT and set it as provider key, then try to do anything.
Both the Gandi documentation when creating an API key and API documentation mention that API keys are deprecated and that they now offer (with more fine-grained permission control) Personal Access Tokens.
However, since this changed the header required in the Authorization header (requiring
Bearer
rather thanApikey
as the first word). This is somewhat confusing to new comers because the error messages are either 500 and 404's from the API, or Terraform saying it cannot parse a<
in the response (which comes from the HTML in the error that Gandi answers).Steps to reproduce: configure a PAT and set it as provider key, then try to do anything.