Documentation
¶
Index ¶
- func IsGa2ResourceNotFoundError(err error) bool
- func ResourceTencentCloudGa2AccelerateArea() *schema.Resource
- func ResourceTencentCloudGa2EndpointGroup() *schema.Resource
- func ResourceTencentCloudGa2ForwardingPolicy() *schema.Resource
- func ResourceTencentCloudGa2ForwardingRule() *schema.Resource
- func ResourceTencentCloudGa2GlobalAccelerator() *schema.Resource
- func ResourceTencentCloudGa2GlobalAcceleratorAclPolicy() *schema.Resource
- func ResourceTencentCloudGa2GlobalAcceleratorAclRule() *schema.Resource
- func ResourceTencentCloudGa2GlobalAcceleratorAclRuleSet() *schema.Resource
- func ResourceTencentCloudGa2Listener() *schema.Resource
- type Ga2Service
- func (me *Ga2Service) DescribeGa2AccelerateAreaById(ctx context.Context, gaId, areaId string) (*ga2v20250115.AcceleratorAreas, error)
- func (me *Ga2Service) DescribeGa2AccelerateAreaByRegion(ctx context.Context, gaId, region string) (*ga2v20250115.AcceleratorAreas, error)
- func (me *Ga2Service) DescribeGa2EndpointGroupById(ctx context.Context, gaId, listenerId, egId string) (*ga2v20250115.EndpointGroupConfigurationSet, error)
- func (me *Ga2Service) DescribeGa2ForwardingPolicyById(ctx context.Context, gaId, listenerId, policyId string) (*ga2v20250115.ForwardingPolicySet, error)
- func (me *Ga2Service) DescribeGa2ForwardingRuleById(ctx context.Context, gaId, listenerId, policyId, ruleId string) (*ga2v20250115.ForwardingRuleSet, error)
- func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclPolicyById(ctx context.Context, gaId, policyId string) (*ga2v20250115.GlobalAcceleratorAclPolicies, error)
- func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclRuleById(ctx context.Context, policyId, ruleId string) (*ga2v20250115.GlobalAcceleratorAclRuleSet, error)
- func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclRulesByPolicyId(ctx context.Context, policyId string) ([]*ga2v20250115.GlobalAcceleratorAclRuleSet, error)
- func (me *Ga2Service) DescribeGa2GlobalAcceleratorById(ctx context.Context, gaId string) (*ga2v20250115.GlobalAcceleratorSet, error)
- func (me *Ga2Service) DescribeGa2ListenerById(ctx context.Context, gaId, listenerId string) (*ga2v20250115.ListenerSet, error)
- func (me *Ga2Service) WaitForGa2TaskFinish(ctx context.Context, taskId string, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGa2ResourceNotFoundError ¶ added in v1.83.16
IsGa2ResourceNotFoundError checks whether the given error is an SDK error with code "ResourceNotFound". This is used by resource Read functions to distinguish "resource does not exist" from other errors.
func ResourceTencentCloudGa2AccelerateArea ¶ added in v1.83.5
ResourceTencentCloudGa2AccelerateArea manages a single Tencent Cloud GA2 acceleration region.
All write APIs (CreateAccelerateAreas / ModifyAccelerateAreas / DeleteAccelerateAreas) are asynchronous: each returns a TaskId that must be polled via DescribeTaskResult until Status == "SUCCESS". CreateAccelerateAreas does NOT return the generated AcceleratorAreaId, so after the create task succeeds the resource resolves it via DescribeAccelerateAreas keyed on the natural key (GlobalAcceleratorId, AccelerateRegion).
func ResourceTencentCloudGa2ForwardingPolicy ¶ added in v1.83.6
func ResourceTencentCloudGa2ForwardingRule ¶ added in v1.83.5
ResourceTencentCloudGa2ForwardingRule manages a Tencent Cloud GA2 layer-7 forwarding rule.
All write APIs (CreateForwardingRule / ModifyForwardingRule / DeleteForwardingRule) are asynchronous: each returns a TaskId that must be polled via DescribeTaskResult until Status == "SUCCESS" before this resource considers the operation complete.
func ResourceTencentCloudGa2GlobalAccelerator ¶ added in v1.83.5
ResourceTencentCloudGa2GlobalAccelerator manages a Tencent Cloud GA2 global accelerator instance.
All write APIs (CreateGlobalAccelerator / ModifyGlobalAccelerator / DeleteGlobalAccelerator) are asynchronous: each returns a TaskId that must be polled via DescribeTaskResult until Status == "SUCCESS" before this resource considers the operation complete.
func ResourceTencentCloudGa2GlobalAcceleratorAclPolicy ¶ added in v1.83.16
func ResourceTencentCloudGa2GlobalAcceleratorAclRule ¶ added in v1.83.16
func ResourceTencentCloudGa2GlobalAcceleratorAclRuleSet ¶ added in v1.83.17
func ResourceTencentCloudGa2Listener ¶ added in v1.83.5
ResourceTencentCloudGa2Listener manages a Tencent Cloud GA2 listener.
All write APIs (CreateListener / ModifyListener / DeleteListener) are asynchronous: each returns a TaskId that must be polled via DescribeTaskResult until Status == "SUCCESS" before this resource considers the operation complete.
Types ¶
type Ga2Service ¶
type Ga2Service struct {
// contains filtered or unexported fields
}
Ga2Service wraps the GA2 v20250115 SDK client for the provider.
func NewGa2Service ¶
func NewGa2Service(client *connectivity.TencentCloudClient) Ga2Service
NewGa2Service constructs a Ga2Service.
func (*Ga2Service) DescribeGa2AccelerateAreaById ¶ added in v1.83.5
func (me *Ga2Service) DescribeGa2AccelerateAreaById(ctx context.Context, gaId, areaId string) (*ga2v20250115.AcceleratorAreas, error)
DescribeGa2AccelerateAreaById queries an acceleration region by its (gaId, areaId) tuple. Returns (nil, nil) when the acceleration region does not exist.
func (*Ga2Service) DescribeGa2AccelerateAreaByRegion ¶ added in v1.83.5
func (me *Ga2Service) DescribeGa2AccelerateAreaByRegion(ctx context.Context, gaId, region string) (*ga2v20250115.AcceleratorAreas, error)
DescribeGa2AccelerateAreaByRegion queries an acceleration region by its (gaId, region) tuple. This is used on Create to resolve the server-generated AcceleratorAreaId, because CreateAccelerateAreas only returns a TaskId. Returns (nil, nil) when not found.
func (*Ga2Service) DescribeGa2EndpointGroupById ¶
func (me *Ga2Service) DescribeGa2EndpointGroupById(ctx context.Context, gaId, listenerId, egId string) (*ga2v20250115.EndpointGroupConfigurationSet, error)
DescribeGa2EndpointGroupById queries an endpoint group by its three identifying IDs. Returns (nil, nil) when the endpoint group does not exist.
func (*Ga2Service) DescribeGa2ForwardingPolicyById ¶ added in v1.83.6
func (me *Ga2Service) DescribeGa2ForwardingPolicyById(ctx context.Context, gaId, listenerId, policyId string) (*ga2v20250115.ForwardingPolicySet, error)
DescribeGa2ForwardingPolicyById queries a forwarding policy by its (gaId, listenerId, policyId) tuple. Returns (nil, nil) when the policy does not exist.
Note: DescribeForwardingPolicy is keyed by (GlobalAcceleratorId, ListenerId) and lacks a per-policy filter slot. We paginate through every policy under the listener and match `ForwardingPolicyId` strictly client-side.
func (*Ga2Service) DescribeGa2ForwardingRuleById ¶ added in v1.83.5
func (me *Ga2Service) DescribeGa2ForwardingRuleById(ctx context.Context, gaId, listenerId, policyId, ruleId string) (*ga2v20250115.ForwardingRuleSet, error)
DescribeGa2ForwardingRuleById queries a forwarding rule by its (gaId, listenerId, policyId, ruleId) tuple. Returns (nil, nil) when the rule does not exist.
Note: DescribeForwardingRule is keyed by (GlobalAcceleratorId, ListenerId, ForwardingPolicyId) and lacks a per-rule filter slot. We paginate through every rule under the policy and match `ForwardingRuleId` strictly client-side.
func (*Ga2Service) DescribeGa2GlobalAcceleratorAclPolicyById ¶ added in v1.83.16
func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclPolicyById(ctx context.Context, gaId, policyId string) (*ga2v20250115.GlobalAcceleratorAclPolicies, error)
DescribeGa2GlobalAcceleratorAclPolicyById queries an ACL policy by its (gaId, policyId) tuple. Returns (nil, nil) when the policy does not exist.
Note: DescribeGlobalAcceleratorAclPolicies is keyed by GlobalAcceleratorId and lacks a per-policy filter slot. We paginate through every policy under the accelerator and match `GlobalAcceleratorAclPolicyId` strictly client-side.
func (*Ga2Service) DescribeGa2GlobalAcceleratorAclRuleById ¶ added in v1.83.16
func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclRuleById(ctx context.Context, policyId, ruleId string) (*ga2v20250115.GlobalAcceleratorAclRuleSet, error)
DescribeGa2GlobalAcceleratorAclRuleById queries an ACL rule by its (policyId, ruleId) tuple. Returns (nil, nil) when the rule does not exist.
Note: DescribeGlobalAcceleratorAclRules is keyed by GlobalAcceleratorAclPolicyId only and lacks a per-rule filter slot. We paginate through every rule under the policy and match GlobalAcceleratorAclRuleId strictly client-side.
func (*Ga2Service) DescribeGa2GlobalAcceleratorAclRulesByPolicyId ¶ added in v1.83.17
func (me *Ga2Service) DescribeGa2GlobalAcceleratorAclRulesByPolicyId(ctx context.Context, policyId string) ([]*ga2v20250115.GlobalAcceleratorAclRuleSet, error)
DescribeGa2GlobalAcceleratorAclRulesByPolicyId returns the full set of ACL rules under the given ACL policy id. It paginates DescribeGlobalAcceleratorAclRules with Limit=200 (the documented maximum) and aggregates every GlobalAcceleratorAclRuleSet item across pages. If response.Response is nil on any page it returns an error rather than silently returning an empty slice, so that real API failures are surfaced to the caller.
func (*Ga2Service) DescribeGa2GlobalAcceleratorById ¶ added in v1.83.5
func (me *Ga2Service) DescribeGa2GlobalAcceleratorById(ctx context.Context, gaId string) (*ga2v20250115.GlobalAcceleratorSet, error)
DescribeGa2GlobalAcceleratorById queries a global accelerator instance by its ID. Returns (nil, nil) when the instance does not exist.
func (*Ga2Service) DescribeGa2ListenerById ¶ added in v1.83.5
func (me *Ga2Service) DescribeGa2ListenerById(ctx context.Context, gaId, listenerId string) (*ga2v20250115.ListenerSet, error)
DescribeGa2ListenerById queries a listener by its (gaId, listenerId) tuple. Returns (nil, nil) when the listener does not exist.
func (*Ga2Service) WaitForGa2TaskFinish ¶
func (me *Ga2Service) WaitForGa2TaskFinish(ctx context.Context, taskId string, timeout time.Duration) error
WaitForGa2TaskFinish polls DescribeTaskResult until the task reaches "SUCCESS" or the given timeout elapses. The timeout is supplied by the caller because different async operations (create/modify/delete on different resource types) may require very different waiting budgets.
Source Files
¶
- resource_tc_ga2_accelerate_area.go
- resource_tc_ga2_endpoint_group.go
- resource_tc_ga2_forwarding_policy.go
- resource_tc_ga2_forwarding_rule.go
- resource_tc_ga2_global_accelerator.go
- resource_tc_ga2_global_accelerator_acl_policy.go
- resource_tc_ga2_global_accelerator_acl_rule.go
- resource_tc_ga2_global_accelerator_acl_rule_set.go
- resource_tc_ga2_listener.go
- service_tencentcloud_ga2.go