UNPKG

@pulumi/dnsimple

Version:

A Pulumi package for creating and managing dnsimple cloud resources.

77 lines (76 loc) 1.97 kB
import * as pulumi from "@pulumi/pulumi"; /** * Get information about a DNSimple zone. * * !> Data source is getting deprecated in favor of `dnsimple\_zone` resource. * * Get zone: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dnsimple from "@pulumi/dnsimple"; * * const foobar = dnsimple.getZone({ * name: "dnsimple.com", * }); * ``` * * The following arguments are supported: * * * `name` - (Required) The name of the zone * * The following additional attributes are exported: * * * `id` - The zone ID * * `accountId` - The account ID * * `reverse` - True for a reverse zone, false for a forward zone. */ export declare function getZone(args: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneResult>; /** * A collection of arguments for invoking getZone. */ export interface GetZoneArgs { name: string; } /** * A collection of values returned by getZone. */ export interface GetZoneResult { readonly accountId: number; readonly id: number; readonly name: string; readonly reverse: boolean; } /** * Get information about a DNSimple zone. * * !> Data source is getting deprecated in favor of `dnsimple\_zone` resource. * * Get zone: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dnsimple from "@pulumi/dnsimple"; * * const foobar = dnsimple.getZone({ * name: "dnsimple.com", * }); * ``` * * The following arguments are supported: * * * `name` - (Required) The name of the zone * * The following additional attributes are exported: * * * `id` - The zone ID * * `accountId` - The account ID * * `reverse` - True for a reverse zone, false for a forward zone. */ export declare function getZoneOutput(args: GetZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetZoneResult>; /** * A collection of arguments for invoking getZone. */ export interface GetZoneOutputArgs { name: pulumi.Input<string>; }