GetInstances
This data source provides a list of DNS instances in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.84.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.Dns.GetInstances.InvokeAsync(new AliCloud.Dns.GetInstancesArgs
{
Ids =
{
"dns-cn-oew1npk****",
},
}));
this.FirstInstanceId = example.Apply(example => example.Instances[0].Id);
}
[Output("firstInstanceId")]
public Output<string> FirstInstanceId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.dns.get_instances(ids=["dns-cn-oew1npk****"])
pulumi.export("firstInstanceId", example.instances[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = pulumi.output(alicloud.dns.getInstances({
ids: ["dns-cn-oew1npk****"],
}, { async: true }));
export const firstInstanceId = example.instances[0].id;Using GetInstances
function getInstances(args: GetInstancesArgs, opts?: InvokeOptions): Promise<GetInstancesResult>function get_instances(ids=None, output_file=None, opts=None)func GetInstances(ctx *Context, args *GetInstancesArgs, opts ...InvokeOption) (*GetInstancesResult, error)public static class GetInstances {
public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ids List<string>
A list of instance IDs.
- Output
File string
- Ids []string
A list of instance IDs.
- Output
File string
- ids string[]
A list of instance IDs.
- output
File string
- ids List[str]
A list of instance IDs.
- output_
file str
GetInstances Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of instance IDs.
- Instances
List<Pulumi.
Ali Cloud. Dns. Outputs. Get Instances Instance> A list of instances. Each element contains the following attributes:
- Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of instance IDs.
- Instances
[]Get
Instances Instance A list of instances. Each element contains the following attributes:
- Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of instance IDs.
- instances
Get
Instances Instance[] A list of instances. Each element contains the following attributes:
- output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of instance IDs.
- instances
List[Get
Instances Instance] A list of instances. Each element contains the following attributes:
- output_
file str
Supporting Types
GetInstancesInstance
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Dns
Security string DNS security level.
- Domain
Numbers string Number of domain names bound.
- Id string
Id of the instance.
- Instance
Id string Id of the instance resource.
- Version
Code string Paid package version.
- Version
Name string Paid package version name.
- Dns
Security string DNS security level.
- Domain
Numbers string Number of domain names bound.
- Id string
Id of the instance.
- Instance
Id string Id of the instance resource.
- Version
Code string Paid package version.
- Version
Name string Paid package version name.
- dns
Security string DNS security level.
- domain
Numbers string Number of domain names bound.
- id string
Id of the instance.
- instance
Id string Id of the instance resource.
- version
Code string Paid package version.
- version
Name string Paid package version name.
- dns_
security str DNS security level.
- domain_
numbers str Number of domain names bound.
- id str
Id of the instance.
- instance_
id str Id of the instance resource.
- version_
code str Paid package version.
- version_
name str Paid package version name.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.