Updated on 2023-12-13 GMT+08:00

VPC.VIP

Element Description

The VPC.VIP element is used to create a virtual IP address, that is, an IP address which has not been allocated to an ECS NIC. The ECS can be accessed through this virtual IP address.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

subnetId

Yes

Subnet ID to which the floating IP belongs

Type: HuaweiCloud.VPC.Subnet.All.Id

Value Description: Set this property to the ID of an existing subnet in the VPC to which the cloud host belongs. Get the Subnet ID Via VPC service or automatically generate it by connecting to VPC.Subnet

Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters.

ipAddress

No

The specified floating IP, note that it belongs to the subnet segment.Available and unassigned IP addresses in the subnet segment. If this property is not specified, the system automatically assigns an IP address. Available and unassigned IP addresses in the subnet segment. If this property is not specified, the system automatically assigns an IP address.

Type: ip

Value Description: None

Value Constraint: The value must be an IP address array

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

VPC.Subnet

Return Value

Property

Type

Description

refIP

string

virtual IP

refID

string

ID of virtual IP

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  vpcvip:
    type: HuaweiCloud.VPC.VIP
    properties:
      subnetId:
        get_input: vpcvip_subnetId
inputs:
  vpcvip_subnetId:
    description: Subnet ID to which the floating IP belongs