1. Packages
  2. Unifi
  3. API Docs
  4. setting
  5. NetworkOptimization
Viewing docs for Unifi v0.2.0
published on Tuesday, Feb 17, 2026 by Pulumiverse
unifi logo
Viewing docs for Unifi v0.2.0
published on Tuesday, Feb 17, 2026 by Pulumiverse

    Manages Network Optimization settings for a UniFi site. UniFi network optimization is a feature designed to automatically enhance the performance of a UniFi network by making automatic adjustments to various settings such as channel selection, transmit power, or frequency usage

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as unifi from "@pulumiverse/unifi";
    
    const example = new unifi.setting.NetworkOptimization("example", {enabled: true});
    
    import pulumi
    import pulumiverse_unifi as unifi
    
    example = unifi.setting.NetworkOptimization("example", enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/setting"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := setting.NewNetworkOptimization(ctx, "example", &setting.NetworkOptimizationArgs{
    			Enabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Unifi = Pulumiverse.Unifi;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Unifi.Setting.NetworkOptimization("example", new()
        {
            Enabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumiverse.unifi.setting.NetworkOptimization;
    import com.pulumiverse.unifi.setting.NetworkOptimizationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new NetworkOptimization("example", NetworkOptimizationArgs.builder()
                .enabled(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: unifi:setting:NetworkOptimization
        properties:
          enabled: true # Specify the site (optional, defaults to site configured in provider, otherwise "default")
          #   # site = "default"
    

    Create NetworkOptimization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkOptimization(name: string, args: NetworkOptimizationArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkOptimization(resource_name: str,
                            args: NetworkOptimizationArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkOptimization(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            enabled: Optional[bool] = None,
                            site: Optional[str] = None)
    func NewNetworkOptimization(ctx *Context, name string, args NetworkOptimizationArgs, opts ...ResourceOption) (*NetworkOptimization, error)
    public NetworkOptimization(string name, NetworkOptimizationArgs args, CustomResourceOptions? opts = null)
    public NetworkOptimization(String name, NetworkOptimizationArgs args)
    public NetworkOptimization(String name, NetworkOptimizationArgs args, CustomResourceOptions options)
    
    type: unifi:setting:NetworkOptimization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkOptimizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkOptimizationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkOptimizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkOptimizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkOptimizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkOptimizationResource = new Unifi.Setting.NetworkOptimization("networkOptimizationResource", new()
    {
        Enabled = false,
        Site = "string",
    });
    
    example, err := setting.NewNetworkOptimization(ctx, "networkOptimizationResource", &setting.NetworkOptimizationArgs{
    	Enabled: pulumi.Bool(false),
    	Site:    pulumi.String("string"),
    })
    
    var networkOptimizationResource = new NetworkOptimization("networkOptimizationResource", NetworkOptimizationArgs.builder()
        .enabled(false)
        .site("string")
        .build());
    
    network_optimization_resource = unifi.setting.NetworkOptimization("networkOptimizationResource",
        enabled=False,
        site="string")
    
    const networkOptimizationResource = new unifi.setting.NetworkOptimization("networkOptimizationResource", {
        enabled: false,
        site: "string",
    });
    
    type: unifi:setting:NetworkOptimization
    properties:
        enabled: false
        site: string
    

    NetworkOptimization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkOptimization resource accepts the following input properties:

    Enabled bool
    Whether the Network Optimization is enabled.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    Enabled bool
    Whether the Network Optimization is enabled.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled Boolean
    Whether the Network Optimization is enabled.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled boolean
    Whether the Network Optimization is enabled.
    site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled bool
    Whether the Network Optimization is enabled.
    site str
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled Boolean
    Whether the Network Optimization is enabled.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkOptimization resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkOptimization Resource

    Get an existing NetworkOptimization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NetworkOptimizationState, opts?: CustomResourceOptions): NetworkOptimization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            site: Optional[str] = None) -> NetworkOptimization
    func GetNetworkOptimization(ctx *Context, name string, id IDInput, state *NetworkOptimizationState, opts ...ResourceOption) (*NetworkOptimization, error)
    public static NetworkOptimization Get(string name, Input<string> id, NetworkOptimizationState? state, CustomResourceOptions? opts = null)
    public static NetworkOptimization get(String name, Output<String> id, NetworkOptimizationState state, CustomResourceOptions options)
    resources:  _:    type: unifi:setting:NetworkOptimization    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Enabled bool
    Whether the Network Optimization is enabled.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    Enabled bool
    Whether the Network Optimization is enabled.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled Boolean
    Whether the Network Optimization is enabled.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled boolean
    Whether the Network Optimization is enabled.
    site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled bool
    Whether the Network Optimization is enabled.
    site str
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    enabled Boolean
    Whether the Network Optimization is enabled.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.

    Package Details

    Repository
    unifi pulumiverse/pulumi-unifi
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the unifi Terraform Provider.
    unifi logo
    Viewing docs for Unifi v0.2.0
    published on Tuesday, Feb 17, 2026 by Pulumiverse
      Try Pulumi Cloud free. Your team will thank you.