Documentation ¶
Index ¶
- Constants
- func DataSourceBandWidth() *schema.Resource
- func DataSourceBandWidths() *schema.Resource
- func DataSourceGlobalEIPAccessSites() *schema.Resource
- func DataSourceGlobalEIPPools() *schema.Resource
- func DataSourceVpcEip() *schema.Resource
- func DataSourceVpcEips() *schema.Resource
- func NormalizeEipStatus(status string) string
- func ResourceBandWidthAssociate() *schema.Resource
- func ResourceEIPAssociate() *schema.Resource
- func ResourceGlobalEIP() *schema.Resource
- func ResourceGlobalInternetBandwidth() *schema.Resource
- func ResourceVpcBandWidthV1() *schema.Resource
- func ResourceVpcBandWidthV2() *schema.Resource
- func ResourceVpcEIPV1() *schema.Resource
- type BandwidthType
- type BgpType
- type ChargeMode
- type EipStatus
- type IpVersion
- type NormalizeStatus
Constants ¶
const ( DefaultBandWidthChargeMode = "bandwidth" DefaultBandWidthSize = 5 )
const ( BgpTypeDynamic BgpType = "5_bgp" // Dynamic BGP IpVersionV4 IpVersion = 4 // IPv4 IpVersionV6 IpVersion = 6 // IPv6 BandwidthTypeDedicated BandwidthType = "PER" // Dedicated 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 DataSourceBandWidths ¶ added in v1.61.0
@API EIP GET /v1/{project_id}/bandwidths
func DataSourceGlobalEIPAccessSites ¶ added in v1.61.0
@API EIP GET /v3/{domain_id}/geip/access-sites
func DataSourceGlobalEIPPools ¶ added in v1.61.0
@API EIP GET /v3/{domain_id}/geip/geip-pools
func DataSourceVpcEip ¶
func DataSourceVpcEips ¶
func NormalizeEipStatus ¶ added in v1.43.0
NormalizeEipStatus is a method to change an incomprehensible status into an easy-to-understand status.
func ResourceBandWidthAssociate ¶ added in v1.51.0
func ResourceEIPAssociate ¶
ResourceEIPAssociate is the impl for huaweicloud_vpc_eip_associate resource
func ResourceGlobalEIP ¶ added in v1.61.0
@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 ResourceGlobalInternetBandwidth ¶ added in v1.61.0
@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 ResourceVpcBandWidthV1 ¶ added in v1.58.0
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 ResourceVpcEIPV1 ¶
In order to be compatible with other providers, keep the exposed function name (ResourceVpcEIPV1) unchanged.
Types ¶
type BandwidthType ¶ added in v1.43.0
type BandwidthType string // The bandwidth type bound by EIP.
type ChargeMode ¶ added in v1.43.0
type ChargeMode string // The charging mode of the bandwidth.
type NormalizeStatus ¶ added in v1.43.0
type NormalizeStatus string // The Normalized status value.
Source Files ¶
- data_source_huaweicloud_global_eip_access_sites.go
- data_source_huaweicloud_global_eip_pools.go
- data_source_huaweicloud_vpc_bandwidth.go
- data_source_huaweicloud_vpc_bandwidths.go
- data_source_huaweicloud_vpc_eip.go
- data_source_huaweicloud_vpc_eips.go
- resource_huaweicloud_global_eip.go
- resource_huaweicloud_global_internet_bandwidth.go
- resource_huaweicloud_vpc_bandwidth.go
- resource_huaweicloud_vpc_bandwidth_associate.go
- resource_huaweicloud_vpc_bandwidth_v1.go
- resource_huaweicloud_vpc_eip.go
- resource_huaweicloud_vpc_eip_associate.go