AllocateAddress
In this article:
AllocateAddress#
Description#
The request to allocate an external Elastic IP address.
Request Parameters#
Address — Specific external IP address.
Type: String
Required: No
publicIpv4Pool — The ID of your own address pool. When this parameter is set, an address will be allocated from the specified address pool if available. Use the Address parameter instead of or in addition to publicIpv4Pool if you need to allocate a specific address from the specified pool.
Type: String
Required: No
TagSpecification.N — The tags assigned to the resource when it is created.
Type: List of TagSpecification objects
Required: No
Response Elements#
allocationId — Identifier assigned by K2 Cloud to an external IP address.
Type: String
domain — Indicates whether this Elastic IP address is for use with instances in a VPC.
Type: String
publicIp — External IP address.
Type: String
publicIpv4Pool — The address pool.
Type: String
requestId — The request ID.
Type: String
Examples#
c2-ec2 AllocateAddress
c2-ec2 AllocateAddress Address 1.2.3.4
c2-ec2 AllocateAddress Address 1.2.3.4 TagSpecification.0.ResourceType elastic-ip \
TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"