UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

170 lines (169 loc) 3.91 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of dns zones * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.dns.getZones({ * tags: [{ * key: "xx", * values: ["xx"], * }], * }); * ``` */ export declare function getZones(args?: GetZonesArgs, opts?: pulumi.InvokeOptions): Promise<GetZonesResult>; /** * A collection of arguments for invoking getZones. */ export interface GetZonesArgs { /** * The keyword included in domains. */ key?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * The key for sorting the results. */ orderKey?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The ProjectName of the domain. */ projectName?: string; /** * The matching mode for the Key parameter. */ searchMode?: string; /** * The sorting order of the results. */ searchOrder?: string; /** * The status of the domain. */ stage?: string; /** * Tags. */ tags?: inputs.dns.GetZonesTag[]; /** * The edition of the domain. */ tradeCode?: string; } /** * A collection of values returned by getZones. */ export interface GetZonesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The Key of Tags. */ readonly key?: string; readonly nameRegex?: string; readonly orderKey?: string; readonly outputFile?: string; /** * The ProjectName of the domain. */ readonly projectName?: string; readonly searchMode?: string; readonly searchOrder?: string; /** * The status of the domain. */ readonly stage?: string; /** * Tags. */ readonly tags?: outputs.dns.GetZonesTag[]; /** * The total count of query. */ readonly totalCount: number; /** * The edition of the domain. */ readonly tradeCode?: string; /** * The collection of query. */ readonly zones: outputs.dns.GetZonesZone[]; } /** * Use this data source to query detailed information of dns zones * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.dns.getZones({ * tags: [{ * key: "xx", * values: ["xx"], * }], * }); * ``` */ export declare function getZonesOutput(args?: GetZonesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetZonesResult>; /** * A collection of arguments for invoking getZones. */ export interface GetZonesOutputArgs { /** * The keyword included in domains. */ key?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * The key for sorting the results. */ orderKey?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The ProjectName of the domain. */ projectName?: pulumi.Input<string>; /** * The matching mode for the Key parameter. */ searchMode?: pulumi.Input<string>; /** * The sorting order of the results. */ searchOrder?: pulumi.Input<string>; /** * The status of the domain. */ stage?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.dns.GetZonesTagArgs>[]>; /** * The edition of the domain. */ tradeCode?: pulumi.Input<string>; }