Viewing docs for ESXi Native v1.0.0
published on Monday, Aug 28, 2023 by pulumiverse
published on Monday, Aug 28, 2023 by pulumiverse
ESXi Native
I want to use the Pulumi ESXi Native package (esxi-native) in my project.
## Provider details
- Package: esxi-native
- Version: v1.0.0
- Publisher: pulumiverse
- Source: pulumi
- Repository: https://github.com/pulumiverse/pulumi-esxi-native
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/esxi-native/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/esxi-native/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/esxi-native/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/esxi-native/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for ESXi Native v1.0.0
published on Monday, Aug 28, 2023 by pulumiverse
published on Monday, Aug 28, 2023 by pulumiverse
The ESXi Native provider is used to provision VMs directly on an ESXi hypervisor without a need for vCenter or vSphere.
Example
import * as esxi from "@pulumiverse/esxi-native";
export = async () => {
const vm = new esxi.VirtualMachine("vm-test", {
diskStore: "nvme-ssd-datastore",
networkInterfaces: [
{
virtualNetwork: "default"
}
]
});
return {
"id": vm.id,
"name": vm.name,
"os": vm.os,
};
}
import pulumi
from typing import Sequence
from pulumiverse_esxi_native import VirtualMachine, NetworkInterfaceArgs
vm = VirtualMachine("vm-test",
disk_store="nvme-ssd-datastore",
network_interfaces=Sequence[NetworkInterfaceArgs(
virtual_network="default"
)])
pulumi.export("id", vm.id)
pulumi.export("name", vm.name)
pulumi.export("os", vm.os)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-esxi-native/sdk/go/esxi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
vm, err := esxi.NewVirtualMachine(ctx, "vm-test", &esxi.VirtualMachineArgs{
DiskStore: pulumi.String("nvme-ssd-datastore"),
NetworkInterfaces: esxi.NetworkInterfaceArray{
esxi.NetworkInterfaceArgs{
VirtualNetwork: pulumi.String("default"),
},
},
})
if err != nil {
return err
}
ctx.Export("id", vm.ID())
ctx.Export("name", vm.Name)
ctx.Export("os", vm.Os)
return nil
})
}
using System.Collections.Generic;
using Pulumi;
using Pulumiverse.EsxiNative;
using Pulumiverse.EsxiNative.Inputs;
return await Deployment.RunAsync(() =>
{
var vm = new VirtualMachine("vm-test", new VirtualMachineArgs
{
DiskStore = "nvme-ssd-datastore",
NetworkInterfaces = new NetworkInterfaceArgs[]
{
new ()
{
VirtualNetwork = "default"
}
}
});
return new Dictionary<string, object?>
{
["id"] = vm.Id,
["name"] = vm.Name,
["os"] = vm.Os,
};
});
Viewing docs for ESXi Native v1.0.0
published on Monday, Aug 28, 2023 by pulumiverse
published on Monday, Aug 28, 2023 by pulumiverse