-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[APIM] az apim policy: Add support for managing APIM policies
#31457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+3,061
−501
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
efc66c4
added get api policy
FilPag 0a9d7ba
set, get, delete, list
FilPag d21fcad
basic operations done
FilPag c7bdaf2
added basic functions
FilPag 2d1d5ef
linting and styling
FilPag 6e360e0
tests
FilPag 500b86c
added test cases for etag and wait
FilPag f9cd69b
Added final tests for wait and etag
FilPag a6bfb1e
moved policy command out of 'api' scope
FilPag fc15671
updated misspelling in _help and updated policy formats to use an enum
FilPag e7c5df0
eait -> wait
FilPag 9448021
moved test files to tests/latest/data directory
FilPag 4683fe2
updated to use PolicyContentFormat from SDK
FilPag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
src/azure-cli/azure/cli/command_modules/apim/tests/latest/data/api_policy.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!-- | ||
| This is a test policy file for Azure API Management. | ||
| --> | ||
| <!-- Add policies as children to the <inbound>, <outbound>, <backend>, and <on-error> elements --> | ||
| <policies> | ||
| <!-- Throttle, authorize, validate, cache, or transform the requests --> | ||
| <inbound> | ||
| </inbound> | ||
| <!-- Control if and how the requests are forwarded to services --> | ||
| <backend> | ||
| </backend> | ||
| <!-- Customize the responses --> | ||
| <outbound> | ||
| </outbound> | ||
| <!-- Handle exceptions and customize error responses --> | ||
| <on-error> | ||
| </on-error> | ||
| </policies> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.