UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

70 lines (69 loc) 2.14 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides information about a Linode Domain Zonefile. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain-zone). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode Domain Zonefile. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const myZonefile = linode.getDomainZonefile({ * domainId: 3150401, * }); * ``` */ export declare function getDomainZonefile(args: GetDomainZonefileArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainZonefileResult>; /** * A collection of arguments for invoking getDomainZonefile. */ export interface GetDomainZonefileArgs { /** * The associated domain's unique ID. */ domainId: number; } /** * A collection of values returned by getDomainZonefile. */ export interface GetDomainZonefileResult { /** * The associated domain's unique ID. */ readonly domainId: number; readonly id: string; /** * Array of strings representing the Domain Zonefile. */ readonly zoneFiles: string[]; } /** * Provides information about a Linode Domain Zonefile. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-domain-zone). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode Domain Zonefile. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const myZonefile = linode.getDomainZonefile({ * domainId: 3150401, * }); * ``` */ export declare function getDomainZonefileOutput(args: GetDomainZonefileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDomainZonefileResult>; /** * A collection of arguments for invoking getDomainZonefile. */ export interface GetDomainZonefileOutputArgs { /** * The associated domain's unique ID. */ domainId: pulumi.Input<number>; }