UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

151 lines (150 loc) 3.56 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of dns records * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.dns.getRecords({ * zid: 58857, * }); * ``` */ export declare function getRecords(args: GetRecordsArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordsResult>; /** * A collection of arguments for invoking getRecords. */ export interface GetRecordsArgs { /** * Domain prefix of the DNS record. */ host?: string; /** * Line of the DNS record. */ line?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The matching mode for the Host parameter. */ searchMode?: string; /** * The Method to sort the returned list of DNS records. */ searchOrder?: string; /** * Type of the DNS record. */ type?: string; /** * Value of the DNS record. */ value?: string; /** * The ID of the domain. */ zid: number; } /** * A collection of values returned by getRecords. */ export interface GetRecordsResult { /** * The host record included in the DNS record. */ readonly host?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The line code corresponding to the DNS record. */ readonly line?: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The collection of query. */ readonly records: outputs.dns.GetRecordsRecord[]; readonly searchMode?: string; readonly searchOrder?: string; /** * The total count of query. */ readonly totalCount: number; /** * The type of the DNS record. */ readonly type?: string; /** * The record value contained in the DNS record. */ readonly value?: string; readonly zid: number; } /** * Use this data source to query detailed information of dns records * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.dns.getRecords({ * zid: 58857, * }); * ``` */ export declare function getRecordsOutput(args: GetRecordsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRecordsResult>; /** * A collection of arguments for invoking getRecords. */ export interface GetRecordsOutputArgs { /** * Domain prefix of the DNS record. */ host?: pulumi.Input<string>; /** * Line of the DNS record. */ line?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The matching mode for the Host parameter. */ searchMode?: pulumi.Input<string>; /** * The Method to sort the returned list of DNS records. */ searchOrder?: pulumi.Input<string>; /** * Type of the DNS record. */ type?: pulumi.Input<string>; /** * Value of the DNS record. */ value?: pulumi.Input<string>; /** * The ID of the domain. */ zid: pulumi.Input<number>; }