打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
allocate_ipam_pool_cidr亚马逊boto3

allocate_ipam_pool_cidr(**kwargs)¶
Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool or to a resource. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide .
See also: AWS API Documentation
Request Syntax

注意True和False的区别,这些参数是2选1

response = client.allocate_ipam_pool_cidr(
    DryRun=True|False,
    IpamPoolId='string',
    Cidr='string',
    NetmaskLength=123,
    ClientToken='string',
    Description='string',
    PreviewNextCidr=True|False,
    DisallowedCidrs=[
        '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 is UnauthorizedOperation .
* IpamPoolId (string) -- [REQUIRED]
The ID of the IPAM pool from which you would like to allocate a CIDR.
* Cidr (string) -- The CIDR you would like to allocate from the IPAM pool. Note the following:
    * If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
    * If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
* Possible values: Any available IPv4 or IPv6 CIDR.
* NetmaskLength (integer) -- The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:
    * If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
    * If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
* Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
* 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.
* Description (string) -- A description for the allocation.
* PreviewNextCidr (boolean) -- A preview of the next available CIDR in a pool.
* DisallowedCidrs (list) -- Exclude a particular CIDR range from being returned by the pool. Disallowed CIDRs are only allowed if using netmask length for allocation.
    * (string) --
Return type
dict
Returns

Response Syntax
{
    'IpamPoolAllocation': {
        'Cidr': 'string',
        'IpamPoolAllocationId': 'string',
        'Description': 'string',
        'ResourceId': 'string',
        'ResourceType': 'ipam-pool'|'vpc'|'ec2-public-ipv4-pool'|'custom',
        'ResourceRegion': 'string',
        'ResourceOwner': 'string'
    }
}
Response Structure
* (dict) --
    * IpamPoolAllocation (dict) --
Information about the allocation created.
        * Cidr (string) --
The CIDR for the allocation. 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 is 2001:DB8::/32 .
        * IpamPoolAllocationId (string) --
The ID of an allocation.
        * Description (string) --
A description of the pool allocation.
        * ResourceId (string) --
The ID of the resource.
        * ResourceType (string) --
The type of the resource.
        * ResourceRegion (string) --
The Amazon Web Services Region of the resource.
        * ResourceOwner (string) --
The owner of the resource.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
企业选择DDI自动化的主要原因
Windows Server 2012 新特性:IPAM的配置
IPv6迁移中的五大网络管理问题
042.Kubernetes集群网络-flannel及calico
Oracle Cloud 甲骨文云添加IPv6详细图文教程
IPv4:根据CIDR显示地址范围
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服