Updated on 2022-02-22 GMT+08:00

VPC.EIP

Element Description

VPC.EIP is used to create a public elastic IP address. A public elastic IP address is a static IP address. You can bind or unbind an elastic IP address to an Elastic Cloud Server (ECS) in a subnet. An ECS in a Virtual Private Cloud (VPC) can access the Internet through a fixed public IP address.

Element Properties

Table 1 Property description

Property

Mandatory

Description

publicIP

Yes

Elastic IP address object

Type: VPC.PublicIP

Default value: {u'type': u'unset'}

instances

No

Number of elastic IP addresses

Type: integer

Value Description: Customize the value. The default value is 1.

Default Value: 1

Constraint: {u'greater_or_equal': 1}

bandwidth

Yes

Bandwidth object

Type: VPC.BandWidth

Default value: {u'shareType': u'PER'}

Relationships Between Elements

Table 2 Relationship description

Description

Target

Dependency

CCE.NodePool

Dependency

ECS.CloudServer

Return Value

Property

Type

Description

refIP

string

Elastic IP address created

idList

string

ID of the elastic IP addresses created in batch

refID

string

ID of the elastic IP address.

ipList

string

Elastic IP addresses created in batch

Blueprint Example

tosca_definitions_version: cloud_tosca_version_1_0
inputs:
  publicip-type:
    default: 5_bgp
    description: Public IP type.
  size:
    default: 1
    description: bandwidth size
node_templates:
  eip:
    properties:
      bandwidth:
        name: test-eip
        shareType: PER
        size:
          get_input: size
      publicIP:
        type:
          get_input: publicip-type
    type: Cloud.VPC.EIP