Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 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, nil, 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.
- Resource
Group stringId - The ID of the resource group.
- Ids []string
- A list of Gtm Instance IDs.
- Lang string
- The lang.
- Resource
Group stringId - The ID of the resource group.
- ids List<String>
- A list of Gtm Instance IDs.
- lang String
- The lang.
- resource
Group StringId - The ID of the resource group.
- ids string[]
- A list of Gtm Instance IDs.
- lang string
- The lang.
- resource
Group 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.
- resource
Group 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> - Output
File string - Lang string
- Resource
Group stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Gtm Instances Instance - Output
File string - Lang string
- Resource
Group stringId
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Gtm Instances Instance> - output
File String - lang String
- resource
Group StringId
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Gtm Instances Instance[] - output
File string - lang string
- resource
Group stringId
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Gtm 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>
- output
File String - lang String
- resource
Group StringId
Supporting Types
GetGtmInstancesInstance
- Alert
Configs List<Pulumi.Ali Cloud. Dns. Inputs. Get Gtm Instances Instance Alert Config> - The alert notification methods.
- Alert
Groups List<string> - The alert group.
- Cname
Type string - The access type of the CNAME domain name.
- Create
Time string - The CreateTime of the Gtm Instance.
- Expire
Time string - The ExpireTime of the Gtm Instance.
- Id string
- The ID of the Gtm Instance.
- Instance
Id string - The ID of the Gtm Instance.
- Instance
Name string - The name of the Gtm Instance.
- Package
Edition string - The version of the instance.
- Payment
Type string - The paymentype of the resource.
- Public
Cname stringMode - The Public Network domain name access method.
- Public
Rr string - The CNAME access domain name.
- Public
User stringDomain Name - The website domain name that the user uses on the Internet.
- Public
Zone stringName - The domain name that is used to access GTM over the Internet.
- Resource
Group stringId - The ID of the resource group.
- Strategy
Mode string - The type of the access policy.
- Ttl int
- The global time to live.
- Alert
Configs []GetGtm Instances Instance Alert Config - The alert notification methods.
- Alert
Groups []string - The alert group.
- Cname
Type string - The access type of the CNAME domain name.
- Create
Time string - The CreateTime of the Gtm Instance.
- Expire
Time string - The ExpireTime of the Gtm Instance.
- Id string
- The ID of the Gtm Instance.
- Instance
Id string - The ID of the Gtm Instance.
- Instance
Name string - The name of the Gtm Instance.
- Package
Edition string - The version of the instance.
- Payment
Type string - The paymentype of the resource.
- Public
Cname stringMode - The Public Network domain name access method.
- Public
Rr string - The CNAME access domain name.
- Public
User stringDomain Name - The website domain name that the user uses on the Internet.
- Public
Zone stringName - The domain name that is used to access GTM over the Internet.
- Resource
Group stringId - The ID of the resource group.
- Strategy
Mode string - The type of the access policy.
- Ttl int
- The global time to live.
- alert
Configs List<GetGtm Instances Instance Alert Config> - The alert notification methods.
- alert
Groups List<String> - The alert group.
- cname
Type String - The access type of the CNAME domain name.
- create
Time String - The CreateTime of the Gtm Instance.
- expire
Time String - The ExpireTime of the Gtm Instance.
- id String
- The ID of the Gtm Instance.
- instance
Id String - The ID of the Gtm Instance.
- instance
Name String - The name of the Gtm Instance.
- package
Edition String - The version of the instance.
- payment
Type String - The paymentype of the resource.
- public
Cname StringMode - The Public Network domain name access method.
- public
Rr String - The CNAME access domain name.
- public
User StringDomain Name - The website domain name that the user uses on the Internet.
- public
Zone StringName - The domain name that is used to access GTM over the Internet.
- resource
Group StringId - The ID of the resource group.
- strategy
Mode String - The type of the access policy.
- ttl Integer
- The global time to live.
- alert
Configs GetGtm Instances Instance Alert Config[] - The alert notification methods.
- alert
Groups string[] - The alert group.
- cname
Type string - The access type of the CNAME domain name.
- create
Time string - The CreateTime of the Gtm Instance.
- expire
Time string - The ExpireTime of the Gtm Instance.
- id string
- The ID of the Gtm Instance.
- instance
Id string - The ID of the Gtm Instance.
- instance
Name string - The name of the Gtm Instance.
- package
Edition string - The version of the instance.
- payment
Type string - The paymentype of the resource.
- public
Cname stringMode - The Public Network domain name access method.
- public
Rr string - The CNAME access domain name.
- public
User stringDomain Name - The website domain name that the user uses on the Internet.
- public
Zone stringName - The domain name that is used to access GTM over the Internet.
- resource
Group stringId - The ID of the resource group.
- strategy
Mode 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.
- alert
Configs List<Property Map> - The alert notification methods.
- alert
Groups List<String> - The alert group.
- cname
Type String - The access type of the CNAME domain name.
- create
Time String - The CreateTime of the Gtm Instance.
- expire
Time String - The ExpireTime of the Gtm Instance.
- id String
- The ID of the Gtm Instance.
- instance
Id String - The ID of the Gtm Instance.
- instance
Name String - The name of the Gtm Instance.
- package
Edition String - The version of the instance.
- payment
Type String - The paymentype of the resource.
- public
Cname StringMode - The Public Network domain name access method.
- public
Rr String - The CNAME access domain name.
- public
User StringDomain Name - The website domain name that the user uses on the Internet.
- public
Zone StringName - The domain name that is used to access GTM over the Internet.
- resource
Group StringId - The ID of the resource group.
- strategy
Mode String - The type of the access policy.
- ttl Number
- The global time to live.
GetGtmInstancesInstanceAlertConfig
- Dingtalk
Notice bool - Whether to configure DingTalk notifications.
- Email
Notice bool - Whether to configure mail notification.
- Notice
Type string - The Alarm Event Type.
- Sms
Notice bool - Whether to configure SMS notification.
- Dingtalk
Notice bool - Whether to configure DingTalk notifications.
- Email
Notice bool - Whether to configure mail notification.
- Notice
Type string - The Alarm Event Type.
- Sms
Notice bool - Whether to configure SMS notification.
- dingtalk
Notice Boolean - Whether to configure DingTalk notifications.
- email
Notice Boolean - Whether to configure mail notification.
- notice
Type String - The Alarm Event Type.
- sms
Notice Boolean - Whether to configure SMS notification.
- dingtalk
Notice boolean - Whether to configure DingTalk notifications.
- email
Notice boolean - Whether to configure mail notification.
- notice
Type string - The Alarm Event Type.
- sms
Notice 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.
- dingtalk
Notice Boolean - Whether to configure DingTalk notifications.
- email
Notice Boolean - Whether to configure mail notification.
- notice
Type String - The Alarm Event Type.
- sms
Notice 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.