1. Packages
  2. Unifi
  3. API Docs
  4. firewall
  5. getZone
Unifi v0.2.0 published on Tuesday, Feb 17, 2026 by Pulumiverse
unifi logo
Unifi v0.2.0 published on Tuesday, Feb 17, 2026 by Pulumiverse

    The unifi.firewall.Zone datsources allows retrieving existing firewall zone details from the UniFi controller by the zone name.

    Using getZone

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getZone(args: GetZoneArgs, opts?: InvokeOptions): Promise<GetZoneResult>
    function getZoneOutput(args: GetZoneOutputArgs, opts?: InvokeOptions): Output<GetZoneResult>
    def get_zone(name: Optional[str] = None,
                 site: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetZoneResult
    def get_zone_output(name: Optional[pulumi.Input[str]] = None,
                 site: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetZoneResult]
    func LookupZone(ctx *Context, args *LookupZoneArgs, opts ...InvokeOption) (*LookupZoneResult, error)
    func LookupZoneOutput(ctx *Context, args *LookupZoneOutputArgs, opts ...InvokeOption) LookupZoneResultOutput

    > Note: This function is named LookupZone in the Go SDK.

    public static class GetZone 
    {
        public static Task<GetZoneResult> InvokeAsync(GetZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneResult> Invoke(GetZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
    public static Output<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
    
    fn::invoke:
      function: unifi:firewall/getZone:getZone
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the firewall zone.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    Name string
    The name of the firewall zone.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    name String
    The name of the firewall zone.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    name string
    The name of the firewall zone.
    site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    name str
    The name of the firewall zone.
    site str
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    name String
    The name of the firewall zone.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.

    getZone Result

    The following output properties are available:

    Id string
    The unique identifier of this resource.
    Name string
    The name of the firewall zone.
    Networks List<string>
    List of network IDs that this firewall zone contains.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    Id string
    The unique identifier of this resource.
    Name string
    The name of the firewall zone.
    Networks []string
    List of network IDs that this firewall zone contains.
    Site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    id String
    The unique identifier of this resource.
    name String
    The name of the firewall zone.
    networks List<String>
    List of network IDs that this firewall zone contains.
    site String
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    id string
    The unique identifier of this resource.
    name string
    The name of the firewall zone.
    networks string[]
    List of network IDs that this firewall zone contains.
    site string
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    id str
    The unique identifier of this resource.
    name str
    The name of the firewall zone.
    networks Sequence[str]
    List of network IDs that this firewall zone contains.
    site str
    The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.
    id String
    The unique identifier of this resource.
    name String
    The name of the firewall zone.
    networks List<String>
    List of network IDs that this firewall zone contains.
    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
    Unifi v0.2.0 published on Tuesday, Feb 17, 2026 by Pulumiverse
      Meet Neo: Your AI Platform Teammate