unifi.setting.USG
Explore with Pulumi AI
unifi.setting.USG manages settings for a Unifi Security Gateway.
Create USG Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new USG(name: string, args?: USGArgs, opts?: CustomResourceOptions);@overload
def USG(resource_name: str,
        args: Optional[USGArgs] = None,
        opts: Optional[ResourceOptions] = None)
@overload
def USG(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        dhcp_relay_servers: Optional[Sequence[str]] = None,
        firewall_guest_default_log: Optional[bool] = None,
        firewall_lan_default_log: Optional[bool] = None,
        firewall_wan_default_log: Optional[bool] = None,
        multicast_dns_enabled: Optional[bool] = None,
        site: Optional[str] = None)func NewUSG(ctx *Context, name string, args *USGArgs, opts ...ResourceOption) (*USG, error)public USG(string name, USGArgs? args = null, CustomResourceOptions? opts = null)type: unifi:setting:USG
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 USGArgs
- 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 USGArgs
- 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 USGArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args USGArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args USGArgs
- 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 usgResource = new Unifi.Setting.USG("usgResource", new()
{
    DhcpRelayServers = new[]
    {
        "string",
    },
    FirewallGuestDefaultLog = false,
    FirewallLanDefaultLog = false,
    FirewallWanDefaultLog = false,
    MulticastDnsEnabled = false,
    Site = "string",
});
example, err := setting.NewUSG(ctx, "usgResource", &setting.USGArgs{
	DhcpRelayServers: pulumi.StringArray{
		pulumi.String("string"),
	},
	FirewallGuestDefaultLog: pulumi.Bool(false),
	FirewallLanDefaultLog:   pulumi.Bool(false),
	FirewallWanDefaultLog:   pulumi.Bool(false),
	MulticastDnsEnabled:     pulumi.Bool(false),
	Site:                    pulumi.String("string"),
})
var usgResource = new USG("usgResource", USGArgs.builder()
    .dhcpRelayServers("string")
    .firewallGuestDefaultLog(false)
    .firewallLanDefaultLog(false)
    .firewallWanDefaultLog(false)
    .multicastDnsEnabled(false)
    .site("string")
    .build());
usg_resource = unifi.setting.USG("usgResource",
    dhcp_relay_servers=["string"],
    firewall_guest_default_log=False,
    firewall_lan_default_log=False,
    firewall_wan_default_log=False,
    multicast_dns_enabled=False,
    site="string")
const usgResource = new unifi.setting.USG("usgResource", {
    dhcpRelayServers: ["string"],
    firewallGuestDefaultLog: false,
    firewallLanDefaultLog: false,
    firewallWanDefaultLog: false,
    multicastDnsEnabled: false,
    site: "string",
});
type: unifi:setting:USG
properties:
    dhcpRelayServers:
        - string
    firewallGuestDefaultLog: false
    firewallLanDefaultLog: false
    firewallWanDefaultLog: false
    multicastDnsEnabled: false
    site: string
USG 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 USG resource accepts the following input properties:
- DhcpRelay List<string>Servers 
- The DHCP relay servers.
- FirewallGuest boolDefault Log 
- Whether the guest firewall log is enabled.
- FirewallLan boolDefault Log 
- Whether the LAN firewall log is enabled.
- FirewallWan boolDefault Log 
- Whether the WAN firewall log is enabled.
- MulticastDns boolEnabled 
- Whether multicast DNS is enabled.
- Site string
- The name of the site to associate the settings with.
- DhcpRelay []stringServers 
- The DHCP relay servers.
- FirewallGuest boolDefault Log 
- Whether the guest firewall log is enabled.
- FirewallLan boolDefault Log 
- Whether the LAN firewall log is enabled.
- FirewallWan boolDefault Log 
- Whether the WAN firewall log is enabled.
- MulticastDns boolEnabled 
- Whether multicast DNS is enabled.
- Site string
- The name of the site to associate the settings with.
- dhcpRelay List<String>Servers 
- The DHCP relay servers.
- firewallGuest BooleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan BooleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan BooleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns BooleanEnabled 
- Whether multicast DNS is enabled.
- site String
- The name of the site to associate the settings with.
- dhcpRelay string[]Servers 
- The DHCP relay servers.
- firewallGuest booleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan booleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan booleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns booleanEnabled 
- Whether multicast DNS is enabled.
- site string
- The name of the site to associate the settings with.
- dhcp_relay_ Sequence[str]servers 
- The DHCP relay servers.
- firewall_guest_ booldefault_ log 
- Whether the guest firewall log is enabled.
- firewall_lan_ booldefault_ log 
- Whether the LAN firewall log is enabled.
- firewall_wan_ booldefault_ log 
- Whether the WAN firewall log is enabled.
- multicast_dns_ boolenabled 
- Whether multicast DNS is enabled.
- site str
- The name of the site to associate the settings with.
- dhcpRelay List<String>Servers 
- The DHCP relay servers.
- firewallGuest BooleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan BooleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan BooleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns BooleanEnabled 
- Whether multicast DNS is enabled.
- site String
- The name of the site to associate the settings with.
Outputs
All input properties are implicitly available as output properties. Additionally, the USG 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 USG Resource
Get an existing USG 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?: USGState, opts?: CustomResourceOptions): USG@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dhcp_relay_servers: Optional[Sequence[str]] = None,
        firewall_guest_default_log: Optional[bool] = None,
        firewall_lan_default_log: Optional[bool] = None,
        firewall_wan_default_log: Optional[bool] = None,
        multicast_dns_enabled: Optional[bool] = None,
        site: Optional[str] = None) -> USGfunc GetUSG(ctx *Context, name string, id IDInput, state *USGState, opts ...ResourceOption) (*USG, error)public static USG Get(string name, Input<string> id, USGState? state, CustomResourceOptions? opts = null)public static USG get(String name, Output<String> id, USGState state, CustomResourceOptions options)resources:  _:    type: unifi:setting:USG    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.
- DhcpRelay List<string>Servers 
- The DHCP relay servers.
- FirewallGuest boolDefault Log 
- Whether the guest firewall log is enabled.
- FirewallLan boolDefault Log 
- Whether the LAN firewall log is enabled.
- FirewallWan boolDefault Log 
- Whether the WAN firewall log is enabled.
- MulticastDns boolEnabled 
- Whether multicast DNS is enabled.
- Site string
- The name of the site to associate the settings with.
- DhcpRelay []stringServers 
- The DHCP relay servers.
- FirewallGuest boolDefault Log 
- Whether the guest firewall log is enabled.
- FirewallLan boolDefault Log 
- Whether the LAN firewall log is enabled.
- FirewallWan boolDefault Log 
- Whether the WAN firewall log is enabled.
- MulticastDns boolEnabled 
- Whether multicast DNS is enabled.
- Site string
- The name of the site to associate the settings with.
- dhcpRelay List<String>Servers 
- The DHCP relay servers.
- firewallGuest BooleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan BooleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan BooleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns BooleanEnabled 
- Whether multicast DNS is enabled.
- site String
- The name of the site to associate the settings with.
- dhcpRelay string[]Servers 
- The DHCP relay servers.
- firewallGuest booleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan booleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan booleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns booleanEnabled 
- Whether multicast DNS is enabled.
- site string
- The name of the site to associate the settings with.
- dhcp_relay_ Sequence[str]servers 
- The DHCP relay servers.
- firewall_guest_ booldefault_ log 
- Whether the guest firewall log is enabled.
- firewall_lan_ booldefault_ log 
- Whether the LAN firewall log is enabled.
- firewall_wan_ booldefault_ log 
- Whether the WAN firewall log is enabled.
- multicast_dns_ boolenabled 
- Whether multicast DNS is enabled.
- site str
- The name of the site to associate the settings with.
- dhcpRelay List<String>Servers 
- The DHCP relay servers.
- firewallGuest BooleanDefault Log 
- Whether the guest firewall log is enabled.
- firewallLan BooleanDefault Log 
- Whether the LAN firewall log is enabled.
- firewallWan BooleanDefault Log 
- Whether the WAN firewall log is enabled.
- multicastDns BooleanEnabled 
- Whether multicast DNS is enabled.
- site String
- The name of the site to associate the settings with.
Package Details
- Repository
- unifi pulumiverse/pulumi-unifi
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the unifiTerraform Provider.