// *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * ## # incus.NetworkZone * * Provides information about an Incus network zone. * See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as incus from "@kiterun/incus"; * * const _this = incus.getNetworkZone({ * name: "default", * }); * export const networkZoneName = _this.then(_this => _this.name); * ``` */ export function getNetworkZone(args: GetNetworkZoneArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("incus:index/getNetworkZone:getNetworkZone", { "description": args.description, "name": args.name, "project": args.project, "remote": args.remote, }, opts); } /** * A collection of arguments for invoking getNetworkZone. */ export interface GetNetworkZoneArgs { /** * Description of the network zone. */ description?: string; /** * **Required** - Name of the network zone. */ name: string; /** * *Optional* - Name of the project where the network zone is be stored. */ project?: string; /** * *Optional* - The remote in which the resource was created. If * not provided, the provider's default remote will be used. */ remote?: string; } /** * A collection of values returned by getNetworkZone. */ export interface GetNetworkZoneResult { /** * Map of key/value pairs of config settings. */ readonly config: {[key: string]: string}; /** * Description of the network zone. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; readonly project?: string; readonly remote?: string; } /** * ## # incus.NetworkZone * * Provides information about an Incus network zone. * See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as incus from "@kiterun/incus"; * * const _this = incus.getNetworkZone({ * name: "default", * }); * export const networkZoneName = _this.then(_this => _this.name); * ``` */ export function getNetworkZoneOutput(args: GetNetworkZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("incus:index/getNetworkZone:getNetworkZone", { "description": args.description, "name": args.name, "project": args.project, "remote": args.remote, }, opts); } /** * A collection of arguments for invoking getNetworkZone. */ export interface GetNetworkZoneOutputArgs { /** * Description of the network zone. */ description?: pulumi.Input; /** * **Required** - Name of the network zone. */ name: pulumi.Input; /** * *Optional* - Name of the project where the network zone is be stored. */ project?: pulumi.Input; /** * *Optional* - The remote in which the resource was created. If * not provided, the provider's default remote will be used. */ remote?: pulumi.Input; }