1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getDCExclusions
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
zia logo
Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler

    Use the zia_dc_exclusions data source to retrieve the list of Zscaler data centers (DCs) that are currently excluded from service to your organization based on configured exclusions in the ZIA Admin Portal

    NOTE: This an Early Access feature.

    Example Usage

    Retrieve All DC Exclusions

    data "zia_dc_exclusions" "all" {
    }
    

    Filter By Name

    data "zia_dc_exclusions" "this" {
        name = "ADL"
    }
    

    Filter By Resource ID

    data "zia_dc_exclusions" "example" {
      id = zia_dc_exclusions.example.id
    }
    

    Filter By Datacenter ID

    data "zia_dc_exclusions" "example" {
      datacenter_id = 1221
    }
    

    Using getDCExclusions

    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 getDCExclusions(args: GetDCExclusionsArgs, opts?: InvokeOptions): Promise<GetDCExclusionsResult>
    function getDCExclusionsOutput(args: GetDCExclusionsOutputArgs, opts?: InvokeOptions): Output<GetDCExclusionsResult>
    def get_dc_exclusions(datacenter_id: Optional[int] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDCExclusionsResult
    def get_dc_exclusions_output(datacenter_id: Optional[pulumi.Input[int]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDCExclusionsResult]
    func LookupDCExclusions(ctx *Context, args *LookupDCExclusionsArgs, opts ...InvokeOption) (*LookupDCExclusionsResult, error)
    func LookupDCExclusionsOutput(ctx *Context, args *LookupDCExclusionsOutputArgs, opts ...InvokeOption) LookupDCExclusionsResultOutput

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

    public static class GetDCExclusions 
    {
        public static Task<GetDCExclusionsResult> InvokeAsync(GetDCExclusionsArgs args, InvokeOptions? opts = null)
        public static Output<GetDCExclusionsResult> Invoke(GetDCExclusionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDCExclusionsResult> getDCExclusions(GetDCExclusionsArgs args, InvokeOptions options)
    public static Output<GetDCExclusionsResult> getDCExclusions(GetDCExclusionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getDCExclusions:getDCExclusions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatacenterId int
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    Name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    DatacenterId int
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    Name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId Integer
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    name String
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId number
    id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenter_id int
    id str
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    name str
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId Number
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    name String
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.

    getDCExclusions Result

    The following output properties are available:

    Exclusions List<zscaler.PulumiPackage.Zia.Outputs.GetDCExclusionsExclusion>
    (List) List of DC exclusion entries.
    Name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    DatacenterId int
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    Exclusions []GetDCExclusionsExclusion
    (List) List of DC exclusion entries.
    Name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    DatacenterId int
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    exclusions List<GetDCExclusionsExclusion>
    (List) List of DC exclusion entries.
    name String
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId Integer
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    exclusions GetDCExclusionsExclusion[]
    (List) List of DC exclusion entries.
    name string
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId number
    id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    exclusions Sequence[GetDCExclusionsExclusion]
    (List) List of DC exclusion entries.
    name str
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenter_id int
    id str
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    exclusions List<Property Map>
    (List) List of DC exclusion entries.
    name String
    (String, Optional + Computed) Filter value when provided; when filtering by datacenter_id and exactly one exclusion is returned, set to that exclusion's datacenter name.
    datacenterId Number
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.

    Supporting Types

    GetDCExclusionsExclusion

    DcId int
    (Integer) Datacenter ID (dcid) for the exclusion.
    DcName string
    (String) Datacenter name from the dcName reference.
    DcNameId int
    (Integer) Datacenter ID from the dcName reference.
    Description string
    (String) Description of the DC exclusion.
    EndTime int
    (Integer) Unix timestamp when the exclusion window ends.
    Expired bool
    (Boolean) Whether the exclusion has expired.
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    StartTime int
    (Integer) Unix timestamp when the exclusion window starts.
    DcId int
    (Integer) Datacenter ID (dcid) for the exclusion.
    DcName string
    (String) Datacenter name from the dcName reference.
    DcNameId int
    (Integer) Datacenter ID from the dcName reference.
    Description string
    (String) Description of the DC exclusion.
    EndTime int
    (Integer) Unix timestamp when the exclusion window ends.
    Expired bool
    (Boolean) Whether the exclusion has expired.
    Id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    StartTime int
    (Integer) Unix timestamp when the exclusion window starts.
    dcId Integer
    (Integer) Datacenter ID (dcid) for the exclusion.
    dcName String
    (String) Datacenter name from the dcName reference.
    dcNameId Integer
    (Integer) Datacenter ID from the dcName reference.
    description String
    (String) Description of the DC exclusion.
    endTime Integer
    (Integer) Unix timestamp when the exclusion window ends.
    expired Boolean
    (Boolean) Whether the exclusion has expired.
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    startTime Integer
    (Integer) Unix timestamp when the exclusion window starts.
    dcId number
    (Integer) Datacenter ID (dcid) for the exclusion.
    dcName string
    (String) Datacenter name from the dcName reference.
    dcNameId number
    (Integer) Datacenter ID from the dcName reference.
    description string
    (String) Description of the DC exclusion.
    endTime number
    (Integer) Unix timestamp when the exclusion window ends.
    expired boolean
    (Boolean) Whether the exclusion has expired.
    id string
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    startTime number
    (Integer) Unix timestamp when the exclusion window starts.
    dc_id int
    (Integer) Datacenter ID (dcid) for the exclusion.
    dc_name str
    (String) Datacenter name from the dcName reference.
    dc_name_id int
    (Integer) Datacenter ID from the dcName reference.
    description str
    (String) Description of the DC exclusion.
    end_time int
    (Integer) Unix timestamp when the exclusion window ends.
    expired bool
    (Boolean) Whether the exclusion has expired.
    id str
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    start_time int
    (Integer) Unix timestamp when the exclusion window starts.
    dcId Number
    (Integer) Datacenter ID (dcid) for the exclusion.
    dcName String
    (String) Datacenter name from the dcName reference.
    dcNameId Number
    (Integer) Datacenter ID from the dcName reference.
    description String
    (String) Description of the DC exclusion.
    endTime Number
    (Integer) Unix timestamp when the exclusion window ends.
    expired Boolean
    (Boolean) Whether the exclusion has expired.
    id String
    (String) The exclusion identifier (datacenter ID as string). Matches the zia.DCExclusions resource id.
    startTime Number
    (Integer) Unix timestamp when the exclusion window starts.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.2.0 published on Friday, Feb 20, 2026 by Zscaler
      Meet Neo: Your AI Platform Teammate