Updated on 2023-08-11 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

Type: VPC.PublicIP

Default value: {u 'type': u '5_sbgp'}

bandwidth

Yes

Type: VPC.BandWidth

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

Relationships Between Elements

Table 2 Relationship description

Description

Target

DependsOn

VPC.VIP

DependsOn

CCE.NodePool

DependsOn

ECS.CloudServer

Return Value

Property

Type

Description

refIP

string

Elastic IP address.

floatingIpId

string

ID of the elastic IP address.

refID

string

ID of the elastic IP address.

refName

string

Name of the elastic IP address.

Blueprint Example

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