@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
123 lines (122 loc) • 3.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of dns record sets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const fooZones = volcengine.dns.getZones({
* key: "xxx",
* searchMode: "xx",
* });
* const fooRecordSets = fooZones.then(fooZones => volcengine.dns.getRecordSets({
* zid: fooZones.zones?.[0]?.zid,
* }));
* ```
*/
export declare function getRecordSets(args: GetRecordSetsArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordSetsResult>;
/**
* A collection of arguments for invoking getRecordSets.
*/
export interface GetRecordSetsArgs {
/**
* The domain prefix of the record set.
*/
host?: string;
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The record set ID.
*/
recordSetId?: string;
/**
* The matching mode for Host.
*/
searchMode?: string;
/**
* The domain ID.
*/
zid: number;
}
/**
* A collection of values returned by getRecordSets.
*/
export interface GetRecordSetsResult {
/**
* The host record contained in the DNS record set.
*/
readonly host?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly nameRegex?: string;
readonly outputFile?: string;
readonly recordSetId?: string;
/**
* The collection of query.
*/
readonly recordSets: outputs.dns.GetRecordSetsRecordSet[];
readonly searchMode?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
readonly zid: number;
}
/**
* Use this data source to query detailed information of dns record sets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const fooZones = volcengine.dns.getZones({
* key: "xxx",
* searchMode: "xx",
* });
* const fooRecordSets = fooZones.then(fooZones => volcengine.dns.getRecordSets({
* zid: fooZones.zones?.[0]?.zid,
* }));
* ```
*/
export declare function getRecordSetsOutput(args: GetRecordSetsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRecordSetsResult>;
/**
* A collection of arguments for invoking getRecordSets.
*/
export interface GetRecordSetsOutputArgs {
/**
* The domain prefix of the record set.
*/
host?: 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 record set ID.
*/
recordSetId?: pulumi.Input<string>;
/**
* The matching mode for Host.
*/
searchMode?: pulumi.Input<string>;
/**
* The domain ID.
*/
zid: pulumi.Input<number>;
}