@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
125 lines (124 loc) • 3.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the DNS resolution result of a domain name.
*
* ## Example Usage
* ### DNS resolution result of a domain name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = pulumi.output(huaweicloud.Cfw.getDomainNameParseIpList({
* domainName: "www.baidu.com",
* }));
* ```
* ### DNS resolution result of a domain name in a domain name group
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const fwInstanceId = config.requireObject("fwInstanceId");
* const domainNameGroupId = config.requireObject("domainNameGroupId");
* const domainAddressId = config.requireObject("domainAddressId");
* const test = huaweicloud.Cfw.getDomainNameParseIpList({
* fwInstanceId: fwInstanceId,
* groupId: domainNameGroupId,
* domainAddressId: domainAddressId,
* });
* ```
*/
export declare function getDomainNameParseIpList(args?: GetDomainNameParseIpListArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainNameParseIpListResult>;
/**
* A collection of arguments for invoking getDomainNameParseIpList.
*/
export interface GetDomainNameParseIpListArgs {
/**
* Specifies the address type.
* The valid value can be **0** (IPv4) or **1** (IPv6).
*/
addressType?: string;
/**
* Specifies the domain name ID in a domain name group.
*/
domainAddressId?: string;
/**
* Specifies the domain name.
*/
domainName?: string;
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: string;
/**
* Specifies the firewall ID.
*/
fwInstanceId?: string;
/**
* Specifies the domain name group ID.
*/
groupId?: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getDomainNameParseIpList.
*/
export interface GetDomainNameParseIpListResult {
readonly addressType?: string;
/**
* The IP address list for domain name resolution.
*/
readonly datas: string[];
readonly domainAddressId?: string;
readonly domainName?: string;
readonly enterpriseProjectId?: string;
readonly fwInstanceId?: string;
readonly groupId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
}
export declare function getDomainNameParseIpListOutput(args?: GetDomainNameParseIpListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDomainNameParseIpListResult>;
/**
* A collection of arguments for invoking getDomainNameParseIpList.
*/
export interface GetDomainNameParseIpListOutputArgs {
/**
* Specifies the address type.
* The valid value can be **0** (IPv4) or **1** (IPv6).
*/
addressType?: pulumi.Input<string>;
/**
* Specifies the domain name ID in a domain name group.
*/
domainAddressId?: pulumi.Input<string>;
/**
* Specifies the domain name.
*/
domainName?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the firewall ID.
*/
fwInstanceId?: pulumi.Input<string>;
/**
* Specifies the domain name group ID.
*/
groupId?: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}