Unifi v0.1.0 published on Monday, Oct 28, 2024 by Pulumiverse
Unifi
The Unifi provider for Pulumi can be used to provision any of the network resources available in a Unifi based network controlled by a Unifi controller. The Unifi provider must be configured with credentials to deploy and update resources in Unifi.
Example
import * as pulumi from "@pulumi/pulumi";
import * as unifi from "@pulumiverse/unifi";
const mysite = new unifi.Site("mysite", {
description: "mysite",
});
import pulumiverse_unifi as unifi
db = unifi.Site("mysite",
description="mysite"
)
import (
"fmt"
unifi "github.com/pulumiverse/pulumi-unifi/sdk/go/unifi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
site, err := unifi.NewSite(ctx, "mysite", &unifi.SiteArgs{
Description: pulumi.String("mysite"),
})
if err != nil {
return fmt.Errorf("error creating site: %v", err)
}
ctx.Export("dbId", site.Id)
return nil
})
}
using Pulumi;
using Pulumiverse.Unifi;
class UnifiNet : Stack
{
public UnifiNet()
{
var db = new Site("mysite", new SiteArgs{
Descriptino: "mysite"
});
}
}