published on Friday, Mar 13, 2026 by Zscaler
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:
- Datacenter
Id int - The ID of the data center to exclude.
- Description string
- A description of the data center exclusion.
- End
Time int - Exclusion end time as Unix epoch seconds.
- End
Time stringUtc - 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 stringUtc - 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 string
- A description of the data center exclusion.
- End
Time int - Exclusion end time as Unix epoch seconds.
- End
Time stringUtc - 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 stringUtc - Exclusion start time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm.
- datacenter
Id Integer - The ID of the data center to exclude.
- description String
- A description of the data center exclusion.
- end
Time Integer - Exclusion end time as Unix epoch seconds.
- end
Time StringUtc - Exclusion end time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm. - start
Time Integer - Exclusion start time as Unix epoch seconds.
- start
Time StringUtc - Exclusion start time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm.
- datacenter
Id number - The ID of the data center to exclude.
- description string
- A description of the data center exclusion.
- end
Time number - Exclusion end time as Unix epoch seconds.
- end
Time stringUtc - Exclusion end time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm. - start
Time number - Exclusion start time as Unix epoch seconds.
- start
Time stringUtc - 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_ strutc - 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_ strutc - Exclusion start time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm.
- datacenter
Id Number - The ID of the data center to exclude.
- description String
- A description of the data center exclusion.
- end
Time Number - Exclusion end time as Unix epoch seconds.
- end
Time StringUtc - Exclusion end time in UTC format:
MM/DD/YYYY HH:MM:SS am/pm. - start
Time Number - Exclusion start time as Unix epoch seconds.
- start
Time StringUtc - 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:
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
published on Friday, Mar 13, 2026 by Zscaler
