Cloudflare DevelopersCD
Cloudflare Developersโ€ข2mo agoโ€ข
1 reply
gonz

Listing token permission groups via Terraform

Is it possible to use cloudflare_api_token_permission_groups_list data source in Terraform with an account API token?

The account API token in question has API Tokens:Edit but still getting GET "https://api.cloudflare.com/client/v4/user/tokens/permission_groups": 403 Forbidden {"success":false,"errors":[{"code":9109,"message":"Valid user-level authentication not found"}],"messages":[],"result":null}

Given the /user/ in the URL, does this mean it only works with the old user API tokens? if so, does that mean I have to hardcode permission IDs?
Was this page helpful?