Support setting fallback origin on a zone#337
Merged
patryk merged 2 commits intocloudflare:masterfrom Aug 22, 2019
Evesy:master
Merged
Support setting fallback origin on a zone#337patryk merged 2 commits intocloudflare:masterfrom Evesy:master
patryk merged 2 commits intocloudflare:masterfrom
Evesy:master
Conversation
patryk
approved these changes
Aug 22, 2019
|
Looks good, thanks @Evesy ! |
Michael9127
pushed a commit
to Michael9127/cloudflare-go
that referenced
this pull request
Oct 28, 2019
* Support setting fallback origin on a zone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supports getting/setting the
fallback_originon Cloudflare ZonesDescription
As part of Cloudflare's SSL for SaaS offering, a default origin server (
fallback_origin) can be configured on any enabled zones.Ultimately I'd like to be able to set this configuration option via a Terraform resource however I'm unable to do so until the Go client supports this endpoint.
The API endpoint is undocumented in the API docs but details can be found here
Has your change been tested?
api.FallbackOrigin("<ZONEID>")) & updating the fallback origin for a zone (api.UpdateFallbackOrigin("<ZONEID>", newOrigin))Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?
Checklist: