-
Notifications
You must be signed in to change notification settings - Fork 4.6k
docs(ec2): Add examples for modify/describe ipam-pool-allocation APIs #10396
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
Merged
ashovlin
merged 1 commit into
aws:develop
from
Danyu999:add-ipam-pool-allocation-examples
Jun 19, 2026
+93
−0
Merged
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| **Example 1: To describe all your IPAM pool allocations** | ||
|
|
||
| The following ``describe-ipam-pool-allocations`` example describes all IPAM pool allocations owned by you. | ||
|
|
||
| (Linux):: | ||
|
|
||
| aws ec2 describe-ipam-pool-allocations | ||
|
|
||
| (Windows):: | ||
|
|
||
| aws ec2 describe-ipam-pool-allocations | ||
|
|
||
| Output:: | ||
|
|
||
| { | ||
| "IpamPoolAllocations": [ | ||
| { | ||
| "Cidr": "10.0.0.0/24", | ||
| "IpamPoolAllocationId": "ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd", | ||
| "Description": "Engineering team allocation", | ||
| "ResourceType": "custom", | ||
| "ResourceOwner": "123456789012", | ||
| "Tags": [] | ||
| }, | ||
| { | ||
| "Cidr": "10.0.1.0/24", | ||
| "IpamPoolAllocationId": "ipam-pool-alloc-0e6186d73999e47389266a5d6991e6220", | ||
| "ResourceType": "custom", | ||
| "ResourceOwner": "123456789012", | ||
| "Tags": [] | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| **Example 2: To describe a specific IPAM pool allocation** | ||
|
|
||
| The following ``describe-ipam-pool-allocations`` example describes a specific IPAM pool allocation by its ID. | ||
|
|
||
| (Linux):: | ||
|
|
||
| aws ec2 describe-ipam-pool-allocations \ | ||
| --ipam-pool-allocation-ids ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd | ||
|
|
||
| (Windows):: | ||
|
|
||
| aws ec2 describe-ipam-pool-allocations ^ | ||
| --ipam-pool-allocation-ids ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd | ||
|
|
||
| Output:: | ||
|
|
||
| { | ||
| "IpamPoolAllocations": [ | ||
| { | ||
| "Cidr": "10.0.0.0/24", | ||
| "IpamPoolAllocationId": "ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd", | ||
| "Description": "Engineering team allocation", | ||
| "ResourceType": "custom", | ||
| "ResourceOwner": "123456789012", | ||
| "Tags": [] | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| For more information, see `View allocations for a pool <https://docs.aws.amazon.com/vpc/latest/ipam/view-alloc-ipam.html>`__ in the *Amazon VPC IPAM User Guide*. | ||
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,29 @@ | ||
| **To modify an IPAM pool allocation** | ||
|
|
||
| The following ``modify-ipam-pool-allocation`` example modifies the description of an IPAM pool allocation. | ||
|
|
||
| (Linux):: | ||
|
|
||
| aws ec2 modify-ipam-pool-allocation \ | ||
| --ipam-pool-allocation-id ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd \ | ||
| --description "Engineering team us-west-2 allocation" | ||
|
|
||
| (Windows):: | ||
|
|
||
| aws ec2 modify-ipam-pool-allocation ^ | ||
| --ipam-pool-allocation-id ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd ^ | ||
| --description "Engineering team us-west-2 allocation" | ||
|
|
||
| Output:: | ||
|
|
||
| { | ||
| "IpamPoolAllocation": { | ||
| "Cidr": "10.0.0.0/24", | ||
| "IpamPoolAllocationId": "ipam-pool-alloc-018ecc28043b54ba38e2cd99943cebfbd", | ||
| "Description": "Engineering team us-west-2 allocation", | ||
| "ResourceType": "custom", | ||
| "ResourceOwner": "123456789012" | ||
| } | ||
| } | ||
|
|
||
| For more information, see `Modify an IPAM pool allocation <https://docs.aws.amazon.com/vpc/latest/ipam/modify-alloc-ipam.html>`__ in the *Amazon VPC IPAM User Guide*. |
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.