Documentation ¶
Index ¶
- Constants
- Variables
- func AddTags(client *ecs.Client, args *AddTagsArgs) error
- func DeleteBandwidthPackage(client *ecs.Client, args *DeleteBandwidthPackageArgs) error
- func DeleteNatGateway(client *ecs.Client, args *DeleteNatGatewayArgs) error
- func DescribeSnatTableEntries(client *ecs.Client, args *DescribeSnatTableEntriesArgs)
- func ModifyNatGatewayAttribute(client *ecs.Client, args *ModifyNatGatewayAttributeArgs) error
- func ModifyNatGatewaySpec(client *ecs.Client, args *ModifyNatGatewaySpecArgs) error
- func Provider() terraform.ResourceProvider
- func RemoveTags(client *ecs.Client, args *RemoveTagsArgs) error
- func String(v string) *string
- type AddTagsArgs
- type AliyunClient
- func (client *AliyunClient) DescribeEipAddress(allocationId string) (*ecs.EipAddressSetType, error)
- func (client *AliyunClient) DescribeImage(imageId string) (*ecs.ImageType, error)
- func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (*slb.LoadBalancerType, error)
- func (client *AliyunClient) DescribeNatGateway(natGatewayId string) (*NatGatewaySetType, error)
- func (client *AliyunClient) DescribeSecurity(securityGroupId string) (*ecs.DescribeSecurityGroupAttributeResponse, error)
- func (client *AliyunClient) DescribeSecurityGroupRule(securityGroupId, types, ip_protocol, port_range string) (*ecs.PermissionType, error)
- func (client *AliyunClient) DescribeVpc(vpcId string) (*ecs.VpcSetType, error)
- func (client *AliyunClient) DescribeZone(zoneID string) (*ecs.ZoneType, error)
- func (client *AliyunClient) DiskAvailable(zone *ecs.ZoneType, diskCategory ecs.DiskCategory) error
- func (client *AliyunClient) JoinSecurityGroups(instanceId string, securityGroupIds []string) error
- func (client *AliyunClient) LeaveSecurityGroups(instanceId string, securityGroupIds []string) error
- func (client *AliyunClient) QueryInstancesById(id string) (instance *ecs.InstanceAttributesType, err error)
- func (client *AliyunClient) QueryInstancesByIds(ids []string) (instances []ecs.InstanceAttributesType, err error)
- func (client *AliyunClient) QueryRouteEntry(routeTableId, cidrBlock, nextHopType, nextHopId string) (rn *ecs.RouteEntrySetType, err error)
- func (client *AliyunClient) QueryRouteTableById(routeTableId string) (rt *ecs.RouteTableSetType, err error)
- func (client *AliyunClient) QueryRouteTables(args *ecs.DescribeRouteTablesArgs) (routeTables []ecs.RouteTableSetType, err error)
- func (client *AliyunClient) QueryVswitchById(vpcId, vswitchId string) (vsw *ecs.VSwitchSetType, err error)
- func (client *AliyunClient) QueryVswitches(args *ecs.DescribeVSwitchesArgs) (vswitches []ecs.VSwitchSetType, err error)
- func (client *AliyunClient) ResourceAvailable(zone *ecs.ZoneType, resourceType ecs.ResourceType) error
- func (client *AliyunClient) RevokeSecurityGroup(args *ecs.RevokeSecurityGroupArgs) error
- type BandwidthPackageIdType
- type BandwidthPackageType
- type Config
- type CreateNatGatewayArgs
- type CreateNatGatewayResponse
- type DeleteBandwidthPackageArgs
- type DeleteBandwidthPackageResponse
- type DeleteNatGatewayArgs
- type DeleteNatGatewayResponse
- type DescribeBandwidthPackageType
- type DescribeBandwidthPackagesArgs
- type DescribeBandwidthPackagesResponse
- type DescribeNatGatewayResponse
- type DescribeNatGatewaysArgs
- type DescribeSnatTableEntriesArgs
- type ForwardTableIdType
- type GroupRuleDirection
- type GroupRuleIpProtocol
- type GroupRuleNicType
- type GroupRulePolicy
- type InstanceNetWork
- type Listener
- type ModifyNatGatewayAttributeArgs
- type ModifyNatGatewayAttributeResponse
- type ModifyNatGatewaySpecArgs
- type NatGatewaySetType
- type NatGatewaySpec
- type Protocal
- type RemoveTagsArgs
- type Tag
Constants ¶
View Source
const ( ClassicNet = InstanceNetWork("classic") VpcNet = InstanceNetWork("vpc") )
View Source
const ( Http = Protocal("http") Https = Protocal("https") Tcp = Protocal("tcp") Udp = Protocal("udp") )
Constants of protocal definition
View Source
const ( // common Notfound = "Not found" // ecs InstanceNotfound = "Instance.Notfound" // disk DiskIncorrectStatus = "IncorrectDiskStatus" DiskCreatingSnapshot = "DiskCreatingSnapshot" InstanceLockedForSecurity = "InstanceLockedForSecurity" // eip EipIncorrectStatus = "IncorrectEipStatus" InstanceIncorrectStatus = "IncorrectInstanceStatus" HaVipIncorrectStatus = "IncorrectHaVipStatus" // slb LoadBalancerNotFound = "InvalidLoadBalancerId.NotFound" // security_group InvalidInstanceIdAlreadyExists = "InvalidInstanceId.AlreadyExists" InvalidSecurityGroupIdNotFound = "InvalidSecurityGroupId.NotFound" SgDependencyViolation = "DependencyViolation" //Nat gateway NatGatewayInvalidRegionId = "Invalid.RegionId" DependencyViolationBandwidthPackages = "DependencyViolation.BandwidthPackages" // vswitch VswitcInvalidRegionId = "InvalidRegionId.NotFound" )
View Source
const ( GroupRuleIngress = GroupRuleDirection("ingress") GroupRuleEgress = GroupRuleDirection("egress") )
View Source
const ( GroupRuleTcp = GroupRuleIpProtocol("tcp") GroupRuleUdp = GroupRuleIpProtocol("udp") GroupRuleIcmp = GroupRuleIpProtocol("icmp") GroupRuleGre = GroupRuleIpProtocol("gre") GroupRuleAll = GroupRuleIpProtocol("all") )
View Source
const ( GroupRuleInternet = GroupRuleNicType("internet") GroupRuleIntranet = GroupRuleNicType("intranet") )
View Source
const ( GroupRulePolicyAccept = GroupRulePolicy("accept") GroupRulePolicyDrop = GroupRulePolicy("drop") )
View Source
const ( NatGatewaySmallSpec = NatGatewaySpec("Small") NatGatewayMiddleSpec = NatGatewaySpec("Middle") NatGatewayLargeSpec = NatGatewaySpec("Large") )
Variables ¶
ValidProtocals network protocal list
Functions ¶
func DeleteBandwidthPackage ¶
func DeleteBandwidthPackage(client *ecs.Client, args *DeleteBandwidthPackageArgs) error
func DeleteNatGateway ¶
func DeleteNatGateway(client *ecs.Client, args *DeleteNatGatewayArgs) error
func DescribeSnatTableEntries ¶
func DescribeSnatTableEntries(client *ecs.Client, args *DescribeSnatTableEntriesArgs)
func ModifyNatGatewayAttribute ¶
func ModifyNatGatewayAttribute(client *ecs.Client, args *ModifyNatGatewayAttributeArgs) error
func ModifyNatGatewaySpec ¶
func ModifyNatGatewaySpec(client *ecs.Client, args *ModifyNatGatewaySpecArgs) error
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a schema.Provider for alicloud
func RemoveTags ¶
func RemoveTags(client *ecs.Client, args *RemoveTagsArgs) error
Types ¶
type AddTagsArgs ¶
type AliyunClient ¶
AliyunClient of aliyun
func (*AliyunClient) DescribeEipAddress ¶
func (client *AliyunClient) DescribeEipAddress(allocationId string) (*ecs.EipAddressSetType, error)
func (*AliyunClient) DescribeImage ¶
func (client *AliyunClient) DescribeImage(imageId string) (*ecs.ImageType, error)
func (*AliyunClient) DescribeLoadBalancerAttribute ¶
func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (*slb.LoadBalancerType, error)
func (*AliyunClient) DescribeNatGateway ¶
func (client *AliyunClient) DescribeNatGateway(natGatewayId string) (*NatGatewaySetType, error)
func (*AliyunClient) DescribeSecurity ¶
func (client *AliyunClient) DescribeSecurity(securityGroupId string) (*ecs.DescribeSecurityGroupAttributeResponse, error)
func (*AliyunClient) DescribeSecurityGroupRule ¶
func (client *AliyunClient) DescribeSecurityGroupRule(securityGroupId, types, ip_protocol, port_range string) (*ecs.PermissionType, error)
func (*AliyunClient) DescribeVpc ¶
func (client *AliyunClient) DescribeVpc(vpcId string) (*ecs.VpcSetType, error)
func (*AliyunClient) DescribeZone ¶
func (client *AliyunClient) DescribeZone(zoneID string) (*ecs.ZoneType, error)
DescribeZone validate zoneId is valid in region
func (*AliyunClient) DiskAvailable ¶
func (client *AliyunClient) DiskAvailable(zone *ecs.ZoneType, diskCategory ecs.DiskCategory) error
func (*AliyunClient) JoinSecurityGroups ¶
func (client *AliyunClient) JoinSecurityGroups(instanceId string, securityGroupIds []string) error
todo: support syc
func (*AliyunClient) LeaveSecurityGroups ¶
func (client *AliyunClient) LeaveSecurityGroups(instanceId string, securityGroupIds []string) error
func (*AliyunClient) QueryInstancesById ¶
func (client *AliyunClient) QueryInstancesById(id string) (instance *ecs.InstanceAttributesType, err error)
func (*AliyunClient) QueryInstancesByIds ¶
func (client *AliyunClient) QueryInstancesByIds(ids []string) (instances []ecs.InstanceAttributesType, err error)
func (*AliyunClient) QueryRouteEntry ¶
func (client *AliyunClient) QueryRouteEntry(routeTableId, cidrBlock, nextHopType, nextHopId string) (rn *ecs.RouteEntrySetType, err error)
func (*AliyunClient) QueryRouteTableById ¶
func (client *AliyunClient) QueryRouteTableById(routeTableId string) (rt *ecs.RouteTableSetType, err error)
func (*AliyunClient) QueryRouteTables ¶
func (client *AliyunClient) QueryRouteTables(args *ecs.DescribeRouteTablesArgs) (routeTables []ecs.RouteTableSetType, err error)
func (*AliyunClient) QueryVswitchById ¶
func (client *AliyunClient) QueryVswitchById(vpcId, vswitchId string) (vsw *ecs.VSwitchSetType, err error)
func (*AliyunClient) QueryVswitches ¶
func (client *AliyunClient) QueryVswitches(args *ecs.DescribeVSwitchesArgs) (vswitches []ecs.VSwitchSetType, err error)
describe vswitch by param filters
func (*AliyunClient) ResourceAvailable ¶
func (client *AliyunClient) ResourceAvailable(zone *ecs.ZoneType, resourceType ecs.ResourceType) error
ResourceAvailable check resource available for zone
func (*AliyunClient) RevokeSecurityGroup ¶
func (client *AliyunClient) RevokeSecurityGroup(args *ecs.RevokeSecurityGroupArgs) error
type BandwidthPackageIdType ¶
type BandwidthPackageIdType struct {
BandwidthPackageId []string
}
type BandwidthPackageType ¶
type CreateNatGatewayArgs ¶
type CreateNatGatewayResponse ¶
type CreateNatGatewayResponse struct { common.Response NatGatewayId string ForwardTableIds ForwardTableIdType BandwidthPackageIds BandwidthPackageIdType }
func CreateNatGateway ¶
func CreateNatGateway(client *ecs.Client, args *CreateNatGatewayArgs) (resp *CreateNatGatewayResponse, err error)
CreateNatGateway creates Virtual Private Cloud
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&createvpc
type DeleteNatGatewayArgs ¶
type DescribeBandwidthPackageType ¶
type DescribeBandwidthPackageType struct { Bandwidth string BandwidthPackageId string IpCount string }
func DescribeBandwidthPackages ¶
func DescribeBandwidthPackages(client *ecs.Client, args *DescribeBandwidthPackagesArgs) ([]DescribeBandwidthPackageType, error)
type DescribeBandwidthPackagesResponse ¶
type DescribeBandwidthPackagesResponse struct { common.Response BandwidthPackages struct { BandwidthPackage []DescribeBandwidthPackageType } }
type DescribeNatGatewayResponse ¶
type DescribeNatGatewayResponse struct { common.Response common.PaginationResult NatGateways struct { NatGateway []NatGatewaySetType } }
type DescribeNatGatewaysArgs ¶
type ForwardTableIdType ¶
type ForwardTableIdType struct {
ForwardTableId []string
}
type GroupRuleDirection ¶
type GroupRuleDirection string
type GroupRuleIpProtocol ¶
type GroupRuleIpProtocol string
type GroupRuleNicType ¶
type GroupRuleNicType string
type GroupRulePolicy ¶
type GroupRulePolicy string
type InstanceNetWork ¶
type InstanceNetWork string
type ModifyNatGatewaySpecArgs ¶
type ModifyNatGatewaySpecArgs struct { RegionId common.Region NatGatewayId string Spec NatGatewaySpec }
type NatGatewaySetType ¶
type NatGatewaySetType struct { BusinessStatus string Description string BandwidthPackageIds BandwidthPackageIdType ForwardTableIds ForwardTableIdType InstanceChargeType string Name string NatGatewayId string RegionId common.Region Spec string Status string VpcId string }
func DescribeNatGateways ¶
func DescribeNatGateways(client *ecs.Client, args *DescribeNatGatewaysArgs) (natGateways []NatGatewaySetType, pagination *common.PaginationResult, err error)
type NatGatewaySpec ¶
type NatGatewaySpec string
type RemoveTagsArgs ¶
Source Files ¶
- common.go
- config.go
- data_source_alicloud_common.go
- data_source_alicloud_images.go
- data_source_alicloud_instance_types.go
- data_source_alicloud_regions.go
- data_source_alicloud_zones.go
- errors.go
- extension_ecs.go
- extension_nat_gateway.go
- extension_slb.go
- extension_tags.go
- provider.go
- resource_alicloud_disk.go
- resource_alicloud_disk_attachment.go
- resource_alicloud_eip.go
- resource_alicloud_eip_association.go
- resource_alicloud_instance.go
- resource_alicloud_nat_gateway.go
- resource_alicloud_security_group.go
- resource_alicloud_security_group_rule.go
- resource_alicloud_slb.go
- resource_alicloud_slb_attachment.go
- resource_alicloud_vpc.go
- resource_alicloud_vroute_entry.go
- resource_alicloud_vswitch.go
- service_alicloud_ecs.go
- service_alicloud_slb.go
- service_alicloud_vpc.go
- struct_security_groups.go
- tags.go
- validators.go
Click to show internal directories.
Click to hide internal directories.