Documentation
¶
Overview ¶
Use this data source to get all vm available zones.
Example Usage ¶
```hcl data "zenlayercloud_zec_zones" "all" { }
data "zenlayercloud_zec_zones" "hongkong" {
name_regex = "SEL*"
}
```
Index ¶
- Constants
- Variables
- func BuildDiskState(zecService *ZecService, diskId string, ctx context.Context, ...) *resource.StateChangeConf
- func BuildNatGatewayState(zecService ZecService, natGatewayId string, ctx context.Context, ...) *resource.StateChangeConf
- func BuildSnapshotState(zecService *ZecService, diskId string, ctx context.Context, ...) *resource.StateChangeConf
- func DataSourceZenlayerCloudBorderGateways() *schema.Resource
- func DataSourceZenlayerCloudCidrs() *schema.Resource
- func DataSourceZenlayerCloudEips() *schema.Resource
- func DataSourceZenlayerCloudZecAutoSnapshotPolicies() *schema.Resource
- func DataSourceZenlayerCloudZecDhcpOptionsSets() *schema.Resource
- func DataSourceZenlayerCloudZecDisks() *schema.Resource
- func DataSourceZenlayerCloudZecImages() *schema.Resource
- func DataSourceZenlayerCloudZecInstances() *schema.Resource
- func DataSourceZenlayerCloudZecNatGateway() *schema.Resource
- func DataSourceZenlayerCloudZecNatGatewayDnats() *schema.Resource
- func DataSourceZenlayerCloudZecNatGatewaySnats() *schema.Resource
- func DataSourceZenlayerCloudZecSnapshots() *schema.Resource
- func DataSourceZenlayerCloudZecSubnets() *schema.Resource
- func DataSourceZenlayerCloudZecVnics() *schema.Resource
- func DataSourceZenlayerCloudZecVpcRoutes() *schema.Resource
- func DataSourceZenlayerCloudZecVpcs() *schema.Resource
- func ResourceZenlayerCloudBorderGateway() *schema.Resource
- func ResourceZenlayerCloudBorderGatewayAssociation() *schema.Resource
- func ResourceZenlayerCloudEipAssociation() *schema.Resource
- func ResourceZenlayerCloudGlobalVpc() *schema.Resource
- func ResourceZenlayerCloudGlobalVpcRoute() *schema.Resource
- func ResourceZenlayerCloudZecCidr() *schema.Resource
- func ResourceZenlayerCloudZecDhcpOptionsSet() *schema.Resource
- func ResourceZenlayerCloudZecDhcpOptionsSetAttachment() *schema.Resource
- func ResourceZenlayerCloudZecDisk() *schema.Resource
- func ResourceZenlayerCloudZecDiskAttachment() *schema.Resource
- func ResourceZenlayerCloudZecElasticIP() *schema.Resource
- func ResourceZenlayerCloudZecInstance() *schema.Resource
- func ResourceZenlayerCloudZecSecurityGroup() *schema.Resource
- func ResourceZenlayerCloudZecSecurityGroupRuleSet() *schema.Resource
- func ResourceZenlayerCloudZecSnapshot() *schema.Resource
- func ResourceZenlayerCloudZecSnapshotCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceZenlayerCloudZecSnapshotDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceZenlayerCloudZecSnapshotPolicy() *schema.Resource
- func ResourceZenlayerCloudZecSnapshotPolicyAttachment() *schema.Resource
- func ResourceZenlayerCloudZecSnapshotRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceZenlayerCloudZecSnapshotUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceZenlayerCloudZecSubnet() *schema.Resource
- func ResourceZenlayerCloudZecVNic() *schema.Resource
- func ResourceZenlayerCloudZecVNicAttachment() *schema.Resource
- func ResourceZenlayerCloudZecVNicIPv4() *schema.Resource
- func ResourceZenlayerCloudZecVpcNatGateway() *schema.Resource
- func ResourceZenlayerCloudZecVpcNatGatewayDnat() *schema.Resource
- func ResourceZenlayerCloudZecVpcNatGatewaySnat() *schema.Resource
- func ResourceZenlayerCloudZecVpcSecurityGroupAttachment() *schema.Resource
- type BoarderGatewayFilter
- type CidrFilter
- type DhcpOptionsSetFilter
- type EipFilter
- type ImageFilter
- type SubnetFilter
- type VpcRouteFilter
- type ZecAutoSnapshotPolicyFilter
- type ZecDiskFilter
- type ZecInstancesFilter
- type ZecNatGatewayFilter
- type ZecNicFilter
- type ZecService
- func (s *ZecService) AddSubnetIpv6(ctx context.Context, subnetId string, ipv6Type string) error
- func (s *ZecService) DeleteBorderGateway(ctx context.Context, zbgId string) error
- func (s *ZecService) DeleteDiskById(ctx context.Context, diskId string) error
- func (s *ZecService) DeleteDnatEntry(ctx context.Context, dnatId string) error
- func (s *ZecService) DeleteInstance(ctx context.Context, instanceId string) error
- func (s *ZecService) DeleteNatGateway(ctx context.Context, natGatewayId string) error
- func (s *ZecService) DeleteSecurityGroupById(ctx context.Context, id string) error
- func (s *ZecService) DeleteSnapshot(ctx context.Context, snapshotId string) error
- func (s *ZecService) DeleteSnapshotPolicy(ctx context.Context, autoSnapshotPolicyId string) error
- func (s *ZecService) DeleteSnatEntry(ctx context.Context, snatId string) error
- func (s *ZecService) DeleteSubnet(ctx context.Context, subnetId string) error
- func (s *ZecService) DeleteVnicById(ctx context.Context, nicId string) error
- func (s *ZecService) DeleteVpc(ctx context.Context, vpcId string) error
- func (s *ZecService) DeleteVpcRoute(ctx context.Context, routeId string) error
- func (s *ZecService) DescribeAutoSnapshotPolicies(ctx context.Context, filter *ZecAutoSnapshotPolicyFilter) (policies []*zec2.AutoSnapshotPolicy, err error)
- func (s *ZecService) DescribeBoardGateways(filter *BoarderGatewayFilter) (zbgs []*zec2.ZbgInfo, err error)
- func (s *ZecService) DescribeBorderGatewayById(ctx context.Context, zbgId string) (*zec.ZbgInfo, error)
- func (s *ZecService) DescribeCidrById(ctx context.Context, cidrId string) (*zec2.CidrInfo, error)
- func (s *ZecService) DescribeCidrsByFilter(ctx context.Context, filter *CidrFilter) (cidrs []*zec2.CidrInfo, err error)
- func (s *ZecService) DescribeDhcpOptionsSetById(ctx context.Context, dhcpOptionsSetId string) (*zec2.DhcpOptionsSet, error)
- func (s *ZecService) DescribeDhcpOptionsSetsByFilter(ctx context.Context, filter *DhcpOptionsSetFilter) (dhcpOptionsSets []*zec2.DhcpOptionsSet, err error)
- func (s *ZecService) DescribeDiskById(ctx context.Context, diskId string) (*zec2.DiskInfo, error)
- func (s *ZecService) DescribeDisks(ctx context.Context, filter *ZecDiskFilter) (disks []*zec2.DiskInfo, err error)
- func (s *ZecService) DescribeEipById(ctx context.Context, eipId string) (*zec2.EipInfo, error)
- func (s *ZecService) DescribeEipsByFilter(ctx context.Context, filter *EipFilter) (eips []*zec2.EipInfo, err error)
- func (s *ZecService) DescribeImagesByFilter(filter *ImageFilter) (images []*zec2.Image, err error)
- func (s *ZecService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *zec2.InstanceInfo, err error)
- func (s *ZecService) DescribeInstancesByFilter(filter *ZecInstancesFilter) (instances []*zec2.InstanceInfo, err error)
- func (s *ZecService) DescribeNatGatewayById(ctx context.Context, natGatewayId string) (*zec2.NatGateway, error)
- func (s *ZecService) DescribeNatGatewayDetailById(ctx context.Context, natGatewayId string) (*zec2.DescribeNatGatewayDetailResponseParams, error)
- func (s *ZecService) DescribeNatGateways(ctx context.Context, filter *ZecNatGatewayFilter) (nats []*zec2.NatGateway, err error)
- func (s *ZecService) DescribeNicById(ctx context.Context, nicId string) (*zec2.NicInfo, error)
- func (s *ZecService) DescribeNics(ctx context.Context, filter *ZecNicFilter) (vnics []*zec2.NicInfo, err error)
- func (s *ZecService) DescribeSecurityGroupById(ctx context.Context, securityGroupId string) (securityGroup *zec2.SecurityGroupInfo, err error)
- func (s *ZecService) DescribeSecurityGroupRules(ctx context.Context, securityGroupId string) ([]*zec2.SecurityGroupRuleInfo, []*zec2.SecurityGroupRuleInfo, error)
- func (s *ZecService) DescribeSnapshotById(ctx context.Context, id string) (*zec.SnapshotInfo, error)
- func (s *ZecService) DescribeSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (*zec2.AutoSnapshotPolicy, error)
- func (s *ZecService) DescribeSnapshots(ctx context.Context, filter *ZecSnapshotFilter) (snapshots []*zec.SnapshotInfo, err error)
- func (s *ZecService) DescribeSubnetById(ctx context.Context, subnetId string) (*zec2.SubnetInfo, error)
- func (s *ZecService) DescribeSubnetsByFilter(ctx context.Context, filter *SubnetFilter) (subnets []*zec2.SubnetInfo, err error)
- func (s *ZecService) DescribeVpcById(ctx context.Context, vpcId string) (*zec2.VpcInfo, error)
- func (s *ZecService) DescribeVpcRouteById(ctx context.Context, routeId string) (*zec2.RouteInfo, error)
- func (s *ZecService) DescribeVpcRoutes(ctx context.Context, filter *VpcRouteFilter) (routes []*zec2.RouteInfo, err error)
- func (s *ZecService) DescribeVpcsByFilter(ctx context.Context, filter *ZecVpcFilter) (vpcs []*zec2.VpcInfo, err error)
- func (s *ZecService) DiskStateRefreshFunc(ctx context.Context, diskId string, failStates []string) resource.StateRefreshFunc
- func (s *ZecService) InstanceStateRefreshFunc(ctx context.Context, instanceId string, failStates []string) resource.StateRefreshFunc
- func (s *ZecService) ModifyBorderGateway(ctx context.Context, request *zec.ModifyBorderGatewaysAttributeRequest) error
- func (s *ZecService) ModifyRouteAttribute(ctx context.Context, routeId string, name string) error
- func (s *ZecService) ModifySecurityGroupName(ctx context.Context, securityGroupId string, name string) error
- func (s *ZecService) ModifySubnet(ctx context.Context, subnetId string, name string, cidr string) error
- func (s *ZecService) ModifyVNicAttribute(ctx context.Context, vnicId string, name string, securityGroupId string) error
- func (s *ZecService) ModifyVpcAttribute(ctx context.Context, request *zec2.ModifyVpcAttributeRequest) error
- func (s *ZecService) NatStateRefreshFunc(ctx context.Context, natGatewayId string, failStates []string) resource.StateRefreshFunc
- func (s *ZecService) ResizeDisk(ctx context.Context, diskId string, diskSize int) error
- func (s *ZecService) SnapshotStateRefreshFunc(ctx context.Context, snapshotId string, failStates []string) resource.StateRefreshFunc
- func (s *ZecService) StartInstance(ctx context.Context, instanceId string) error
- type ZecSnapshotFilter
- type ZecVpcFilter
Constants ¶
View Source
const ( INVALID_VPC_NOT_FOUND = "INVALID_VPC_NOT_FOUND" INVALID_DISK_NOT_FOUND = "INVALID_DISK_NOT_FOUND" INVALID_NIC_NOT_FOUND = "INVALID_NIC_NOT_FOUND" INVALID_VPC_ROUTE_NOT_FOUND = "INVALID_VPC_ROUTE_NOT_FOUND" INVALID_NAT_NOT_FOUND = "INVALID_NAT_NOT_FOUND" // ZecDiskStatusRecycle Disk Status ZecDiskStatusRecycle = "RECYCLED" ZecDiskStatusRecycling = "RECYCLING" ZecDiskStatusAttaching = "ATTACHING" ZecDiskStatusDetaching = "DETACHING" ZecDiskStatusCreating = "CREATING" ZecDiskStatusDeleting = "DELETING" ZecDiskStatusResizing = "CHANGING" ZecDiskStatusInUse = "IN_USE" ZecDiskStatusAvailable = "AVAILABLE" ZecDiskStatusFaileld = "FAILED" ZecEipStatusCreating = "CREATING" ZecEipStatusCreateFailed = "CREATE_FAILED" ZecEipStatusBINDED = "BINDED" ZecEipStatusAvailable = "UNBIND" ZecEipStatusDeleting = "DELETING" ZecEipStatusRecycle = "RECYCLED" ZecEipStatusRecycling = "RECYCLING" ZecInstanceStatusPending = "PENDING" ZecInstanceStatusDeloying = "DEPLOYING" ZecInstanceStatusCreateFailed = "CREATE_FAILED" ZecInstanceStatusReseting = "REBUILDING" ZecInstanceStatusResetFailed = "REINSTALL_FAILED" ZecInstanceStatusStopped = "STOPPED" ZecInstanceStatusRunning = "RUNNING" ZecInstanceStatusBooting = "BOOTING" ZecInstanceStatusStopping = "STOPPING" ZecInstanceStatusReleasing = "RELEASING" ZecInstanceStatusRecycle = "RECYCLE" ZecInstanceStatusRecycling = "RECYCLING" ZecInstanceStatusResizing = "RESIZING" ZecVnicStatusCreating = "PENDING" ZecVnicStatusAvailable = "AVAILABLE" ZecVnicStatusAttaching = "ATTACHING" ZecVnicStatusDetaching = "DETACHING" ZecVnicStatusDeleting = "DELETING" ZecVnicStatusCreateFailed = "CREATE_FAILED" ZecVnicStatusUsed = "USED" SnapshotFailed = "FAILED" SnapshotCreating = "CREATING" SnapshotAvailable = "AVAILABLE" SnapshotDeleting = "DELETING" CidrStatusCreating = "CREATING" CidrStatusAvailable = "AVAILABLE" CidrStatusRecycling = "RECYCLING" CidrStatusRecycled = "RECYCLED" CidrStatusDeleting = "DELETING" CidrStatusFailed = "FAILED" NatStatusCreating = "CREATING" NatStatusRunning = "RUNNING" NatStatusRecycled = "RECYCLED" NatStatusCreateFailed = "CREATE_FAILED" NatStatusReleasing = "RELEASING" )
Variables ¶
View Source
var ( InstanceOperatingStatus = []string{ ZecInstanceStatusPending, ZecInstanceStatusDeloying, ZecInstanceStatusReseting, ZecInstanceStatusBooting, ZecInstanceStatusStopping, ZecInstanceStatusReleasing, ZecInstanceStatusRecycling, ZecInstanceStatusResizing, } ImageTypes = []string{ "PUBLIC_IMAGE", "CUSTOM_IMAGE", } SecurityGroupRuleDirection = []string{ "ingress", "egress", } SecurityGroupRulePolicy = []string{ "accept", "drop", } )
Functions ¶
func BuildDiskState ¶
func BuildDiskState(zecService *ZecService, diskId string, ctx context.Context, d *schema.ResourceData) *resource.StateChangeConf
func BuildNatGatewayState ¶ added in v0.2.6
func BuildNatGatewayState(zecService ZecService, natGatewayId string, ctx context.Context, d *schema.ResourceData) *resource.StateChangeConf
func BuildSnapshotState ¶
func BuildSnapshotState(zecService *ZecService, diskId string, ctx context.Context, d *schema.ResourceData) *resource.StateChangeConf
func DataSourceZenlayerCloudCidrs ¶ added in v0.2.4
func DataSourceZenlayerCloudZecDhcpOptionsSets ¶ added in v0.2.18
func DataSourceZenlayerCloudZecNatGatewayDnats ¶ added in v0.2.6
func DataSourceZenlayerCloudZecNatGatewaySnats ¶ added in v0.2.6
func DataSourceZenlayerCloudZecVpcRoutes ¶ added in v0.2.6
func ResourceZenlayerCloudZecCidr ¶ added in v0.2.4
func ResourceZenlayerCloudZecDhcpOptionsSet ¶ added in v0.2.18
func ResourceZenlayerCloudZecDhcpOptionsSetAttachment ¶ added in v0.2.18
func ResourceZenlayerCloudZecSecurityGroupRuleSet ¶ added in v0.2.4
func ResourceZenlayerCloudZecSnapshotCreate ¶
func ResourceZenlayerCloudZecSnapshotCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceZenlayerCloudZecSnapshotDelete ¶
func ResourceZenlayerCloudZecSnapshotDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceZenlayerCloudZecSnapshotRead ¶
func ResourceZenlayerCloudZecSnapshotRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceZenlayerCloudZecSnapshotUpdate ¶
func ResourceZenlayerCloudZecSnapshotUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceZenlayerCloudZecVpcNatGatewayDnat ¶ added in v0.2.6
func ResourceZenlayerCloudZecVpcNatGatewaySnat ¶ added in v0.2.6
Types ¶
type BoarderGatewayFilter ¶
type CidrFilter ¶ added in v0.2.4
type DhcpOptionsSetFilter ¶ added in v0.2.18
type DhcpOptionsSetFilter struct {
// contains filtered or unexported fields
}
type ImageFilter ¶
type ImageFilter struct {
// contains filtered or unexported fields
}
type SubnetFilter ¶
type SubnetFilter struct {
RegionId string
// contains filtered or unexported fields
}
type VpcRouteFilter ¶ added in v0.2.6
type VpcRouteFilter struct {
// contains filtered or unexported fields
}
type ZecDiskFilter ¶
type ZecInstancesFilter ¶
type ZecNatGatewayFilter ¶
type ZecNicFilter ¶
type ZecService ¶
type ZecService struct {
// contains filtered or unexported fields
}
func (*ZecService) AddSubnetIpv6 ¶
func (*ZecService) DeleteBorderGateway ¶
func (s *ZecService) DeleteBorderGateway(ctx context.Context, zbgId string) error
func (*ZecService) DeleteDiskById ¶
func (s *ZecService) DeleteDiskById(ctx context.Context, diskId string) error
func (*ZecService) DeleteDnatEntry ¶ added in v0.2.6
func (s *ZecService) DeleteDnatEntry(ctx context.Context, dnatId string) error
func (*ZecService) DeleteInstance ¶
func (s *ZecService) DeleteInstance(ctx context.Context, instanceId string) error
func (*ZecService) DeleteNatGateway ¶ added in v0.2.6
func (s *ZecService) DeleteNatGateway(ctx context.Context, natGatewayId string) error
func (*ZecService) DeleteSecurityGroupById ¶
func (s *ZecService) DeleteSecurityGroupById(ctx context.Context, id string) error
func (*ZecService) DeleteSnapshot ¶
func (s *ZecService) DeleteSnapshot(ctx context.Context, snapshotId string) error
func (*ZecService) DeleteSnapshotPolicy ¶
func (s *ZecService) DeleteSnapshotPolicy(ctx context.Context, autoSnapshotPolicyId string) error
func (*ZecService) DeleteSnatEntry ¶ added in v0.2.6
func (s *ZecService) DeleteSnatEntry(ctx context.Context, snatId string) error
func (*ZecService) DeleteSubnet ¶
func (s *ZecService) DeleteSubnet(ctx context.Context, subnetId string) error
func (*ZecService) DeleteVnicById ¶
func (s *ZecService) DeleteVnicById(ctx context.Context, nicId string) error
func (*ZecService) DeleteVpc ¶
func (s *ZecService) DeleteVpc(ctx context.Context, vpcId string) error
func (*ZecService) DeleteVpcRoute ¶
func (s *ZecService) DeleteVpcRoute(ctx context.Context, routeId string) error
func (*ZecService) DescribeAutoSnapshotPolicies ¶
func (s *ZecService) DescribeAutoSnapshotPolicies(ctx context.Context, filter *ZecAutoSnapshotPolicyFilter) (policies []*zec2.AutoSnapshotPolicy, err error)
func (*ZecService) DescribeBoardGateways ¶
func (s *ZecService) DescribeBoardGateways(filter *BoarderGatewayFilter) (zbgs []*zec2.ZbgInfo, err error)
func (*ZecService) DescribeBorderGatewayById ¶
func (*ZecService) DescribeCidrById ¶ added in v0.2.4
func (*ZecService) DescribeCidrsByFilter ¶ added in v0.2.4
func (s *ZecService) DescribeCidrsByFilter(ctx context.Context, filter *CidrFilter) (cidrs []*zec2.CidrInfo, err error)
func (*ZecService) DescribeDhcpOptionsSetById ¶ added in v0.2.18
func (s *ZecService) DescribeDhcpOptionsSetById(ctx context.Context, dhcpOptionsSetId string) (*zec2.DhcpOptionsSet, error)
func (*ZecService) DescribeDhcpOptionsSetsByFilter ¶ added in v0.2.18
func (s *ZecService) DescribeDhcpOptionsSetsByFilter(ctx context.Context, filter *DhcpOptionsSetFilter) (dhcpOptionsSets []*zec2.DhcpOptionsSet, err error)
func (*ZecService) DescribeDiskById ¶
func (*ZecService) DescribeDisks ¶
func (s *ZecService) DescribeDisks(ctx context.Context, filter *ZecDiskFilter) (disks []*zec2.DiskInfo, err error)
func (*ZecService) DescribeEipById ¶
func (*ZecService) DescribeEipsByFilter ¶
func (*ZecService) DescribeImagesByFilter ¶
func (s *ZecService) DescribeImagesByFilter(filter *ImageFilter) (images []*zec2.Image, err error)
func (*ZecService) DescribeInstanceById ¶
func (s *ZecService) DescribeInstanceById(ctx context.Context, instanceId string) (instance *zec2.InstanceInfo, err error)
func (*ZecService) DescribeInstancesByFilter ¶
func (s *ZecService) DescribeInstancesByFilter(filter *ZecInstancesFilter) (instances []*zec2.InstanceInfo, err error)
func (*ZecService) DescribeNatGatewayById ¶
func (s *ZecService) DescribeNatGatewayById(ctx context.Context, natGatewayId string) (*zec2.NatGateway, error)
func (*ZecService) DescribeNatGatewayDetailById ¶ added in v0.2.6
func (s *ZecService) DescribeNatGatewayDetailById(ctx context.Context, natGatewayId string) (*zec2.DescribeNatGatewayDetailResponseParams, error)
func (*ZecService) DescribeNatGateways ¶
func (s *ZecService) DescribeNatGateways(ctx context.Context, filter *ZecNatGatewayFilter) (nats []*zec2.NatGateway, err error)
func (*ZecService) DescribeNicById ¶
func (*ZecService) DescribeNics ¶
func (s *ZecService) DescribeNics(ctx context.Context, filter *ZecNicFilter) (vnics []*zec2.NicInfo, err error)
func (*ZecService) DescribeSecurityGroupById ¶
func (s *ZecService) DescribeSecurityGroupById(ctx context.Context, securityGroupId string) (securityGroup *zec2.SecurityGroupInfo, err error)
func (*ZecService) DescribeSecurityGroupRules ¶ added in v0.2.4
func (s *ZecService) DescribeSecurityGroupRules(ctx context.Context, securityGroupId string) ([]*zec2.SecurityGroupRuleInfo, []*zec2.SecurityGroupRuleInfo, error)
func (*ZecService) DescribeSnapshotById ¶
func (s *ZecService) DescribeSnapshotById(ctx context.Context, id string) (*zec.SnapshotInfo, error)
func (*ZecService) DescribeSnapshotPolicyById ¶
func (s *ZecService) DescribeSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (*zec2.AutoSnapshotPolicy, error)
func (*ZecService) DescribeSnapshots ¶
func (s *ZecService) DescribeSnapshots(ctx context.Context, filter *ZecSnapshotFilter) (snapshots []*zec.SnapshotInfo, err error)
func (*ZecService) DescribeSubnetById ¶
func (s *ZecService) DescribeSubnetById(ctx context.Context, subnetId string) (*zec2.SubnetInfo, error)
func (*ZecService) DescribeSubnetsByFilter ¶
func (s *ZecService) DescribeSubnetsByFilter(ctx context.Context, filter *SubnetFilter) (subnets []*zec2.SubnetInfo, err error)
func (*ZecService) DescribeVpcById ¶
func (*ZecService) DescribeVpcRouteById ¶
func (*ZecService) DescribeVpcRoutes ¶ added in v0.2.6
func (s *ZecService) DescribeVpcRoutes(ctx context.Context, filter *VpcRouteFilter) (routes []*zec2.RouteInfo, err error)
func (*ZecService) DescribeVpcsByFilter ¶
func (s *ZecService) DescribeVpcsByFilter(ctx context.Context, filter *ZecVpcFilter) (vpcs []*zec2.VpcInfo, err error)
func (*ZecService) DiskStateRefreshFunc ¶
func (s *ZecService) DiskStateRefreshFunc(ctx context.Context, diskId string, failStates []string) resource.StateRefreshFunc
func (*ZecService) InstanceStateRefreshFunc ¶
func (s *ZecService) InstanceStateRefreshFunc(ctx context.Context, instanceId string, failStates []string) resource.StateRefreshFunc
func (*ZecService) ModifyBorderGateway ¶
func (s *ZecService) ModifyBorderGateway(ctx context.Context, request *zec.ModifyBorderGatewaysAttributeRequest) error
func (*ZecService) ModifyRouteAttribute ¶
func (*ZecService) ModifySecurityGroupName ¶
func (*ZecService) ModifySubnet ¶
func (*ZecService) ModifyVNicAttribute ¶
func (*ZecService) ModifyVpcAttribute ¶
func (s *ZecService) ModifyVpcAttribute(ctx context.Context, request *zec2.ModifyVpcAttributeRequest) error
func (*ZecService) NatStateRefreshFunc ¶ added in v0.2.6
func (s *ZecService) NatStateRefreshFunc(ctx context.Context, natGatewayId string, failStates []string) resource.StateRefreshFunc
func (*ZecService) ResizeDisk ¶
func (*ZecService) SnapshotStateRefreshFunc ¶
func (s *ZecService) SnapshotStateRefreshFunc(ctx context.Context, snapshotId string, failStates []string) resource.StateRefreshFunc
func (*ZecService) StartInstance ¶
func (s *ZecService) StartInstance(ctx context.Context, instanceId string) error
type ZecSnapshotFilter ¶
type ZecVpcFilter ¶
Source Files
¶
- data_source_zc_zec_border_gateways.go
- data_source_zc_zec_cidrs.go
- data_source_zc_zec_dhcp_options_sets.go
- data_source_zc_zec_disk_snapshot_policies.go
- data_source_zc_zec_disk_snapshots.go
- data_source_zc_zec_disks.go
- data_source_zc_zec_eips.go
- data_source_zc_zec_images.go
- data_source_zc_zec_instances.go
- data_source_zc_zec_nat_gateway_dnats.go
- data_source_zc_zec_nat_gateway_snats.go
- data_source_zc_zec_nat_gateways.go
- data_source_zc_zec_subnets.go
- data_source_zc_zec_vnics.go
- data_source_zc_zec_vpc_routes.go
- data_source_zc_zec_vpcs.go
- data_source_zc_zec_zones.go
- extension_zec.go
- resource_zc_zec_cidr.go
- resource_zc_zec_dhcp_options_set.go
- resource_zc_zec_dhcp_options_set_attachment.go
- resource_zc_zec_disk.go
- resource_zc_zec_disk_attachment.go
- resource_zc_zec_disk_snapshot.go
- resource_zc_zec_disk_snapshot_policy.go
- resource_zc_zec_disk_snapshot_policy_attachment.go
- resource_zc_zec_eip.go
- resource_zc_zec_eip_association.go
- resource_zc_zec_instance.go
- resource_zc_zec_nat_gateway.go
- resource_zc_zec_nat_gateway_dnat.go
- resource_zc_zec_nat_gateway_snat.go
- resource_zc_zec_security_group.go
- resource_zc_zec_security_group_rule_set.go
- resource_zc_zec_subnet.go
- resource_zc_zec_vnic.go
- resource_zc_zec_vnic_attachment.go
- resource_zc_zec_vnic_ipv4.go
- resource_zc_zec_vpc.go
- resource_zc_zec_vpc_border_gateway.go
- resource_zc_zec_vpc_border_gateway_attachment.go
- resource_zc_zec_vpc_route.go
- resource_zc_zec_vpc_security_group_attachment.go
- service_zenlayer_zec.go
Click to show internal directories.
Click to hide internal directories.