published on Sunday, May 10, 2026 by Pulumi
published on Sunday, May 10, 2026 by Pulumi
Provides a Alidns Cloud Gtm Address resource.
A Cloud GTM address represents an individual service endpoint (IPv4, IPv6, or domain name) that can be grouped into a Cloud GTM address pool. Each address carries its own health-check configuration — one or more probe tasks that reference Cloud GTM monitor templates — so that Cloud GTM can determine whether the endpoint is available before returning it in DNS responses.
For information about Alidns Cloud Gtm Address and how to use it, see What is Cloud Gtm Address.
NOTE: Available since v1.277.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const tcp = new alicloud.alidnscloudgtm.MonitorTemplate("tcp", {
name: `${name}-tcp`,
protocol: "tcp",
ipVersion: "IPv4",
interval: "60",
timeout: "3000",
evaluationCount: 1,
failureRate: 50,
extendInfo: "{}",
ispCityNodes: [
{
cityCode: "357",
ispCode: "465",
},
{
cityCode: "738",
ispCode: "465",
},
],
});
const https = new alicloud.alidnscloudgtm.MonitorTemplate("https", {
name: `${name}-https`,
protocol: "https",
ipVersion: "IPv4",
interval: "60",
timeout: "2000",
evaluationCount: 1,
failureRate: 50,
extendInfo: JSON.stringify({
code: 400,
followRedirect: true,
path: "/",
sni: false,
}),
ispCityNodes: [
{
cityCode: "357",
ispCode: "465",
},
{
cityCode: "738",
ispCode: "465",
},
],
});
const ping = new alicloud.alidnscloudgtm.MonitorTemplate("ping", {
name: `${name}-ping`,
protocol: "ping",
ipVersion: "IPv4",
interval: "60",
timeout: "3000",
evaluationCount: 1,
failureRate: 50,
extendInfo: JSON.stringify({
packetNum: 20,
packetLossRate: 10,
}),
ispCityNodes: [
{
cityCode: "357",
ispCode: "465",
},
{
cityCode: "738",
ispCode: "465",
},
],
});
const _default = new alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddress("default", {
name: name,
type: "IPv4",
address: "1.1.1.1",
enableStatus: "enable",
availableMode: "manual",
manualAvailableStatus: "available",
healthJudgement: "all_ok",
remark: "terraform-example-remark",
healthTasks: [
{
templateId: ping.id,
},
{
port: 53,
templateId: tcp.id,
},
{
port: 443,
templateId: https.id,
},
],
});
import pulumi
import json
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
tcp = alicloud.alidnscloudgtm.MonitorTemplate("tcp",
name=f"{name}-tcp",
protocol="tcp",
ip_version="IPv4",
interval="60",
timeout="3000",
evaluation_count=1,
failure_rate=50,
extend_info="{}",
isp_city_nodes=[
{
"city_code": "357",
"isp_code": "465",
},
{
"city_code": "738",
"isp_code": "465",
},
])
https = alicloud.alidnscloudgtm.MonitorTemplate("https",
name=f"{name}-https",
protocol="https",
ip_version="IPv4",
interval="60",
timeout="2000",
evaluation_count=1,
failure_rate=50,
extend_info=json.dumps({
"code": 400,
"followRedirect": True,
"path": "/",
"sni": False,
}),
isp_city_nodes=[
{
"city_code": "357",
"isp_code": "465",
},
{
"city_code": "738",
"isp_code": "465",
},
])
ping = alicloud.alidnscloudgtm.MonitorTemplate("ping",
name=f"{name}-ping",
protocol="ping",
ip_version="IPv4",
interval="60",
timeout="3000",
evaluation_count=1,
failure_rate=50,
extend_info=json.dumps({
"packetNum": 20,
"packetLossRate": 10,
}),
isp_city_nodes=[
{
"city_code": "357",
"isp_code": "465",
},
{
"city_code": "738",
"isp_code": "465",
},
])
default = alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddress("default",
name=name,
type="IPv4",
address="1.1.1.1",
enable_status="enable",
available_mode="manual",
manual_available_status="available",
health_judgement="all_ok",
remark="terraform-example-remark",
health_tasks=[
{
"template_id": ping.id,
},
{
"port": 53,
"template_id": tcp.id,
},
{
"port": 443,
"template_id": https.id,
},
])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alidnscloudgtm"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alidnscloudgtmaddress"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
tcp, err := alidnscloudgtm.NewMonitorTemplate(ctx, "tcp", &alidnscloudgtm.MonitorTemplateArgs{
Name: pulumi.Sprintf("%v-tcp", name),
Protocol: pulumi.String("tcp"),
IpVersion: pulumi.String("IPv4"),
Interval: pulumi.String("60"),
Timeout: pulumi.String("3000"),
EvaluationCount: pulumi.Int(1),
FailureRate: pulumi.Int(50),
ExtendInfo: pulumi.String("{}"),
IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("357"),
IspCode: pulumi.String("465"),
},
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("738"),
IspCode: pulumi.String("465"),
},
},
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"code": 400,
"followRedirect": true,
"path": "/",
"sni": false,
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
https, err := alidnscloudgtm.NewMonitorTemplate(ctx, "https", &alidnscloudgtm.MonitorTemplateArgs{
Name: pulumi.Sprintf("%v-https", name),
Protocol: pulumi.String("https"),
IpVersion: pulumi.String("IPv4"),
Interval: pulumi.String("60"),
Timeout: pulumi.String("2000"),
EvaluationCount: pulumi.Int(1),
FailureRate: pulumi.Int(50),
ExtendInfo: pulumi.String(pulumi.String(json0)),
IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("357"),
IspCode: pulumi.String("465"),
},
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("738"),
IspCode: pulumi.String("465"),
},
},
})
if err != nil {
return err
}
tmpJSON1, err := json.Marshal(map[string]interface{}{
"packetNum": 20,
"packetLossRate": 10,
})
if err != nil {
return err
}
json1 := string(tmpJSON1)
ping, err := alidnscloudgtm.NewMonitorTemplate(ctx, "ping", &alidnscloudgtm.MonitorTemplateArgs{
Name: pulumi.Sprintf("%v-ping", name),
Protocol: pulumi.String("ping"),
IpVersion: pulumi.String("IPv4"),
Interval: pulumi.String("60"),
Timeout: pulumi.String("3000"),
EvaluationCount: pulumi.Int(1),
FailureRate: pulumi.Int(50),
ExtendInfo: pulumi.String(pulumi.String(json1)),
IspCityNodes: alidnscloudgtm.MonitorTemplateIspCityNodeArray{
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("357"),
IspCode: pulumi.String("465"),
},
&alidnscloudgtm.MonitorTemplateIspCityNodeArgs{
CityCode: pulumi.String("738"),
IspCode: pulumi.String("465"),
},
},
})
if err != nil {
return err
}
_, err = alidnscloudgtmaddress.NewAlidnsCloudGtmAddress(ctx, "default", &alidnscloudgtmaddress.AlidnsCloudGtmAddressArgs{
Name: pulumi.String(pulumi.String(name)),
Type: pulumi.String("IPv4"),
Address: pulumi.String("1.1.1.1"),
EnableStatus: pulumi.String("enable"),
AvailableMode: pulumi.String("manual"),
ManualAvailableStatus: pulumi.String("available"),
HealthJudgement: pulumi.String("all_ok"),
Remark: pulumi.String("terraform-example-remark"),
HealthTasks: alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArray{
&alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArgs{
TemplateId: ping.ID(),
},
&alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArgs{
Port: pulumi.Int(53),
TemplateId: tcp.ID(),
},
&alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArgs{
Port: pulumi.Int(443),
TemplateId: https.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var tcp = new AliCloud.AlidnsCloudGtm.MonitorTemplate("tcp", new()
{
Name = $"{name}-tcp",
Protocol = "tcp",
IpVersion = "IPv4",
Interval = "60",
Timeout = "3000",
EvaluationCount = 1,
FailureRate = 50,
ExtendInfo = "{}",
IspCityNodes = new[]
{
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "357",
IspCode = "465",
},
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "738",
IspCode = "465",
},
},
});
var https = new AliCloud.AlidnsCloudGtm.MonitorTemplate("https", new()
{
Name = $"{name}-https",
Protocol = "https",
IpVersion = "IPv4",
Interval = "60",
Timeout = "2000",
EvaluationCount = 1,
FailureRate = 50,
ExtendInfo = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["code"] = 400,
["followRedirect"] = true,
["path"] = "/",
["sni"] = false,
}),
IspCityNodes = new[]
{
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "357",
IspCode = "465",
},
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "738",
IspCode = "465",
},
},
});
var ping = new AliCloud.AlidnsCloudGtm.MonitorTemplate("ping", new()
{
Name = $"{name}-ping",
Protocol = "ping",
IpVersion = "IPv4",
Interval = "60",
Timeout = "3000",
EvaluationCount = 1,
FailureRate = 50,
ExtendInfo = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["packetNum"] = 20,
["packetLossRate"] = 10,
}),
IspCityNodes = new[]
{
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "357",
IspCode = "465",
},
new AliCloud.alidnsCloudGtm.Inputs.MonitorTemplateIspCityNodeArgs
{
CityCode = "738",
IspCode = "465",
},
},
});
var @default = new AliCloud.AlidnsCloudGtmAddress.AlidnsCloudGtmAddress("default", new()
{
Name = name,
Type = "IPv4",
Address = "1.1.1.1",
EnableStatus = "enable",
AvailableMode = "manual",
ManualAvailableStatus = "available",
HealthJudgement = "all_ok",
Remark = "terraform-example-remark",
HealthTasks = new[]
{
new AliCloud.alidnsCloudGtmAddress.Inputs.AlidnsCloudGtmAddressHealthTaskArgs
{
TemplateId = ping.Id,
},
new AliCloud.alidnsCloudGtmAddress.Inputs.AlidnsCloudGtmAddressHealthTaskArgs
{
Port = 53,
TemplateId = tcp.Id,
},
new AliCloud.alidnsCloudGtmAddress.Inputs.AlidnsCloudGtmAddressHealthTaskArgs
{
Port = 443,
TemplateId = https.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplate;
import com.pulumi.alicloud.alidnscloudgtm.MonitorTemplateArgs;
import com.pulumi.alicloud.alidnscloudgtm.inputs.MonitorTemplateIspCityNodeArgs;
import com.pulumi.alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddress;
import com.pulumi.alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddressArgs;
import com.pulumi.alicloud.alidnscloudgtmaddress.inputs.AlidnsCloudGtmAddressHealthTaskArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var tcp = new MonitorTemplate("tcp", MonitorTemplateArgs.builder()
.name(String.format("%s-tcp", name))
.protocol("tcp")
.ipVersion("IPv4")
.interval("60")
.timeout("3000")
.evaluationCount(1)
.failureRate(50)
.extendInfo("{}")
.ispCityNodes(
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("357")
.ispCode("465")
.build(),
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("738")
.ispCode("465")
.build())
.build());
var https = new MonitorTemplate("https", MonitorTemplateArgs.builder()
.name(String.format("%s-https", name))
.protocol("https")
.ipVersion("IPv4")
.interval("60")
.timeout("2000")
.evaluationCount(1)
.failureRate(50)
.extendInfo(serializeJson(
jsonObject(
jsonProperty("code", 400),
jsonProperty("followRedirect", true),
jsonProperty("path", "/"),
jsonProperty("sni", false)
)))
.ispCityNodes(
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("357")
.ispCode("465")
.build(),
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("738")
.ispCode("465")
.build())
.build());
var ping = new MonitorTemplate("ping", MonitorTemplateArgs.builder()
.name(String.format("%s-ping", name))
.protocol("ping")
.ipVersion("IPv4")
.interval("60")
.timeout("3000")
.evaluationCount(1)
.failureRate(50)
.extendInfo(serializeJson(
jsonObject(
jsonProperty("packetNum", 20),
jsonProperty("packetLossRate", 10)
)))
.ispCityNodes(
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("357")
.ispCode("465")
.build(),
MonitorTemplateIspCityNodeArgs.builder()
.cityCode("738")
.ispCode("465")
.build())
.build());
var default_ = new AlidnsCloudGtmAddress("default", AlidnsCloudGtmAddressArgs.builder()
.name(name)
.type("IPv4")
.address("1.1.1.1")
.enableStatus("enable")
.availableMode("manual")
.manualAvailableStatus("available")
.healthJudgement("all_ok")
.remark("terraform-example-remark")
.healthTasks(
AlidnsCloudGtmAddressHealthTaskArgs.builder()
.templateId(ping.id())
.build(),
AlidnsCloudGtmAddressHealthTaskArgs.builder()
.port(53)
.templateId(tcp.id())
.build(),
AlidnsCloudGtmAddressHealthTaskArgs.builder()
.port(443)
.templateId(https.id())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
tcp:
type: alicloud:alidnscloudgtm:MonitorTemplate
properties:
name: ${name}-tcp
protocol: tcp
ipVersion: IPv4
interval: '60'
timeout: '3000'
evaluationCount: 1
failureRate: 50
extendInfo: '{}'
ispCityNodes:
- cityCode: '357'
ispCode: '465'
- cityCode: '738'
ispCode: '465'
https:
type: alicloud:alidnscloudgtm:MonitorTemplate
properties:
name: ${name}-https
protocol: https
ipVersion: IPv4
interval: '60'
timeout: '2000'
evaluationCount: 1
failureRate: 50
extendInfo:
fn::toJSON:
code: 400
followRedirect: true
path: /
sni: false
ispCityNodes:
- cityCode: '357'
ispCode: '465'
- cityCode: '738'
ispCode: '465'
ping:
type: alicloud:alidnscloudgtm:MonitorTemplate
properties:
name: ${name}-ping
protocol: ping
ipVersion: IPv4
interval: '60'
timeout: '3000'
evaluationCount: 1
failureRate: 50
extendInfo:
fn::toJSON:
packetNum: 20
packetLossRate: 10
ispCityNodes:
- cityCode: '357'
ispCode: '465'
- cityCode: '738'
ispCode: '465'
default:
type: alicloud:alidnscloudgtmaddress:AlidnsCloudGtmAddress
properties:
name: ${name}
type: IPv4
address: 1.1.1.1
enableStatus: enable
availableMode: manual
manualAvailableStatus: available
healthJudgement: all_ok
remark: terraform-example-remark
healthTasks:
- templateId: ${ping.id}
- port: 53
templateId: ${tcp.id}
- port: 443
templateId: ${https.id}
Example coming soon!
📚 Need more examples? VIEW MORE EXAMPLES
Create AlidnsCloudGtmAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlidnsCloudGtmAddress(name: string, args: AlidnsCloudGtmAddressArgs, opts?: CustomResourceOptions);@overload
def AlidnsCloudGtmAddress(resource_name: str,
args: AlidnsCloudGtmAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlidnsCloudGtmAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
available_mode: Optional[str] = None,
enable_status: Optional[str] = None,
health_judgement: Optional[str] = None,
type: Optional[str] = None,
health_tasks: Optional[Sequence[AlidnsCloudGtmAddressHealthTaskArgs]] = None,
manual_available_status: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None)func NewAlidnsCloudGtmAddress(ctx *Context, name string, args AlidnsCloudGtmAddressArgs, opts ...ResourceOption) (*AlidnsCloudGtmAddress, error)public AlidnsCloudGtmAddress(string name, AlidnsCloudGtmAddressArgs args, CustomResourceOptions? opts = null)
public AlidnsCloudGtmAddress(String name, AlidnsCloudGtmAddressArgs args)
public AlidnsCloudGtmAddress(String name, AlidnsCloudGtmAddressArgs args, CustomResourceOptions options)
type: alicloud:alidnscloudgtmaddress:AlidnsCloudGtmAddress
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_alidnscloudgtmaddress_alidnscloudgtmaddress" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlidnsCloudGtmAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlidnsCloudGtmAddressArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlidnsCloudGtmAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlidnsCloudGtmAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlidnsCloudGtmAddressArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alidnsCloudGtmAddressResource = new AliCloud.AlidnsCloudGtmAddress.AlidnsCloudGtmAddress("alidnsCloudGtmAddressResource", new()
{
Address = "string",
AvailableMode = "string",
EnableStatus = "string",
HealthJudgement = "string",
Type = "string",
HealthTasks = new[]
{
new AliCloud.alidnsCloudGtmAddress.Inputs.AlidnsCloudGtmAddressHealthTaskArgs
{
Port = 0,
TemplateId = "string",
},
},
ManualAvailableStatus = "string",
Name = "string",
Remark = "string",
});
example, err := alidnscloudgtmaddress.NewAlidnsCloudGtmAddress(ctx, "alidnsCloudGtmAddressResource", &alidnscloudgtmaddress.AlidnsCloudGtmAddressArgs{
Address: pulumi.String("string"),
AvailableMode: pulumi.String("string"),
EnableStatus: pulumi.String("string"),
HealthJudgement: pulumi.String("string"),
Type: pulumi.String("string"),
HealthTasks: alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArray{
&alidnscloudgtmaddress.AlidnsCloudGtmAddressHealthTaskArgs{
Port: pulumi.Int(0),
TemplateId: pulumi.String("string"),
},
},
ManualAvailableStatus: pulumi.String("string"),
Name: pulumi.String("string"),
Remark: pulumi.String("string"),
})
resource "alicloud_alidnscloudgtmaddress_alidnscloudgtmaddress" "alidnsCloudGtmAddressResource" {
address = "string"
available_mode = "string"
enable_status = "string"
health_judgement = "string"
type = "string"
health_tasks {
port = 0
template_id = "string"
}
manual_available_status = "string"
name = "string"
remark = "string"
}
var alidnsCloudGtmAddressResource = new AlidnsCloudGtmAddress("alidnsCloudGtmAddressResource", AlidnsCloudGtmAddressArgs.builder()
.address("string")
.availableMode("string")
.enableStatus("string")
.healthJudgement("string")
.type("string")
.healthTasks(AlidnsCloudGtmAddressHealthTaskArgs.builder()
.port(0)
.templateId("string")
.build())
.manualAvailableStatus("string")
.name("string")
.remark("string")
.build());
alidns_cloud_gtm_address_resource = alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddress("alidnsCloudGtmAddressResource",
address="string",
available_mode="string",
enable_status="string",
health_judgement="string",
type="string",
health_tasks=[{
"port": 0,
"template_id": "string",
}],
manual_available_status="string",
name="string",
remark="string")
const alidnsCloudGtmAddressResource = new alicloud.alidnscloudgtmaddress.AlidnsCloudGtmAddress("alidnsCloudGtmAddressResource", {
address: "string",
availableMode: "string",
enableStatus: "string",
healthJudgement: "string",
type: "string",
healthTasks: [{
port: 0,
templateId: "string",
}],
manualAvailableStatus: "string",
name: "string",
remark: "string",
});
type: alicloud:alidnscloudgtmaddress:AlidnsCloudGtmAddress
properties:
address: string
availableMode: string
enableStatus: string
healthJudgement: string
healthTasks:
- port: 0
templateId: string
manualAvailableStatus: string
name: string
remark: string
type: string
AlidnsCloudGtmAddress Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AlidnsCloudGtmAddress resource accepts the following input properties:
- Address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - Available
Mode string - How the availability of the address is determined. Valid values:
- Enable
Status string - Whether the address participates in DNS resolution. Valid values:
- Health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- Type string
- The address type. Valid values:
IPv4,IPv6,domain. - Health
Tasks List<Pulumi.Ali Cloud.alidns Cloud Gtm Address. Inputs. Alidns Cloud Gtm Address Health Task> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - Manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - Name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- Remark string
- The remark of the address. Passing an empty value clears the existing remark.
- Address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - Available
Mode string - How the availability of the address is determined. Valid values:
- Enable
Status string - Whether the address participates in DNS resolution. Valid values:
- Health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- Type string
- The address type. Valid values:
IPv4,IPv6,domain. - Health
Tasks []AlidnsCloud Gtm Address Health Task Args - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - Manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - Name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- Remark string
- The remark of the address. Passing an empty value clears the existing remark.
- address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available_
mode string - How the availability of the address is determined. Valid values:
- enable_
status string - Whether the address participates in DNS resolution. Valid values:
- health_
judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- type string
- The address type. Valid values:
IPv4,IPv6,domain. - health_
tasks list(object) - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual_
available_ stringstatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark string
- The remark of the address. Passing an empty value clears the existing remark.
- address String
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode String - How the availability of the address is determined. Valid values:
- enable
Status String - Whether the address participates in DNS resolution. Valid values:
- health
Judgement String - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- type String
- The address type. Valid values:
IPv4,IPv6,domain. - health
Tasks List<AlidnsCloud Gtm Address Health Task> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available StringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name String
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark String
- The remark of the address. Passing an empty value clears the existing remark.
- address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode string - How the availability of the address is determined. Valid values:
- enable
Status string - Whether the address participates in DNS resolution. Valid values:
- health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- type string
- The address type. Valid values:
IPv4,IPv6,domain. - health
Tasks AlidnsCloud Gtm Address Health Task[] - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark string
- The remark of the address. Passing an empty value clears the existing remark.
- address str
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available_
mode str - How the availability of the address is determined. Valid values:
- enable_
status str - Whether the address participates in DNS resolution. Valid values:
- health_
judgement str - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- type str
- The address type. Valid values:
IPv4,IPv6,domain. - health_
tasks Sequence[AlidnsCloud Gtm Address Health Task Args] - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual_
available_ strstatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name str
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark str
- The remark of the address. Passing an empty value clears the existing remark.
- address String
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode String - How the availability of the address is determined. Valid values:
- enable
Status String - Whether the address participates in DNS resolution. Valid values:
- health
Judgement String - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- type String
- The address type. Valid values:
IPv4,IPv6,domain. - health
Tasks List<Property Map> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available StringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name String
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark String
- The remark of the address. Passing an empty value clears the existing remark.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlidnsCloudGtmAddress resource produces the following output properties:
- Create
Time string - The creation time of the address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the address.
- Id string
- The provider-assigned unique ID for this managed resource.
- create_
time string - The creation time of the address.
- id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the address.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the address.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the address.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the address.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AlidnsCloudGtmAddress Resource
Get an existing AlidnsCloudGtmAddress resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlidnsCloudGtmAddressState, opts?: CustomResourceOptions): AlidnsCloudGtmAddress@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
available_mode: Optional[str] = None,
create_time: Optional[str] = None,
enable_status: Optional[str] = None,
health_judgement: Optional[str] = None,
health_tasks: Optional[Sequence[AlidnsCloudGtmAddressHealthTaskArgs]] = None,
manual_available_status: Optional[str] = None,
name: Optional[str] = None,
remark: Optional[str] = None,
type: Optional[str] = None) -> AlidnsCloudGtmAddressfunc GetAlidnsCloudGtmAddress(ctx *Context, name string, id IDInput, state *AlidnsCloudGtmAddressState, opts ...ResourceOption) (*AlidnsCloudGtmAddress, error)public static AlidnsCloudGtmAddress Get(string name, Input<string> id, AlidnsCloudGtmAddressState? state, CustomResourceOptions? opts = null)public static AlidnsCloudGtmAddress get(String name, Output<String> id, AlidnsCloudGtmAddressState state, CustomResourceOptions options)resources: _: type: alicloud:alidnscloudgtmaddress:AlidnsCloudGtmAddress get: id: ${id}import {
to = alicloud_alidnscloudgtmaddress_alidnscloudgtmaddress.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - Available
Mode string - How the availability of the address is determined. Valid values:
- Create
Time string - The creation time of the address.
- Enable
Status string - Whether the address participates in DNS resolution. Valid values:
- Health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- Health
Tasks List<Pulumi.Ali Cloud.alidns Cloud Gtm Address. Inputs. Alidns Cloud Gtm Address Health Task> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - Manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - Name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- Remark string
- The remark of the address. Passing an empty value clears the existing remark.
- Type string
- The address type. Valid values:
IPv4,IPv6,domain.
- Address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - Available
Mode string - How the availability of the address is determined. Valid values:
- Create
Time string - The creation time of the address.
- Enable
Status string - Whether the address participates in DNS resolution. Valid values:
- Health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- Health
Tasks []AlidnsCloud Gtm Address Health Task Args - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - Manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - Name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- Remark string
- The remark of the address. Passing an empty value clears the existing remark.
- Type string
- The address type. Valid values:
IPv4,IPv6,domain.
- address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available_
mode string - How the availability of the address is determined. Valid values:
- create_
time string - The creation time of the address.
- enable_
status string - Whether the address participates in DNS resolution. Valid values:
- health_
judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- health_
tasks list(object) - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual_
available_ stringstatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark string
- The remark of the address. Passing an empty value clears the existing remark.
- type string
- The address type. Valid values:
IPv4,IPv6,domain.
- address String
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode String - How the availability of the address is determined. Valid values:
- create
Time String - The creation time of the address.
- enable
Status String - Whether the address participates in DNS resolution. Valid values:
- health
Judgement String - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- health
Tasks List<AlidnsCloud Gtm Address Health Task> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available StringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name String
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark String
- The remark of the address. Passing an empty value clears the existing remark.
- type String
- The address type. Valid values:
IPv4,IPv6,domain.
- address string
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode string - How the availability of the address is determined. Valid values:
- create
Time string - The creation time of the address.
- enable
Status string - Whether the address participates in DNS resolution. Valid values:
- health
Judgement string - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- health
Tasks AlidnsCloud Gtm Address Health Task[] - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available stringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name string
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark string
- The remark of the address. Passing an empty value clears the existing remark.
- type string
- The address type. Valid values:
IPv4,IPv6,domain.
- address str
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available_
mode str - How the availability of the address is determined. Valid values:
- create_
time str - The creation time of the address.
- enable_
status str - Whether the address participates in DNS resolution. Valid values:
- health_
judgement str - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- health_
tasks Sequence[AlidnsCloud Gtm Address Health Task Args] - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual_
available_ strstatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name str
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark str
- The remark of the address. Passing an empty value clears the existing remark.
- type str
- The address type. Valid values:
IPv4,IPv6,domain.
- address String
- The address value. Must match
type: an IPv4 address, an IPv6 address, or a domain name. - available
Mode String - How the availability of the address is determined. Valid values:
- create
Time String - The creation time of the address.
- enable
Status String - Whether the address participates in DNS resolution. Valid values:
- health
Judgement String - The rule used to judge overall health when the address has multiple health-check tasks. Valid values:
- health
Tasks List<Property Map> - The health-check tasks attached to this address. Each task references a Cloud GTM monitor template. See
healthTasksbelow. - manual
Available StringStatus - The manually-set availability status. Only meaningful when
availableModeismanual. Valid values:available,unavailable. - name String
- The name of the address. Used to identify the address in the Cloud GTM console.
- remark String
- The remark of the address. Passing an empty value clears the existing remark.
- type String
- The address type. Valid values:
IPv4,IPv6,domain.
Supporting Types
AlidnsCloudGtmAddressHealthTask, AlidnsCloudGtmAddressHealthTaskArgs
- Port int
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- Template
Id string - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- Port int
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- Template
Id string - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- port number
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- template_
id string - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- port Integer
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- template
Id String - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- port number
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- template
Id string - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- port int
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- template_
id str - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
- port Number
- The port to probe. If omitted, the default port of the template's protocol is used (for example, 80 for HTTP, 443 for HTTPS).
- template
Id String - The ID of the Cloud GTM monitor template to probe this address with. Usually referenced as
alicloud_alidns_cloud_gtm_monitor_template.<name>.id.
Import
Alidns Cloud Gtm Address can be imported using the id, e.g.
$ pulumi import alicloud:alidnscloudgtmaddress/alidnsCloudGtmAddress:AlidnsCloudGtmAddress example <address_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Sunday, May 10, 2026 by Pulumi
