Documentation ¶
Index ¶
- Constants
- func DataSourceDnatRules() *schema.Resource
- func DataSourcePrivateDnatRules() *schema.Resource
- func DataSourcePrivateGateways() *schema.Resource
- func DataSourcePrivateSnatRules() *schema.Resource
- func DataSourcePrivateTransitIps() *schema.Resource
- func DataSourcePublicGateway() *schema.Resource
- func DataSourcePublicGateways() *schema.Resource
- func DataSourceSnatRules() *schema.Resource
- func ReadPublicGateway(client *golangsdk.ServiceClient, gatewayID string) (interface{}, error)
- func ResourcePrivateDnatRule() *schema.Resource
- func ResourcePrivateGateway() *schema.Resource
- func ResourcePrivateSnatRule() *schema.Resource
- func ResourcePrivateTransitIp() *schema.Resource
- func ResourcePublicDnatRule() *schema.Resource
- func ResourcePublicGateway() *schema.Resource
- func ResourcePublicSnatRule() *schema.Resource
- type PublicSpecType
- type SourceType
Constants ¶
const ( PrivateSpecTypeSmall string = "Small" PrivateSpecTypeMedium string = "Medium" PrivateSpecTypeLarge string = "Large" PrivateSpecTypeExtraLarge string = "Extra-Large" )
Variables ¶
This section is empty.
Functions ¶
func DataSourceDnatRules ¶ added in v1.62.0
@API NAT GET /v2/{project_id}/dnat_rules
func DataSourcePrivateDnatRules ¶ added in v1.61.0
@API NAT GET /v3/{project_id}/private-nat/dnat-rules
func DataSourcePrivateGateways ¶ added in v1.59.0
@API NAT GET /v3/{project_id}/private-nat/gateways
func DataSourcePrivateSnatRules ¶ added in v1.61.0
@API NAT GET /v3/{project_id}/private-nat/snat-rules
func DataSourcePrivateTransitIps ¶ added in v1.60.0
@API NAT GET /v3/{project_id}/private-nat/transit-ips
func DataSourcePublicGateway ¶
@API NAT GET /v2/{project_id}/nat_gateways
func DataSourcePublicGateways ¶ added in v1.59.1
@API NAT GET /v2/{project_id}/nat_gateways
func DataSourceSnatRules ¶ added in v1.62.0
@API NAT GET /v2/{project_id}/snat_rules
func ReadPublicGateway ¶ added in v1.69.1
func ReadPublicGateway(client *golangsdk.ServiceClient, gatewayID string) (interface{}, error)
func ResourcePrivateDnatRule ¶ added in v1.47.0
@API NAT POST /v3/{project_id}/private-nat/dnat-rules @API NAT GET /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} @API NAT PUT /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} @API NAT DELETE /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id}
func ResourcePrivateGateway ¶ added in v1.46.0
@API NAT POST /v3/{project_id}/private-nat/gateways @API NAT GET /v3/{project_id}/private-nat/gateways/{gateway_id} @API NAT PUT /v3/{project_id}/private-nat/gateways/{gateway_id} @API NAT DELETE /v3/{project_id}/private-nat/gateways/{gateway_id} @API NAT POST /v3/{project_id}/private-nat-gateways/{resource_id}/tags/action
func ResourcePrivateSnatRule ¶ added in v1.47.0
@API NAT POST /v3/{project_id}/private-nat/snat-rules @API NAT GET /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} @API NAT PUT /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} @API NAT DELETE /v3/{project_id}/private-nat/snat-rules/{snat_rule_id}
func ResourcePrivateTransitIp ¶ added in v1.46.0
@API NAT POST /v3/{project_id}/private-nat/transit-ips @API NAT GET /v3/{project_id}/private-nat/transit-ips/{transit_ip_id} @API NAT DELETE /v3/{project_id}/private-nat/transit-ips/{transit_ip_id} @API NAT POST /v3/{project_id}/transit-ips/{resource_id}/tags/action
func ResourcePublicDnatRule ¶
@API NAT POST /v2/{project_id}/dnat_rules @API NAT GET /v2/{project_id}/dnat_rules/{dnat_rule_id} @API NAT PUT /v2/{project_id}/dnat_rules/{dnat_rule_id} @API NAT DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/dnat_rules/{dnat_rule_id}
func ResourcePublicGateway ¶
@API NAT POST /v2/{project_id}/nat_gateways @API NAT GET /v2/{project_id}/nat_gateways/{nat_gateway_id} @API NAT PUT /v2/{project_id}/nat_gateways/{nat_gateway_id} @API NAT DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id} @API NAT POST /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags/action @API NAT GET /v2.0/{project_id}/nat_gateways/{nat_gateway_id}/tags
func ResourcePublicSnatRule ¶
@API NAT POST /v2/{project_id}/snat_rules @API NAT GET /v2/{project_id}/snat_rules/{snat_rule_id} @API NAT PUT /v2/{project_id}/snat_rules/{snat_rule_id} @API NAT DELETE /v2/{project_id}/nat_gateways/{nat_gateway_id}/snat_rules/{snat_rule_id} @API EIP GET /v1/{project_id}/publicips/{publicip_id}
Types ¶
type PublicSpecType ¶
type PublicSpecType string
const ( PublicSpecTypeSmall PublicSpecType = "1" PublicSpecTypeMedium PublicSpecType = "2" PublicSpecTypeLarge PublicSpecType = "3" PublicSpecTypeExtraLarge PublicSpecType = "4" )
type SourceType ¶
type SourceType int
const ( SourceTypeVpc SourceType = 0 SourceTypeDc SourceType = 1 )
Source Files ¶
- data_source_huaweicloud_nat_dnat_rules.go
- data_source_huaweicloud_nat_gateway.go
- data_source_huaweicloud_nat_gateways.go
- data_source_huaweicloud_nat_private_dnat_rules.go
- data_source_huaweicloud_nat_private_gateways.go
- data_source_huaweicloud_nat_private_snat_rules.go
- data_source_huaweicloud_nat_private_transit_ips.go
- data_source_huaweicloud_nat_snat_rules.go
- resource_huaweicloud_nat_dnat_rule.go
- resource_huaweicloud_nat_gateway.go
- resource_huaweicloud_nat_private_dnat_rule.go
- resource_huaweicloud_nat_private_gateway.go
- resource_huaweicloud_nat_private_snat_rule.go
- resource_huaweicloud_nat_private_transit_ip.go
- resource_huaweicloud_nat_snat_rule.go