1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dns
  5. getGtmInstances
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.dns.getGtmInstances

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:dns/getGtmInstances:getGtmInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Gtm Instance IDs.
    Lang string
    The lang.
    ResourceGroupId string
    The ID of the resource group.
    Ids []string
    A list of Gtm Instance IDs.
    Lang string
    The lang.
    ResourceGroupId string
    The ID of the resource group.
    ids List<String>
    A list of Gtm Instance IDs.
    lang String
    The lang.
    resourceGroupId String
    The ID of the resource group.
    ids string[]
    A list of Gtm Instance IDs.
    lang string
    The lang.
    resourceGroupId string
    The ID of the resource group.
    ids Sequence[str]
    A list of Gtm Instance IDs.
    lang str
    The lang.
    resource_group_id str
    The ID of the resource group.
    ids List<String>
    A list of Gtm Instance IDs.
    lang String
    The lang.
    resourceGroupId String
    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.AliCloud.Dns.Outputs.GetGtmInstancesInstance>
    OutputFile string
    Lang string
    ResourceGroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Instances []GetGtmInstancesInstance
    OutputFile string
    Lang string
    ResourceGroupId string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<GetGtmInstancesInstance>
    outputFile String
    lang String
    resourceGroupId String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instances GetGtmInstancesInstance[]
    outputFile string
    lang string
    resourceGroupId string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    instances Sequence[GetGtmInstancesInstance]
    output_file str
    lang str
    resource_group_id str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<Property Map>
    outputFile String
    lang String
    resourceGroupId String

    Supporting Types

    GetGtmInstancesInstance

    AlertConfigs List<Pulumi.AliCloud.Dns.Inputs.GetGtmInstancesInstanceAlertConfig>
    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.
    PublicCnameMode string
    The Public Network domain name access method.
    PublicRr string
    The CNAME access domain name.
    PublicUserDomainName string
    The website domain name that the user uses on the Internet.
    PublicZoneName string
    The domain name that is used to access GTM over the Internet.
    ResourceGroupId string
    The ID of the resource group.
    StrategyMode string
    The type of the access policy.
    Ttl int
    The global time to live.
    AlertConfigs []GetGtmInstancesInstanceAlertConfig
    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.
    PublicCnameMode string
    The Public Network domain name access method.
    PublicRr string
    The CNAME access domain name.
    PublicUserDomainName string
    The website domain name that the user uses on the Internet.
    PublicZoneName string
    The domain name that is used to access GTM over the Internet.
    ResourceGroupId string
    The ID of the resource group.
    StrategyMode string
    The type of the access policy.
    Ttl int
    The global time to live.
    alertConfigs List<GetGtmInstancesInstanceAlertConfig>
    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.
    publicCnameMode String
    The Public Network domain name access method.
    publicRr String
    The CNAME access domain name.
    publicUserDomainName String
    The website domain name that the user uses on the Internet.
    publicZoneName String
    The domain name that is used to access GTM over the Internet.
    resourceGroupId String
    The ID of the resource group.
    strategyMode String
    The type of the access policy.
    ttl Integer
    The global time to live.
    alertConfigs GetGtmInstancesInstanceAlertConfig[]
    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.
    publicCnameMode string
    The Public Network domain name access method.
    publicRr string
    The CNAME access domain name.
    publicUserDomainName string
    The website domain name that the user uses on the Internet.
    publicZoneName string
    The domain name that is used to access GTM over the Internet.
    resourceGroupId string
    The ID of the resource group.
    strategyMode string
    The type of the access policy.
    ttl number
    The global time to live.
    alert_configs Sequence[GetGtmInstancesInstanceAlertConfig]
    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_mode str
    The Public Network domain name access method.
    public_rr str
    The CNAME access domain name.
    public_user_domain_name str
    The website domain name that the user uses on the Internet.
    public_zone_name str
    The domain name that is used to access GTM over the Internet.
    resource_group_id str
    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.
    publicCnameMode String
    The Public Network domain name access method.
    publicRr String
    The CNAME access domain name.
    publicUserDomainName String
    The website domain name that the user uses on the Internet.
    publicZoneName String
    The domain name that is used to access GTM over the Internet.
    resourceGroupId String
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi