You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes the return values from both Get and Update to always return an empty EmailRoutingCatchAllRule.
Code demonstrating the issue
package main
import (
"context""fmt""log""github.com/cloudflare/cloudflare-go"
)
funcmain() {
// Construct a new API object using a global API key// alternatively, you can use a scoped API tokenapi, err:=cloudflare.NewWithAPIToken("<API TOKEN>", cloudflare.Debug(true))
iferr!=nil {
log.Fatal(err)
}
// Most API calls require a Contextctx:=context.Background()
res, err:=api.GetEmailRoutingCatchAllRule(ctx, cloudflare.ZoneIdentifier("<ZONE ID>"))
iferr!=nil {
log.Fatal(err)
}
fmt.Printf("%#v", res)
Confirmation
cloudflare-go version
latest
Go environment
N/A
Expected output
Expect an API response of
Actual output
Seeing a response of
This causes the return values from both Get and Update to always return an empty
EmailRoutingCatchAllRule
.Code demonstrating the issue
Steps to reproduce
Run the code given
References
API Docs Links
https://api.cloudflare.com/#email-routing-routing-rules-get-catch-all-rule
https://api.cloudflare.com/#email-routing-routing-rules-update-catch-all-rule
The text was updated successfully, but these errors were encountered: