Documentation
¶
Index ¶
- func ResourceTencentCloudGa2AccelerateArea() *schema.Resource
- func ResourceTencentCloudGa2EndpointGroup() *schema.Resource
- func ResourceTencentCloudGa2ForwardingPolicy() *schema.Resource
- func ResourceTencentCloudGa2ForwardingRule() *schema.Resource
- func ResourceTencentCloudGa2GlobalAccelerator() *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) 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 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 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) 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.