EC2 / Client / provision_ipam_pool_cidr
provision_ipam_pool_cidr#
- EC2.Client.provision_ipam_pool_cidr(**kwargs)#
Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.
See also: AWS API Documentation
Request Syntax
response = client.provision_ipam_pool_cidr( DryRun=True|False, IpamPoolId='string', Cidr='string', CidrAuthorizationContext={ 'Message': 'string', 'Signature': 'string' }, NetmaskLength=123, ClientToken='string' )
- Parameters:
DryRun (boolean) – A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.IpamPoolId (string) –
[REQUIRED]
The ID of the IPAM pool to which you want to assign a CIDR.
Cidr (string) – The CIDR you want to assign to the IPAM pool. Either “NetmaskLength” or “Cidr” is required. This value will be null if you specify “NetmaskLength” and will be filled in during the provisioning process.
CidrAuthorizationContext (dict) –
A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
Message (string) –
The plain-text authorization message for the prefix and account.
Signature (string) –
The signed authorization message for the prefix and account.
NetmaskLength (integer) – The netmask length of the CIDR you’d like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. Either “NetmaskLength” or “Cidr” is required.
ClientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'IpamPoolCidr': { 'Cidr': 'string', 'State': 'pending-provision'|'provisioned'|'failed-provision'|'pending-deprovision'|'deprovisioned'|'failed-deprovision'|'pending-import'|'failed-import', 'FailureReason': { 'Code': 'cidr-not-available'|'limit-exceeded', 'Message': 'string' }, 'IpamPoolCidrId': 'string', 'NetmaskLength': 123 } }
Response Structure
(dict) –
IpamPoolCidr (dict) –
Information about the provisioned CIDR.
Cidr (string) –
The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP address and its associated network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is
10.24.34.0/23
. An IPv6 CIDR example is2001:DB8::/32
.State (string) –
The state of the CIDR.
FailureReason (dict) –
Details related to why an IPAM pool CIDR failed to be provisioned.
Code (string) –
An error code related to why an IPAM pool CIDR failed to be provisioned.
Message (string) –
A message related to why an IPAM pool CIDR failed to be provisioned.
IpamPoolCidrId (string) –
The IPAM pool CIDR ID.
NetmaskLength (integer) –
The netmask length of the CIDR you’d like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. “NetmaskLength” or “Cidr” is required.