Set saas
endpoint as global to skip region checks
#483
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.
Description
Updates the list of global APIs to include the
/saas
endpoint.Related Issues
https://elasticco.atlassian.net/browse/CP-7863
Motivation and Context
The
/saas/billing/prices
endpoint is a global endpoint that doesn't require the/regions/$region
prefix. However, if this endpoint isn't added to the global list, trying to use it in thecloud-cli
code without specifying a region in the context will result in this errorthe requested operation requires a region but none has been set
.How Has This Been Tested?
Tested using the new
cloud-cli
changes from https://github.com/elastic/cloud-cli/pull/1525, which perform aGET /saas/billing/prices
request.Types of Changes
Readiness Checklist