Skip to content

New Resource: alicloud_alidns_cloud_gtm_monitor_template.#9690

Merged
ChenHanZhang merged 1 commit into
aliyun:masterfrom
LCLSpring:feature/Alidns-CloudGtmMonitorTemplate-update-1774524954803
Apr 23, 2026
Merged

New Resource: alicloud_alidns_cloud_gtm_monitor_template.#9690
ChenHanZhang merged 1 commit into
aliyun:masterfrom
LCLSpring:feature/Alidns-CloudGtmMonitorTemplate-update-1774524954803

Conversation

@LCLSpring
Copy link
Copy Markdown
Collaborator

@LCLSpring LCLSpring commented Apr 23, 2026

Summary

Adds alicloud_alidns_cloud_gtm_monitor_template — a reusable Cloud GTM health-check probe template (protocol / interval / failure thresholds / probe nodes) that can later be attached to Cloud GTM address pools.

What's in the PR

  • Resource (alicloud/resource_alicloud_alidns_cloud_gtm_monitor_template.go) — full Create / Read / Update / Delete / Import lifecycle.
  • Service layer (alicloud/service_alicloud_alidns_v2.go) — DescribeAlidnsCloudGtmMonitorTemplate + state-refresh helpers.
  • Registration in alicloud/provider.go.
  • Acceptance tests — 4 cases covering the attribute matrix across ping / tcp / http / https protocols and IPv4 / IPv6: basic12684, basic12685, basic12690, basic12691.
  • Documentation (website/docs/r/alidns_cloud_gtm_monitor_template.html.markdown) — written to render cleanly on the Terraform Registry and aligned with the actual schema:
    • isp_city_nodes labelled (Required, Set) to match schema.TypeSet.
    • Enum values match schema validators (evaluation_count: 0/1/2/3; failure_rate: 0/20/50/80/100; interval: 15/60/300/900/1800/3600; timeout: 2000/3000/5000/10000).
    • extend_info documented as a dedicated section split by protocol (http/https, ping, tcp) so the nested JSON fields render as proper GFM lists on the Registry.
    • extend_info labelled (Optional, Computed) to match Computed: true in the schema.

Test plan

  • IntegrationTest CI job passes all 4 acceptance cases
  • DocsExampleTest CI job passes (init → plan → apply → no-drift → import → apply import plan → destroy)

@LCLSpring LCLSpring force-pushed the feature/Alidns-CloudGtmMonitorTemplate-update-1774524954803 branch 3 times, most recently from 60704ac to 6b17e3b Compare April 23, 2026 11:31
@LCLSpring LCLSpring force-pushed the feature/Alidns-CloudGtmMonitorTemplate-update-1774524954803 branch from 6b17e3b to b0802cd Compare April 23, 2026 12:00
Copy link
Copy Markdown
Collaborator

@ChenHanZhang ChenHanZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@ChenHanZhang ChenHanZhang merged commit bfc2a27 into aliyun:master Apr 23, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants