Documentation ¶
Index ¶
- Constants
- func DataSourceBandWidth() *schema.Resource
- func DataSourceBandWidths() *schema.Resource
- func DataSourceGlobalEIPAccessSites() *schema.Resource
- func DataSourceGlobalEIPPools() *schema.Resource
- func DataSourceGlobalEIPs() *schema.Resource
- func DataSourceGlobalInternetBandwidths() *schema.Resource
- func DataSourceVPCInternetGateways() *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 ResourceGlobalEIPAssociate() *schema.Resource
- func ResourceGlobalInternetBandwidth() *schema.Resource
- func ResourceVPCInternetGateway() *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 ¶
@API EIP GET /v1/{project_id}/bandwidths
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 DataSourceGlobalEIPs ¶ added in v1.62.0
@API EIP GET /v3/{domain_id}/global-eips
func DataSourceGlobalInternetBandwidths ¶ added in v1.62.0
@API EIP GET /v3/{domain_id}/geip/internet-bandwidths
func DataSourceVPCInternetGateways ¶ added in v1.62.0
@API EIP GET /v3/{project_id}/geip/vpc-igws
func DataSourceVpcEip ¶
@API EIP GET /v1/{project_id}/publicips
func DataSourceVpcEips ¶
@API EIP GET /v2.0/{project_id}/publicips/{id}/tags @API EIP GET /v1/{project_id}/publicips
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
@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 ¶
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
@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
@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
@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
@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
ResourceVpcBandWidthV1 Add resource bandwidth with update function calls v1 API to support provider which only published v1 API to update the bandwidth.
func ResourceVpcBandWidthV2 ¶
@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 ¶
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 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_global_eips.go
- data_source_huaweicloud_global_internet_bandwidths.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
- data_source_huaweicloud_vpc_internet_gateways.go
- resource_huaweicloud_global_eip.go
- resource_huaweicloud_global_eip_associate.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
- resource_huaweicloud_vpc_internet_gateway.go