UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

98 lines (97 loc) 2.29 kB
import * as pulumi from "@pulumi/pulumi"; /** * Get information about a DigitalOcean NFS share. * * ## Example Usage * * Get the NFS share by name and region: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const example = digitalocean.getNfs({ * name: "example-nfs", * region: "nyc1", * }); * ``` */ export declare function getNfs(args: GetNfsArgs, opts?: pulumi.InvokeOptions): Promise<GetNfsResult>; /** * A collection of arguments for invoking getNfs. */ export interface GetNfsArgs { /** * The name of the NFS share. */ name: string; /** * The region where the NFS share is located. */ region?: string; } /** * A collection of values returned by getNfs. */ export interface GetNfsResult { /** * The host IP of the NFS server accessible from the associated VPC. */ readonly host: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The mount path for accessing the NFS share. */ readonly mountPath: string; /** * Name of the NFS share. */ readonly name: string; /** * The region where the NFS share is located. */ readonly region?: string; /** * The size of the NFS share in GiB. */ readonly size: number; /** * The current status of the NFS share. */ readonly status: string; readonly tags: string[]; } /** * Get information about a DigitalOcean NFS share. * * ## Example Usage * * Get the NFS share by name and region: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const example = digitalocean.getNfs({ * name: "example-nfs", * region: "nyc1", * }); * ``` */ export declare function getNfsOutput(args: GetNfsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNfsResult>; /** * A collection of arguments for invoking getNfs. */ export interface GetNfsOutputArgs { /** * The name of the NFS share. */ name: pulumi.Input<string>; /** * The region where the NFS share is located. */ region?: pulumi.Input<string>; }