Hello Jesus,
There are two things to be aware of here.
The allowed IP address restriction announced by Genesys applies to OAuth clients using the Client Credentials grant. Your example is configured with:
authorized_grant_type = "CODE"
so the IP restriction would not apply to that OAuth client.
Also, the genesyscloud_oauth_client Terraform resource currently does not expose an argument for configuring the allowed IP addresses. The current resource schema is documented here:
https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs/resources/oauth_client
So even for a CLIENT-CREDENTIALS client, you won't currently see an IP allowlist option in that Terraform resource.
The feature announcement is here:
https://help.genesys.cloud/announcements/genesys-cloud/restrict-oauth-client-credentials-grants-to-allowed-ip-addresses/
Hope this helps!
------------------------------
Cameron
Online Community Manager/Moderator
------------------------------