Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
published on Friday, Mar 13, 2026 by Zscaler
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
published on Friday, Mar 13, 2026 by Zscaler
Use the zia:index/getDatacenters:getDatacenters data source to retrieve a list of Zscaler data centers. Results can be filtered by datacenter ID, name (case-insensitive partial match), or city (case-insensitive partial match).
Example Usage
Retrieve All Datacenters
Example coming soon!
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/pulumi-zia"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
all, err := zia.GetDatacenters(ctx, &zia.GetDatacentersArgs{}, nil)
if err != nil {
return err
}
ctx.Export("datacenters", pulumi.ToStringArray(all.Datacenters))
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
const all = zia.getDatacenters({});
export const datacenters = all.then(r => r.datacenters);
import pulumi
import zscaler_pulumi_zia as zia
all = zia.get_datacenters()
pulumi.export("datacenters", all.datacenters)
variables:
all:
fn::invoke:
function: zia:getDatacenters
arguments: {}
outputs:
datacenters: ${all.datacenters}
Filter by City
Example coming soon!
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
const dc = zia.getDatacenters({ city: "San Jose" });
export const datacenters = dc.then(r => r.datacenters);
import pulumi
import zscaler_pulumi_zia as zia
dc = zia.get_datacenters(city="San Jose")
pulumi.export("datacenters", dc.datacenters)
Example coming soon!
Using getDatacenters
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 getDatacenters(args: GetDatacentersArgs, opts?: InvokeOptions): Promise<GetDatacentersResult>
function getDatacentersOutput(args: GetDatacentersOutputArgs, opts?: InvokeOptions): Output<GetDatacentersResult>def get_datacenters(city: Optional[str] = None,
datacenter_id: Optional[int] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatacentersResult
def get_datacenters_output(city: Optional[pulumi.Input[str]] = None,
datacenter_id: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatacentersResult]func GetDatacenters(ctx *Context, args *GetDatacentersArgs, opts ...InvokeOption) (*GetDatacentersResult, error)
func GetDatacentersOutput(ctx *Context, args *GetDatacentersOutputArgs, opts ...InvokeOption) GetDatacentersResultOutput> Note: This function is named GetDatacenters in the Go SDK.
public static class GetDatacenters
{
public static Task<GetDatacentersResult> InvokeAsync(GetDatacentersArgs args, InvokeOptions? opts = null)
public static Output<GetDatacentersResult> Invoke(GetDatacentersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatacentersResult> getDatacenters(GetDatacentersArgs args, InvokeOptions options)
public static Output<GetDatacentersResult> getDatacenters(GetDatacentersArgs args, InvokeOptions options)
fn::invoke:
function: zia:getDatacenters
arguments:
# arguments dictionaryThe following arguments are supported:
- City string
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- Datacenter
Id int - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- Name string
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
- City string
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- Datacenter
Id int - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- Name string
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
- city String
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- datacenter
Id Integer - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- name String
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
- city string
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- datacenter
Id number - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- name string
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
- city str
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- datacenter_
id int - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- name str
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
- city String
- Filter datacenters by city (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's city.
- datacenter
Id Number - Filter datacenters by ID. When exactly one result is returned, this is set to that datacenter's ID.
- name String
- Filter datacenters by name (case-insensitive partial match). When exactly one result is returned, this is set to that datacenter's name.
getDatacenters Result
The following output properties are available:
- Datacenters
List<zscaler.
Pulumi Package. Zia. Outputs. Datacenter Info> - List of datacenters matching the filter criteria.
- City string
- The datacenter city when exactly one result is returned.
- Datacenter
Id int - The datacenter ID when exactly one result is returned.
- Name string
- The datacenter name when exactly one result is returned.
- Datacenters
[]Datacenter
Info - List of datacenters matching the filter criteria.
- City string
- The datacenter city when exactly one result is returned.
- Datacenter
Id int - The datacenter ID when exactly one result is returned.
- Name string
- The datacenter name when exactly one result is returned.
- datacenters
List<Datacenter
Info> - List of datacenters matching the filter criteria.
- city String
- The datacenter city when exactly one result is returned.
- datacenter
Id Integer - The datacenter ID when exactly one result is returned.
- name String
- The datacenter name when exactly one result is returned.
- datacenters
Datacenter
Info[] - List of datacenters matching the filter criteria.
- city string
- The datacenter city when exactly one result is returned.
- datacenter
Id number - The datacenter ID when exactly one result is returned.
- name string
- The datacenter name when exactly one result is returned.
- datacenters
Sequence[Datacenter
Info] - List of datacenters matching the filter criteria.
- city str
- The datacenter city when exactly one result is returned.
- datacenter_
id int - The datacenter ID when exactly one result is returned.
- name str
- The datacenter name when exactly one result is returned.
- datacenters List<Property Map>
- List of datacenters matching the filter criteria.
- city String
- The datacenter city when exactly one result is returned.
- datacenter
Id Number - The datacenter ID when exactly one result is returned.
- name String
- The datacenter name when exactly one result is returned.
Supporting Types
DatacenterInfo
- City string
- Create
Time int - Dont
Provision bool - Dont
Publish bool - Download
Bandwidth int - For
Future boolUse - Gov
Only bool - Id int
- Last
Modified intTime - Lat int
- Latitude double
- Longi int
- Longitude double
- Managed
Bcp bool - Name string
- Not
Ready boolFor Use - Owned
By boolCustomer - Provider string
- Regional
Surcharge bool - Third
Party boolCloud - Timezone string
- Upload
Bandwidth int - Virtual bool
- City string
- Create
Time int - Dont
Provision bool - Dont
Publish bool - Download
Bandwidth int - For
Future boolUse - Gov
Only bool - Id int
- Last
Modified intTime - Lat int
- Latitude float64
- Longi int
- Longitude float64
- Managed
Bcp bool - Name string
- Not
Ready boolFor Use - Owned
By boolCustomer - Provider string
- Regional
Surcharge bool - Third
Party boolCloud - Timezone string
- Upload
Bandwidth int - Virtual bool
- city String
- create
Time Integer - dont
Provision Boolean - dont
Publish Boolean - download
Bandwidth Integer - for
Future BooleanUse - gov
Only Boolean - id Integer
- last
Modified IntegerTime - lat Integer
- latitude Double
- longi Integer
- longitude Double
- managed
Bcp Boolean - name String
- not
Ready BooleanFor Use - owned
By BooleanCustomer - provider String
- regional
Surcharge Boolean - third
Party BooleanCloud - timezone String
- upload
Bandwidth Integer - virtual Boolean
- city string
- create
Time number - dont
Provision boolean - dont
Publish boolean - download
Bandwidth number - for
Future booleanUse - gov
Only boolean - id number
- last
Modified numberTime - lat number
- latitude number
- longi number
- longitude number
- managed
Bcp boolean - name string
- not
Ready booleanFor Use - owned
By booleanCustomer - provider string
- regional
Surcharge boolean - third
Party booleanCloud - timezone string
- upload
Bandwidth number - virtual boolean
- city str
- create_
time int - dont_
provision bool - dont_
publish bool - download_
bandwidth int - for_
future_ booluse - gov_
only bool - id int
- last_
modified_ inttime - lat int
- latitude float
- longi int
- longitude float
- managed_
bcp bool - name str
- not_
ready_ boolfor_ use - owned_
by_ boolcustomer - provider str
- regional_
surcharge bool - third_
party_ boolcloud - timezone str
- upload_
bandwidth int - virtual bool
- city String
- create
Time Number - dont
Provision Boolean - dont
Publish Boolean - download
Bandwidth Number - for
Future BooleanUse - gov
Only Boolean - id Number
- last
Modified NumberTime - lat Number
- latitude Number
- longi Number
- longitude Number
- managed
Bcp Boolean - name String
- not
Ready BooleanFor Use - owned
By BooleanCustomer - provider String
- regional
Surcharge Boolean - third
Party BooleanCloud - timezone String
- upload
Bandwidth Number - virtual Boolean
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
published on Friday, Mar 13, 2026 by Zscaler
