Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to the documentation the enabled flag must be set to null (…
Browse files Browse the repository at this point in the history
…or nil)

in order for the association to be destroyed. Setting this to false keeps the
association in a disabled state instead of destroying the resource.

Documentation on this API endpoint can be found here:

https://developers.cloudflare.com/api/operations/per-hostname-authenticated-origin-pull-enable-or-disable-a-hostname-for-client-authentication

Referencing issue raised on provider:

#4648
Philip Skinner committed Nov 22, 2024
1 parent e2013d8 commit b1d6308
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ func resourceCloudflareAuthenticatedOriginPullsDelete(ctx context.Context, d *sc
conf := []cloudflare.PerHostnameAuthenticatedOriginPullsConfig{{
CertID: aopCert,
Hostname: hostname,
Enabled: false,
Enabled: nil,
}}
_, err := client.EditPerHostnameAuthenticatedOriginPullsConfig(ctx, zoneID, conf)
if err != nil {

0 comments on commit b1d6308

Please sign in to comment.