eip

package
v1.66.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MPL-2.0 Imports: 29 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DefaultBandWidthChargeMode = "bandwidth"
	DefaultBandWidthSize       = 5
)
View Source
const (
	BgpTypeDynamic BgpType = "5_bgp" // Dynamic BGP

	IpVersionV4 IpVersion = 4 // IPv4
	IpVersionV6 IpVersion = 6 // IPv6

	BandwidthTypeDedicated BandwidthType = "PER"   // Dedicated bandwidth
	BandwidthTypeShared    BandwidthType = "WHOLE" // Shared bandwidth

	ChargeModeTraffic   ChargeMode = "traffic"   // Billing based on traffic
	ChargeModeBandwidth ChargeMode = "bandwidth" // Billing based on bandwidth

	EipStatusDown   EipStatus = "DOWN"
	EipStatusActive EipStatus = "ACTIVE"

	NormalizeStatusBound   NormalizeStatus = "BOUND"
	NormalizeStatusUnbound NormalizeStatus = "UNBOUND"
)

Variables

This section is empty.

Functions

func DataSourceBandWidth

func DataSourceBandWidth() *schema.Resource

@API EIP GET /v1/{project_id}/bandwidths

func DataSourceBandWidths added in v1.61.0

func DataSourceBandWidths() *schema.Resource

@API EIP GET /v1/{project_id}/bandwidths

func DataSourceGlobalEIPAccessSites added in v1.61.0

func DataSourceGlobalEIPAccessSites() *schema.Resource

@API EIP GET /v3/{domain_id}/geip/access-sites

func DataSourceGlobalEIPPools added in v1.61.0

func DataSourceGlobalEIPPools() *schema.Resource

@API EIP GET /v3/{domain_id}/geip/geip-pools

func DataSourceGlobalEIPs added in v1.62.0

func DataSourceGlobalEIPs() *schema.Resource

@API EIP GET /v3/{domain_id}/global-eips

func DataSourceGlobalInternetBandwidths added in v1.62.0

func DataSourceGlobalInternetBandwidths() *schema.Resource

@API EIP GET /v3/{domain_id}/geip/internet-bandwidths

func DataSourceVPCInternetGateways added in v1.62.0

func DataSourceVPCInternetGateways() *schema.Resource

@API EIP GET /v3/{project_id}/geip/vpc-igws

func DataSourceVpcEip

func DataSourceVpcEip() *schema.Resource

@API EIP GET /v1/{project_id}/publicips

func DataSourceVpcEips

func DataSourceVpcEips() *schema.Resource

@API EIP GET /v2.0/{project_id}/publicips/{id}/tags @API EIP GET /v1/{project_id}/publicips

func NormalizeEipStatus added in v1.43.0

func NormalizeEipStatus(status string) string

NormalizeEipStatus is a method to change an incomprehensible status into an easy-to-understand status.

func ResourceBandWidthAssociate added in v1.51.0

func ResourceBandWidthAssociate() *schema.Resource

@API EIP POST /v1/{project_id}/bandwidths/{ID}/insert @API EIP POST /v1/{project_id}/bandwidths/{ID}/remove @API EIP GET /v1/{project_id}/bandwidths/{id} @API EIP GET /v1/{project_id}/publicips/{id}

func ResourceEIPAssociate

func ResourceEIPAssociate() *schema.Resource

ResourceEIPAssociate is the impl for huaweicloud_vpc_eip_associate resource @API EIP GET /v1/{project_id}/publicips/{id} @API EIP PUT /v1/{project_id}/publicips/{id} @API VPC GET /v1/{project_id}/ports @API VPC GET /v1/{project_id}/ports/{portId}

func ResourceGlobalEIP added in v1.61.0

func ResourceGlobalEIP() *schema.Resource

@API EIP POST /v3/{domain_id}/global-eips @API EIP DELETE /v3/{domain_id}/global-eips/{id} @API EIP GET /v3/{domain_id}/global-eips/{id} @API EIP PUT /v3/{domain_id}/global-eips/{id} @API EIP POST /v3/global-eip/{resource_id}/tags/delete @API EIP POST /v3/global-eip/{resource_id}/tags/create

func ResourceGlobalEIPAssociate added in v1.62.0

func ResourceGlobalEIPAssociate() *schema.Resource

@API EIP POST /v3/{domain_id}/global-eips/{global_eip_id}/associate-instance @API EIP POST /v3/{domain_id}/global-eips/{global_eip_id}/disassociate-instance @API EIP GET /v3/{domain_id}/geip/jobs/{job_id} @API EIP GET /v3/{domain_id}/global-eips/{id} @API CC GET /v3/{domain_id}/gcb/gcbandwidths/{id} @API CC PUT /v3/{domain_id}/gcb/gcbandwidths/{id}

func ResourceGlobalInternetBandwidth added in v1.61.0

func ResourceGlobalInternetBandwidth() *schema.Resource

@API EIP POST /v3/{domain_id}/geip/internet-bandwidths @API EIP DELETE /v3/{domain_id}/geip/internet-bandwidths/{id} @API EIP GET /v3/{domain_id}/geip/internet-bandwidths/{id} @API EIP PUT /v3/{domain_id}/geip/internet-bandwidths/{id} @API EIP POST /v3/internet-bandwidth/{resource_id}/tags/delete @API EIP POST /v3/internet-bandwidth/{resource_id}/tags/create

func ResourceVPCInternetGateway added in v1.62.0

func ResourceVPCInternetGateway() *schema.Resource

@API EIP POST /v3/{project_id}/geip/vpc-igws @API EIP DELETE /v3/{project_id}/geip/vpc-igws/{vpc_igw_id} @API EIP GET /v3/{project_id}/geip/vpc-igws/{vpc_igw_id} @API EIP PUT /v3/{project_id}/geip/vpc-igws/{vpc_igw_id} @API VPC GET /v1/{project_id}/routetables @API VPC GET /v1/{project_id}/routetables/{routetable_id}

func ResourceVpcBandWidthV1 added in v1.58.0

func ResourceVpcBandWidthV1() *schema.Resource

ResourceVpcBandWidthV1 Add resource bandwidth with update function calls v1 API to support provider which only published v1 API to update the bandwidth.

func ResourceVpcBandWidthV2

func ResourceVpcBandWidthV2() *schema.Resource

@API EIP POST /v2.0/{project_id}/bandwidths/change-to-period @API EIP PUT /v2.0/{project_id}/bandwidths/{ID} @API EIP PUT /v1/{project_id}/bandwidths/{ID} @API EIP DELETE /v2.0/{project_id}/bandwidths/{ID} @API EIP GET /v1/{project_id}/bandwidths/{id} @API EIP POST /v2.0/{project_id}/bandwidths @API BSS GET /v2/orders/customer-orders/details/{order_id} @API BSS POST /v2/orders/subscriptions/resources/unsubscribe @API BSS POST /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS DELETE /v2/orders/subscriptions/resources/autorenew/{instance_id}

func ResourceVpcEIPV1

func ResourceVpcEIPV1() *schema.Resource

In order to be compatible with other providers, keep the exposed function name (ResourceVpcEIPV1) unchanged. @API EIP GET /v1/{project_id}/publicips/{id} @API EIP GET /v3/{project_id}/eip/publicips/{id} @API EIP PUT /v1/{project_id}/publicips/{id} @API EIP DELETE /v1/{project_id}/publicips/{id} @API EIP POST /v2.0/{project_id}/publicips @API EIP POST /v1/{project_id}/publicips @API EIP POST /v2.0/{project_id}/publicips/change-to-period @API EIP POST /v2.0/{project_id}/publicips/{id}/tags/action @API EIP GET /v1/{project_id}/bandwidths/{id} @API EIP PUT /v1/{project_id}/bandwidths/{id} @API EIP PUT /v2.0/{project_id}/bandwidths/{ID} @API BSS GET /v2/orders/customer-orders/details/{order_id} @API BSS POST /v2/orders/subscriptions/resources/unsubscribe @API BSS POST /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS DELETE /v2/orders/subscriptions/resources/autorenew/{instance_id}

Types

type BandwidthType added in v1.43.0

type BandwidthType string // The bandwidth type bound by EIP.

type BgpType added in v1.43.0

type BgpType string // The BGP type of the public IP.

type ChargeMode added in v1.43.0

type ChargeMode string // The charging mode of the bandwidth.

type EipStatus added in v1.43.0

type EipStatus string // The current status of the EIP.

type IpVersion added in v1.43.0

type IpVersion int // The Version of the EIP protocol.

type NormalizeStatus added in v1.43.0

type NormalizeStatus string // The Normalized status value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL