Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.dns.getGtmInstances
Explore with Pulumi AI
This data source provides the Alidns Gtm Instances of the current Alibaba Cloud user.
NOTE: Available in v1.151.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.dns.getGtmInstances({});
export const alidnsGtmInstanceId1 = ids.then(ids => ids.instances?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.dns.get_gtm_instances()
pulumi.export("alidnsGtmInstanceId1", ids.instances[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dns.GetGtmInstances(ctx, &dns.GetGtmInstancesArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alidnsGtmInstanceId1", ids.Instances[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Dns.GetGtmInstances.Invoke();
    return new Dictionary<string, object?>
    {
        ["alidnsGtmInstanceId1"] = ids.Apply(getGtmInstancesResult => getGtmInstancesResult.Instances[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DnsFunctions;
import com.pulumi.alicloud.dns.inputs.GetGtmInstancesArgs;
import java.util.List;
import java.util.ArrayList;
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 ids = DnsFunctions.getGtmInstances();
        ctx.export("alidnsGtmInstanceId1", ids.applyValue(getGtmInstancesResult -> getGtmInstancesResult.instances()[0].id()));
    }
}
variables:
  ids:
    fn::invoke:
      function: alicloud:dns:getGtmInstances
      arguments: {}
outputs:
  alidnsGtmInstanceId1: ${ids.instances[0].id}
Using getGtmInstances
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGtmInstances(args: GetGtmInstancesArgs, opts?: InvokeOptions): Promise<GetGtmInstancesResult>
function getGtmInstancesOutput(args: GetGtmInstancesOutputArgs, opts?: InvokeOptions): Output<GetGtmInstancesResult>def get_gtm_instances(ids: Optional[Sequence[str]] = None,
                      lang: Optional[str] = None,
                      resource_group_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetGtmInstancesResult
def get_gtm_instances_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      lang: Optional[pulumi.Input[str]] = None,
                      resource_group_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetGtmInstancesResult]func GetGtmInstances(ctx *Context, args *GetGtmInstancesArgs, opts ...InvokeOption) (*GetGtmInstancesResult, error)
func GetGtmInstancesOutput(ctx *Context, args *GetGtmInstancesOutputArgs, opts ...InvokeOption) GetGtmInstancesResultOutput> Note: This function is named GetGtmInstances in the Go SDK.
public static class GetGtmInstances 
{
    public static Task<GetGtmInstancesResult> InvokeAsync(GetGtmInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetGtmInstancesResult> Invoke(GetGtmInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGtmInstancesResult> getGtmInstances(GetGtmInstancesArgs args, InvokeOptions options)
public static Output<GetGtmInstancesResult> getGtmInstances(GetGtmInstancesArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:dns/getGtmInstances:getGtmInstances
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Gtm Instance IDs.
- Lang string
- The lang.
- ResourceGroup stringId 
- The ID of the resource group.
- Ids []string
- A list of Gtm Instance IDs.
- Lang string
- The lang.
- ResourceGroup stringId 
- The ID of the resource group.
- ids List<String>
- A list of Gtm Instance IDs.
- lang String
- The lang.
- resourceGroup StringId 
- The ID of the resource group.
- ids string[]
- A list of Gtm Instance IDs.
- lang string
- The lang.
- resourceGroup stringId 
- The ID of the resource group.
- ids Sequence[str]
- A list of Gtm Instance IDs.
- lang str
- The lang.
- resource_group_ strid 
- The ID of the resource group.
- ids List<String>
- A list of Gtm Instance IDs.
- lang String
- The lang.
- resourceGroup StringId 
- The ID of the resource group.
getGtmInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Instances
List<Pulumi.Ali Cloud. Dns. Outputs. Get Gtm Instances Instance> 
- OutputFile string
- Lang string
- ResourceGroup stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]GetGtm Instances Instance 
- OutputFile string
- Lang string
- ResourceGroup stringId 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<GetGtm Instances Instance> 
- outputFile String
- lang String
- resourceGroup StringId 
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
GetGtm Instances Instance[] 
- outputFile string
- lang string
- resourceGroup stringId 
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[GetGtm Instances Instance] 
- output_file str
- lang str
- resource_group_ strid 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances List<Property Map>
- outputFile String
- lang String
- resourceGroup StringId 
Supporting Types
GetGtmInstancesInstance   
- AlertConfigs List<Pulumi.Ali Cloud. Dns. Inputs. Get Gtm Instances Instance Alert Config> 
- The alert notification methods.
- AlertGroups List<string>
- The alert group.
- CnameType string
- The access type of the CNAME domain name.
- CreateTime string
- The CreateTime of the Gtm Instance.
- ExpireTime string
- The ExpireTime of the Gtm Instance.
- Id string
- The ID of the Gtm Instance.
- InstanceId string
- The ID of the Gtm Instance.
- InstanceName string
- The name of the Gtm Instance.
- PackageEdition string
- The version of the instance.
- PaymentType string
- The paymentype of the resource.
- PublicCname stringMode 
- The Public Network domain name access method.
- PublicRr string
- The CNAME access domain name.
- PublicUser stringDomain Name 
- The website domain name that the user uses on the Internet.
- PublicZone stringName 
- The domain name that is used to access GTM over the Internet.
- ResourceGroup stringId 
- The ID of the resource group.
- StrategyMode string
- The type of the access policy.
- Ttl int
- The global time to live.
- AlertConfigs []GetGtm Instances Instance Alert Config 
- The alert notification methods.
- AlertGroups []string
- The alert group.
- CnameType string
- The access type of the CNAME domain name.
- CreateTime string
- The CreateTime of the Gtm Instance.
- ExpireTime string
- The ExpireTime of the Gtm Instance.
- Id string
- The ID of the Gtm Instance.
- InstanceId string
- The ID of the Gtm Instance.
- InstanceName string
- The name of the Gtm Instance.
- PackageEdition string
- The version of the instance.
- PaymentType string
- The paymentype of the resource.
- PublicCname stringMode 
- The Public Network domain name access method.
- PublicRr string
- The CNAME access domain name.
- PublicUser stringDomain Name 
- The website domain name that the user uses on the Internet.
- PublicZone stringName 
- The domain name that is used to access GTM over the Internet.
- ResourceGroup stringId 
- The ID of the resource group.
- StrategyMode string
- The type of the access policy.
- Ttl int
- The global time to live.
- alertConfigs List<GetGtm Instances Instance Alert Config> 
- The alert notification methods.
- alertGroups List<String>
- The alert group.
- cnameType String
- The access type of the CNAME domain name.
- createTime String
- The CreateTime of the Gtm Instance.
- expireTime String
- The ExpireTime of the Gtm Instance.
- id String
- The ID of the Gtm Instance.
- instanceId String
- The ID of the Gtm Instance.
- instanceName String
- The name of the Gtm Instance.
- packageEdition String
- The version of the instance.
- paymentType String
- The paymentype of the resource.
- publicCname StringMode 
- The Public Network domain name access method.
- publicRr String
- The CNAME access domain name.
- publicUser StringDomain Name 
- The website domain name that the user uses on the Internet.
- publicZone StringName 
- The domain name that is used to access GTM over the Internet.
- resourceGroup StringId 
- The ID of the resource group.
- strategyMode String
- The type of the access policy.
- ttl Integer
- The global time to live.
- alertConfigs GetGtm Instances Instance Alert Config[] 
- The alert notification methods.
- alertGroups string[]
- The alert group.
- cnameType string
- The access type of the CNAME domain name.
- createTime string
- The CreateTime of the Gtm Instance.
- expireTime string
- The ExpireTime of the Gtm Instance.
- id string
- The ID of the Gtm Instance.
- instanceId string
- The ID of the Gtm Instance.
- instanceName string
- The name of the Gtm Instance.
- packageEdition string
- The version of the instance.
- paymentType string
- The paymentype of the resource.
- publicCname stringMode 
- The Public Network domain name access method.
- publicRr string
- The CNAME access domain name.
- publicUser stringDomain Name 
- The website domain name that the user uses on the Internet.
- publicZone stringName 
- The domain name that is used to access GTM over the Internet.
- resourceGroup stringId 
- The ID of the resource group.
- strategyMode string
- The type of the access policy.
- ttl number
- The global time to live.
- alert_configs Sequence[GetGtm Instances Instance Alert Config] 
- The alert notification methods.
- alert_groups Sequence[str]
- The alert group.
- cname_type str
- The access type of the CNAME domain name.
- create_time str
- The CreateTime of the Gtm Instance.
- expire_time str
- The ExpireTime of the Gtm Instance.
- id str
- The ID of the Gtm Instance.
- instance_id str
- The ID of the Gtm Instance.
- instance_name str
- The name of the Gtm Instance.
- package_edition str
- The version of the instance.
- payment_type str
- The paymentype of the resource.
- public_cname_ strmode 
- The Public Network domain name access method.
- public_rr str
- The CNAME access domain name.
- public_user_ strdomain_ name 
- The website domain name that the user uses on the Internet.
- public_zone_ strname 
- The domain name that is used to access GTM over the Internet.
- resource_group_ strid 
- The ID of the resource group.
- strategy_mode str
- The type of the access policy.
- ttl int
- The global time to live.
- alertConfigs List<Property Map>
- The alert notification methods.
- alertGroups List<String>
- The alert group.
- cnameType String
- The access type of the CNAME domain name.
- createTime String
- The CreateTime of the Gtm Instance.
- expireTime String
- The ExpireTime of the Gtm Instance.
- id String
- The ID of the Gtm Instance.
- instanceId String
- The ID of the Gtm Instance.
- instanceName String
- The name of the Gtm Instance.
- packageEdition String
- The version of the instance.
- paymentType String
- The paymentype of the resource.
- publicCname StringMode 
- The Public Network domain name access method.
- publicRr String
- The CNAME access domain name.
- publicUser StringDomain Name 
- The website domain name that the user uses on the Internet.
- publicZone StringName 
- The domain name that is used to access GTM over the Internet.
- resourceGroup StringId 
- The ID of the resource group.
- strategyMode String
- The type of the access policy.
- ttl Number
- The global time to live.
GetGtmInstancesInstanceAlertConfig     
- DingtalkNotice bool
- Whether to configure DingTalk notifications.
- EmailNotice bool
- Whether to configure mail notification.
- NoticeType string
- The Alarm Event Type.
- SmsNotice bool
- Whether to configure SMS notification.
- DingtalkNotice bool
- Whether to configure DingTalk notifications.
- EmailNotice bool
- Whether to configure mail notification.
- NoticeType string
- The Alarm Event Type.
- SmsNotice bool
- Whether to configure SMS notification.
- dingtalkNotice Boolean
- Whether to configure DingTalk notifications.
- emailNotice Boolean
- Whether to configure mail notification.
- noticeType String
- The Alarm Event Type.
- smsNotice Boolean
- Whether to configure SMS notification.
- dingtalkNotice boolean
- Whether to configure DingTalk notifications.
- emailNotice boolean
- Whether to configure mail notification.
- noticeType string
- The Alarm Event Type.
- smsNotice boolean
- Whether to configure SMS notification.
- dingtalk_notice bool
- Whether to configure DingTalk notifications.
- email_notice bool
- Whether to configure mail notification.
- notice_type str
- The Alarm Event Type.
- sms_notice bool
- Whether to configure SMS notification.
- dingtalkNotice Boolean
- Whether to configure DingTalk notifications.
- emailNotice Boolean
- Whether to configure mail notification.
- noticeType String
- The Alarm Event Type.
- smsNotice Boolean
- Whether to configure SMS notification.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.