@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
95 lines • 2.66 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Retrieves information about an existing SDN VNet.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example = proxmoxve.sdn.getVnet({
* id: "vnet1",
* });
* export const dataProxmoxSdnVnet = {
* id: example.then(example => example.id),
* zone: example.then(example => example.zone),
* alias: example.then(example => example.alias),
* isolatePorts: example.then(example => example.isolatePorts),
* tag: example.then(example => example.tag),
* vlanAware: example.then(example => example.vlanAware),
* };
* ```
*/
export declare function getVnet(args: GetVnetArgs, opts?: pulumi.InvokeOptions): Promise<GetVnetResult>;
/**
* A collection of arguments for invoking getVnet.
*/
export interface GetVnetArgs {
/**
* The unique identifier of the SDN VNet.
*/
id: string;
}
/**
* A collection of values returned by getVnet.
*/
export interface GetVnetResult {
/**
* An optional alias for this VNet.
*/
readonly alias: string;
/**
* The unique identifier of the SDN VNet.
*/
readonly id: string;
/**
* Isolate ports within this VNet.
*/
readonly isolatePorts: boolean;
/**
* Tag value for VLAN/VXLAN (can't be used with other zone types).
*/
readonly tag: number;
/**
* Allow VM VLANs to pass through this VNet.
*/
readonly vlanAware: boolean;
/**
* The zone to which this VNet belongs.
*/
readonly zone: string;
}
/**
* Retrieves information about an existing SDN VNet.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const example = proxmoxve.sdn.getVnet({
* id: "vnet1",
* });
* export const dataProxmoxSdnVnet = {
* id: example.then(example => example.id),
* zone: example.then(example => example.zone),
* alias: example.then(example => example.alias),
* isolatePorts: example.then(example => example.isolatePorts),
* tag: example.then(example => example.tag),
* vlanAware: example.then(example => example.vlanAware),
* };
* ```
*/
export declare function getVnetOutput(args: GetVnetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVnetResult>;
/**
* A collection of arguments for invoking getVnet.
*/
export interface GetVnetOutputArgs {
/**
* The unique identifier of the SDN VNet.
*/
id: pulumi.Input<string>;
}
//# sourceMappingURL=getVnet.d.ts.map