1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. DcExclusion
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia_dc_exclusion resource manages data center exclusions in the Zscaler Internet Access (ZIA) cloud service. Data center exclusions allow you to temporarily exclude specific data centers from traffic forwarding during maintenance windows or other planned events.

    Example Usage

    Data Center Exclusion

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.DcExclusion("example", {
        datacenterId: 12345,
        startTimeUtc: "02/25/2026 08:00:00 am",
        endTimeUtc: "02/25/2026 10:00:00 pm",
        description: "Maintenance window exclusion",
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.DcExclusion("example",
        datacenter_id=12345,
        start_time_utc="02/25/2026 08:00:00 am",
        end_time_utc="02/25/2026 10:00:00 pm",
        description="Maintenance window exclusion",
    )
    
    resources:
      example:
        type: zia:DcExclusion
        properties:
          datacenterId: 12345
          startTimeUtc: "02/25/2026 08:00:00 am"
          endTimeUtc: "02/25/2026 10:00:00 pm"
          description: Maintenance window exclusion
    

    Create DcExclusion Resource

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

    Constructor syntax

    new DcExclusion(name: string, args?: DcExclusionArgs, opts?: CustomResourceOptions);
    @overload
    def DcExclusion(resource_name: str,
                    args: Optional[DcExclusionArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcExclusion(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    datacenter_id: Optional[int] = None,
                    description: Optional[str] = None,
                    end_time: Optional[int] = None,
                    end_time_utc: Optional[str] = None,
                    start_time: Optional[int] = None,
                    start_time_utc: Optional[str] = None)
    func NewDcExclusion(ctx *Context, name string, args *DcExclusionArgs, opts ...ResourceOption) (*DcExclusion, error)
    public DcExclusion(string name, DcExclusionArgs? args = null, CustomResourceOptions? opts = null)
    public DcExclusion(String name, DcExclusionArgs args)
    public DcExclusion(String name, DcExclusionArgs args, CustomResourceOptions options)
    
    type: zia:DcExclusion
    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 DcExclusionArgs
    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 DcExclusionArgs
    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 DcExclusionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcExclusionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcExclusionArgs
    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 dcExclusionResource = new Zia.DcExclusion("dcExclusionResource", new()
    {
        DatacenterId = 0,
        Description = "string",
        EndTime = 0,
        EndTimeUtc = "string",
        StartTime = 0,
        StartTimeUtc = "string",
    });
    
    example, err := zia.NewDcExclusion(ctx, "dcExclusionResource", &zia.DcExclusionArgs{
    	DatacenterId: pulumi.Int(0),
    	Description:  pulumi.String("string"),
    	EndTime:      pulumi.Int(0),
    	EndTimeUtc:   pulumi.String("string"),
    	StartTime:    pulumi.Int(0),
    	StartTimeUtc: pulumi.String("string"),
    })
    
    var dcExclusionResource = new DcExclusion("dcExclusionResource", DcExclusionArgs.builder()
        .datacenterId(0)
        .description("string")
        .endTime(0)
        .endTimeUtc("string")
        .startTime(0)
        .startTimeUtc("string")
        .build());
    
    dc_exclusion_resource = zia.DcExclusion("dcExclusionResource",
        datacenter_id=0,
        description="string",
        end_time=0,
        end_time_utc="string",
        start_time=0,
        start_time_utc="string")
    
    const dcExclusionResource = new zia.DcExclusion("dcExclusionResource", {
        datacenterId: 0,
        description: "string",
        endTime: 0,
        endTimeUtc: "string",
        startTime: 0,
        startTimeUtc: "string",
    });
    
    type: zia:DcExclusion
    properties:
        datacenterId: 0
        description: string
        endTime: 0
        endTimeUtc: string
        startTime: 0
        startTimeUtc: string
    

    DcExclusion 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 DcExclusion resource accepts the following input properties:

    DatacenterId int
    The ID of the data center to exclude.
    Description string
    A description of the data center exclusion.
    EndTime int
    Exclusion end time as Unix epoch seconds.
    EndTimeUtc string
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    StartTime int
    Exclusion start time as Unix epoch seconds.
    StartTimeUtc string
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    DatacenterId int
    The ID of the data center to exclude.
    Description string
    A description of the data center exclusion.
    EndTime int
    Exclusion end time as Unix epoch seconds.
    EndTimeUtc string
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    StartTime int
    Exclusion start time as Unix epoch seconds.
    StartTimeUtc string
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    datacenterId Integer
    The ID of the data center to exclude.
    description String
    A description of the data center exclusion.
    endTime Integer
    Exclusion end time as Unix epoch seconds.
    endTimeUtc String
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    startTime Integer
    Exclusion start time as Unix epoch seconds.
    startTimeUtc String
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    datacenterId number
    The ID of the data center to exclude.
    description string
    A description of the data center exclusion.
    endTime number
    Exclusion end time as Unix epoch seconds.
    endTimeUtc string
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    startTime number
    Exclusion start time as Unix epoch seconds.
    startTimeUtc string
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    datacenter_id int
    The ID of the data center to exclude.
    description str
    A description of the data center exclusion.
    end_time int
    Exclusion end time as Unix epoch seconds.
    end_time_utc str
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    start_time int
    Exclusion start time as Unix epoch seconds.
    start_time_utc str
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    datacenterId Number
    The ID of the data center to exclude.
    description String
    A description of the data center exclusion.
    endTime Number
    Exclusion end time as Unix epoch seconds.
    endTimeUtc String
    Exclusion end time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.
    startTime Number
    Exclusion start time as Unix epoch seconds.
    startTimeUtc String
    Exclusion start time in UTC format: MM/DD/YYYY HH:MM:SS am/pm.

    Outputs

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

    Expired bool
    Whether the data center exclusion has expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    Expired bool
    Whether the data center exclusion has expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    expired Boolean
    Whether the data center exclusion has expired.
    id String
    The provider-assigned unique ID for this managed resource.
    expired boolean
    Whether the data center exclusion has expired.
    id string
    The provider-assigned unique ID for this managed resource.
    expired bool
    Whether the data center exclusion has expired.
    id str
    The provider-assigned unique ID for this managed resource.
    expired Boolean
    Whether the data center exclusion has expired.
    id String
    The provider-assigned unique ID for this managed resource.

    Import

    An existing Data Center Exclusion can be imported using its datacenter ID, e.g.

    $ pulumi import zia:index:DcExclusion example 12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.