@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
87 lines (86 loc) • 2.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `vsphere.VappContainer` data source can be used to discover the ID of a
* vApp container in vSphere. This is useful to return the ID of a vApp container
* that you want to use to create virtual machines in using the
* `vsphere.VirtualMachine` resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const datacenter = vsphere.getDatacenter({
* name: "dc-01",
* });
* const pool = datacenter.then(datacenter => vsphere.getVappContainer({
* name: "vapp-container-01",
* datacenterId: datacenter.id,
* }));
* ```
*/
export declare function getVappContainer(args: GetVappContainerArgs, opts?: pulumi.InvokeOptions): Promise<GetVappContainerResult>;
/**
* A collection of arguments for invoking getVappContainer.
*/
export interface GetVappContainerArgs {
/**
* The managed object reference ID
* of the datacenter in which the vApp container is located.
*/
datacenterId: string;
/**
* The name of the vApp container. This can be a name or
* path.
*/
name: string;
}
/**
* A collection of values returned by getVappContainer.
*/
export interface GetVappContainerResult {
readonly datacenterId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
}
/**
* The `vsphere.VappContainer` data source can be used to discover the ID of a
* vApp container in vSphere. This is useful to return the ID of a vApp container
* that you want to use to create virtual machines in using the
* `vsphere.VirtualMachine` resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const datacenter = vsphere.getDatacenter({
* name: "dc-01",
* });
* const pool = datacenter.then(datacenter => vsphere.getVappContainer({
* name: "vapp-container-01",
* datacenterId: datacenter.id,
* }));
* ```
*/
export declare function getVappContainerOutput(args: GetVappContainerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVappContainerResult>;
/**
* A collection of arguments for invoking getVappContainer.
*/
export interface GetVappContainerOutputArgs {
/**
* The managed object reference ID
* of the datacenter in which the vApp container is located.
*/
datacenterId: pulumi.Input<string>;
/**
* The name of the vApp container. This can be a name or
* path.
*/
name: pulumi.Input<string>;
}