1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. SubCloud
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.SubCloud resource manages sub-cloud configurations in the Zscaler Internet Access (ZIA) cloud. Sub-clouds represent regional cloud instances with associated datacenters and exclusion rules. Create and update both use the same API operation. Deleting the Pulumi resource does not remove the underlying sub-cloud configuration.

    Example Usage

    Basic Sub-Cloud

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.SubCloud("example", {
        cloudId: 1,
        exclusions: [{
            datacenter: {
                resourceId: 100,
                name: "US-East",
                country: "US",
            },
            country: "US",
        }],
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.SubCloud("example",
        cloud_id=1,
        exclusions=[{
            "datacenter": {
                "resource_id": 100,
                "name": "US-East",
                "country": "US",
            },
            "country": "US",
        }],
    )
    
    resources:
      example:
        type: zia:SubCloud
        properties:
          cloudId: 1
          exclusions:
            - datacenter:
                resourceId: 100
                name: US-East
                country: US
              country: US
    

    Create SubCloud Resource

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

    Constructor syntax

    new SubCloud(name: string, args: SubCloudArgs, opts?: CustomResourceOptions);
    @overload
    def SubCloud(resource_name: str,
                 args: SubCloudArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubCloud(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 cloud_id: Optional[int] = None,
                 exclusions: Optional[Sequence[SubCloudExclusionInputArgs]] = None)
    func NewSubCloud(ctx *Context, name string, args SubCloudArgs, opts ...ResourceOption) (*SubCloud, error)
    public SubCloud(string name, SubCloudArgs args, CustomResourceOptions? opts = null)
    public SubCloud(String name, SubCloudArgs args)
    public SubCloud(String name, SubCloudArgs args, CustomResourceOptions options)
    
    type: zia:SubCloud
    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 SubCloudArgs
    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 SubCloudArgs
    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 SubCloudArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubCloudArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubCloudArgs
    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 subCloudResource = new Zia.SubCloud("subCloudResource", new()
    {
        CloudId = 0,
        Exclusions = new[]
        {
            new Zia.Inputs.SubCloudExclusionInputArgs
            {
                Country = "string",
                Datacenter = new Zia.Inputs.SubCloudExclusionDatacenterInputArgs
                {
                    ResourceId = 0,
                    Country = "string",
                    Name = "string",
                },
                EndTime = 0,
                EndTimeUtc = "string",
            },
        },
    });
    
    example, err := zia.NewSubCloud(ctx, "subCloudResource", &zia.SubCloudArgs{
    	CloudId: pulumi.Int(0),
    	Exclusions: pulumizia.SubCloudExclusionInputArray{
    		&pulumizia.SubCloudExclusionInputArgs{
    			Country: pulumi.String("string"),
    			Datacenter: &pulumizia.SubCloudExclusionDatacenterInputArgs{
    				ResourceId: pulumi.Int(0),
    				Country:    pulumi.String("string"),
    				Name:       pulumi.String("string"),
    			},
    			EndTime:    pulumi.Int(0),
    			EndTimeUtc: pulumi.String("string"),
    		},
    	},
    })
    
    var subCloudResource = new SubCloud("subCloudResource", SubCloudArgs.builder()
        .cloudId(0)
        .exclusions(SubCloudExclusionInputArgs.builder()
            .country("string")
            .datacenter(SubCloudExclusionDatacenterInputArgs.builder()
                .resourceId(0)
                .country("string")
                .name("string")
                .build())
            .endTime(0)
            .endTimeUtc("string")
            .build())
        .build());
    
    sub_cloud_resource = zia.SubCloud("subCloudResource",
        cloud_id=0,
        exclusions=[{
            "country": "string",
            "datacenter": {
                "resource_id": 0,
                "country": "string",
                "name": "string",
            },
            "end_time": 0,
            "end_time_utc": "string",
        }])
    
    const subCloudResource = new zia.SubCloud("subCloudResource", {
        cloudId: 0,
        exclusions: [{
            country: "string",
            datacenter: {
                resourceId: 0,
                country: "string",
                name: "string",
            },
            endTime: 0,
            endTimeUtc: "string",
        }],
    });
    
    type: zia:SubCloud
    properties:
        cloudId: 0
        exclusions:
            - country: string
              datacenter:
                country: string
                name: string
                resourceId: 0
              endTime: 0
              endTimeUtc: string
    

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

    CloudId int
    The ID of the cloud to which this sub-cloud belongs.
    Exclusions List<zscaler.PulumiPackage.Zia.Inputs.SubCloudExclusionInput>
    List of datacenter exclusions for the sub-cloud.
    CloudId int
    The ID of the cloud to which this sub-cloud belongs.
    Exclusions []SubCloudExclusionInputArgs
    List of datacenter exclusions for the sub-cloud.
    cloudId Integer
    The ID of the cloud to which this sub-cloud belongs.
    exclusions List<SubCloudExclusionInput>
    List of datacenter exclusions for the sub-cloud.
    cloudId number
    The ID of the cloud to which this sub-cloud belongs.
    exclusions SubCloudExclusionInput[]
    List of datacenter exclusions for the sub-cloud.
    cloud_id int
    The ID of the cloud to which this sub-cloud belongs.
    exclusions Sequence[SubCloudExclusionInputArgs]
    List of datacenter exclusions for the sub-cloud.
    cloudId Number
    The ID of the cloud to which this sub-cloud belongs.
    exclusions List<Property Map>
    List of datacenter exclusions for the sub-cloud.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The resource ID of the sub-cloud.
    Dcs List<zscaler.PulumiPackage.Zia.Outputs.SubCloudDcOutput>
    List of datacenters associated with the sub-cloud.
    Name string
    The name of the sub-cloud.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The resource ID of the sub-cloud.
    Dcs []SubCloudDcOutput
    List of datacenters associated with the sub-cloud.
    Name string
    The name of the sub-cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The resource ID of the sub-cloud.
    dcs List<SubCloudDcOutput>
    List of datacenters associated with the sub-cloud.
    name String
    The name of the sub-cloud.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    The resource ID of the sub-cloud.
    dcs SubCloudDcOutput[]
    List of datacenters associated with the sub-cloud.
    name string
    The name of the sub-cloud.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    The resource ID of the sub-cloud.
    dcs Sequence[SubCloudDcOutput]
    List of datacenters associated with the sub-cloud.
    name str
    The name of the sub-cloud.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The resource ID of the sub-cloud.
    dcs List<Property Map>
    List of datacenters associated with the sub-cloud.
    name String
    The name of the sub-cloud.

    Supporting Types

    SubCloudDcOutput, SubCloudDcOutputArgs

    Country string
    Name string
    ResourceId int
    Country string
    Name string
    ResourceId int
    country String
    name String
    resourceId Integer
    country string
    name string
    resourceId number
    country String
    name String
    resourceId Number

    SubCloudExclusionDatacenterInput, SubCloudExclusionDatacenterInputArgs

    ResourceId int
    Country string
    Name string
    ResourceId int
    Country string
    Name string
    resourceId Integer
    country String
    name String
    resourceId number
    country string
    name string
    resourceId Number
    country String
    name String

    SubCloudExclusionInput, SubCloudExclusionInputArgs

    Import

    This resource uses a no-op delete. Import is not typically applicable for sub-cloud resources.

    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.