GetResolutionLines
This data source provides a list of DNS Resolution Lines in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.60.0.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var resolutionLinesDs = Output.Create(AliCloud.Dns.GetResolutionLines.InvokeAsync(new AliCloud.Dns.GetResolutionLinesArgs
{
LineCodes =
{
"cn_unicom_shanxi",
},
OutputFile = "support_lines.txt",
}));
this.FirstLineCode = resolutionLinesDs.Apply(resolutionLinesDs => resolutionLinesDs.Lines[0].LineCode);
}
[Output("firstLineCode")]
public Output<string> FirstLineCode { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
resolution_lines_ds = alicloud.dns.get_resolution_lines(line_codes=["cn_unicom_shanxi"],
output_file="support_lines.txt")
pulumi.export("firstLineCode", resolution_lines_ds.lines[0]["lineCode"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resolutionLinesDs = pulumi.output(alicloud.dns.getResolutionLines({
lineCodes: ["cn_unicom_shanxi"],
outputFile: "support_lines.txt",
}, { async: true }));
export const firstLineCode = resolutionLinesDs.lines[0].lineCode;Using GetResolutionLines
function getResolutionLines(args: GetResolutionLinesArgs, opts?: InvokeOptions): Promise<GetResolutionLinesResult>function get_resolution_lines(domain_name=None, lang=None, line_codes=None, line_display_names=None, line_names=None, output_file=None, user_client_ip=None, opts=None)func GetResolutionLines(ctx *Context, args *GetResolutionLinesArgs, opts ...InvokeOption) (*GetResolutionLinesResult, error)public static class GetResolutionLines {
public static Task<GetResolutionLinesResult> InvokeAsync(GetResolutionLinesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Domain
Name string Domain Name.
- Lang string
language.
- Line
Codes List<string> A list of lines codes.
- Line
Display List<string>Names A list of line display names.
- Line
Names List<string> - Output
File string - User
Client stringIp The ip of user client.
- Domain
Name string Domain Name.
- Lang string
language.
- Line
Codes []string A list of lines codes.
- Line
Display []stringNames A list of line display names.
- Line
Names []string - Output
File string - User
Client stringIp The ip of user client.
- domain
Name string Domain Name.
- lang string
language.
- line
Codes string[] A list of lines codes.
- line
Display string[]Names A list of line display names.
- line
Names string[] - output
File string - user
Client stringIp The ip of user client.
- domain_
name str Domain Name.
- lang str
language.
- line_
codes List[str] A list of lines codes.
- line_
display_ List[str]names A list of line display names.
- line_
names List[str] - output_
file str - user_
client_ strip The ip of user client.
GetResolutionLines Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Line
Codes List<string> Line code.
- Line
Display List<string>Names A list of line display names.
- Lines
List<Pulumi.
Ali Cloud. Dns. Outputs. Get Resolution Lines Line> A list of cloud resolution line. Each element contains the following attributes:
- Domain
Name string - Lang string
- Line
Names List<string> - Output
File string - User
Client stringIp
- Id string
The provider-assigned unique ID for this managed resource.
- Line
Codes []string Line code.
- Line
Display []stringNames A list of line display names.
- Lines
[]Get
Resolution Lines Line A list of cloud resolution line. Each element contains the following attributes:
- Domain
Name string - Lang string
- Line
Names []string - Output
File string - User
Client stringIp
- id string
The provider-assigned unique ID for this managed resource.
- line
Codes string[] Line code.
- line
Display string[]Names A list of line display names.
- lines
Get
Resolution Lines Line[] A list of cloud resolution line. Each element contains the following attributes:
- domain
Name string - lang string
- line
Names string[] - output
File string - user
Client stringIp
- id str
The provider-assigned unique ID for this managed resource.
- line_
codes List[str] Line code.
- line_
display_ List[str]names A list of line display names.
- lines
List[Get
Resolution Lines Line] A list of cloud resolution line. Each element contains the following attributes:
- domain_
name str - lang str
- line_
names List[str] - output_
file str - user_
client_ strip
Supporting Types
GetResolutionLinesLine
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.