1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. CloudApplicationInstance
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

zia.CloudApplicationInstance

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

    The zia_cloud_application_instance resource allows the creation and management of cloud application instance.

    Example Usage

    resource "zia_cloud_application_instance" "this" {
      name          = "SharePointOnline"
      instance_type = "SHAREPOINTONLINE"
    
      instance_identifiers {
        instance_identifier      = "acme.sharepoint.com"
        instance_identifier_name = "acme"
        identifier_type          = "URL"
      }
    
      instance_identifiers {
        instance_identifier      = "acme1.sharepoint.com"
        instance_identifier_name = "acme1"
        identifier_type          = "URL"
      }
    
      instance_identifiers {
        instance_identifier      = "acme2.sharepoint.com"
        instance_identifier_name = "acme2"
        identifier_type          = "URL"
      }
    }
    

    Create CloudApplicationInstance Resource

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

    Constructor syntax

    new CloudApplicationInstance(name: string, args?: CloudApplicationInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def CloudApplicationInstance(resource_name: str,
                                 args: Optional[CloudApplicationInstanceArgs] = None,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudApplicationInstance(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 instance_identifiers: Optional[Sequence[CloudApplicationInstanceInstanceIdentifierArgs]] = None,
                                 instance_type: Optional[str] = None,
                                 name: Optional[str] = None)
    func NewCloudApplicationInstance(ctx *Context, name string, args *CloudApplicationInstanceArgs, opts ...ResourceOption) (*CloudApplicationInstance, error)
    public CloudApplicationInstance(string name, CloudApplicationInstanceArgs? args = null, CustomResourceOptions? opts = null)
    public CloudApplicationInstance(String name, CloudApplicationInstanceArgs args)
    public CloudApplicationInstance(String name, CloudApplicationInstanceArgs args, CustomResourceOptions options)
    
    type: zia:CloudApplicationInstance
    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 CloudApplicationInstanceArgs
    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 CloudApplicationInstanceArgs
    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 CloudApplicationInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudApplicationInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudApplicationInstanceArgs
    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 cloudApplicationInstanceResource = new Zia.CloudApplicationInstance("cloudApplicationInstanceResource", new()
    {
        InstanceIdentifiers = new[]
        {
            new Zia.Inputs.CloudApplicationInstanceInstanceIdentifierArgs
            {
                IdentifierType = "string",
                InstanceId = 0,
                InstanceIdentifier = "string",
                InstanceIdentifierName = "string",
            },
        },
        InstanceType = "string",
        Name = "string",
    });
    
    example, err := zia.NewCloudApplicationInstance(ctx, "cloudApplicationInstanceResource", &zia.CloudApplicationInstanceArgs{
    	InstanceIdentifiers: zia.CloudApplicationInstanceInstanceIdentifierArray{
    		&zia.CloudApplicationInstanceInstanceIdentifierArgs{
    			IdentifierType:         pulumi.String("string"),
    			InstanceId:             pulumi.Int(0),
    			InstanceIdentifier:     pulumi.String("string"),
    			InstanceIdentifierName: pulumi.String("string"),
    		},
    	},
    	InstanceType: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    var cloudApplicationInstanceResource = new CloudApplicationInstance("cloudApplicationInstanceResource", CloudApplicationInstanceArgs.builder()
        .instanceIdentifiers(CloudApplicationInstanceInstanceIdentifierArgs.builder()
            .identifierType("string")
            .instanceId(0)
            .instanceIdentifier("string")
            .instanceIdentifierName("string")
            .build())
        .instanceType("string")
        .name("string")
        .build());
    
    cloud_application_instance_resource = zia.CloudApplicationInstance("cloudApplicationInstanceResource",
        instance_identifiers=[{
            "identifier_type": "string",
            "instance_id": 0,
            "instance_identifier": "string",
            "instance_identifier_name": "string",
        }],
        instance_type="string",
        name="string")
    
    const cloudApplicationInstanceResource = new zia.CloudApplicationInstance("cloudApplicationInstanceResource", {
        instanceIdentifiers: [{
            identifierType: "string",
            instanceId: 0,
            instanceIdentifier: "string",
            instanceIdentifierName: "string",
        }],
        instanceType: "string",
        name: "string",
    });
    
    type: zia:CloudApplicationInstance
    properties:
        instanceIdentifiers:
            - identifierType: string
              instanceId: 0
              instanceIdentifier: string
              instanceIdentifierName: string
        instanceType: string
        name: string
    

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

    InstanceIdentifiers List<zscaler.PulumiPackage.Zia.Inputs.CloudApplicationInstanceInstanceIdentifier>
    List of identifiers for the cloud application instance.
    InstanceType string
    Type of the cloud application instance.
    Name string
    Name of the cloud application instance.
    InstanceIdentifiers []CloudApplicationInstanceInstanceIdentifierArgs
    List of identifiers for the cloud application instance.
    InstanceType string
    Type of the cloud application instance.
    Name string
    Name of the cloud application instance.
    instanceIdentifiers List<CloudApplicationInstanceInstanceIdentifier>
    List of identifiers for the cloud application instance.
    instanceType String
    Type of the cloud application instance.
    name String
    Name of the cloud application instance.
    instanceIdentifiers CloudApplicationInstanceInstanceIdentifier[]
    List of identifiers for the cloud application instance.
    instanceType string
    Type of the cloud application instance.
    name string
    Name of the cloud application instance.
    instance_identifiers Sequence[CloudApplicationInstanceInstanceIdentifierArgs]
    List of identifiers for the cloud application instance.
    instance_type str
    Type of the cloud application instance.
    name str
    Name of the cloud application instance.
    instanceIdentifiers List<Property Map>
    List of identifiers for the cloud application instance.
    instanceType String
    Type of the cloud application instance.
    name String
    Name of the cloud application instance.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId int
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId int
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId number
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id int
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Number

    Look up Existing CloudApplicationInstance Resource

    Get an existing CloudApplicationInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudApplicationInstanceState, opts?: CustomResourceOptions): CloudApplicationInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[int] = None,
            instance_identifiers: Optional[Sequence[CloudApplicationInstanceInstanceIdentifierArgs]] = None,
            instance_type: Optional[str] = None,
            name: Optional[str] = None) -> CloudApplicationInstance
    func GetCloudApplicationInstance(ctx *Context, name string, id IDInput, state *CloudApplicationInstanceState, opts ...ResourceOption) (*CloudApplicationInstance, error)
    public static CloudApplicationInstance Get(string name, Input<string> id, CloudApplicationInstanceState? state, CustomResourceOptions? opts = null)
    public static CloudApplicationInstance get(String name, Output<String> id, CloudApplicationInstanceState state, CustomResourceOptions options)
    resources:  _:    type: zia:CloudApplicationInstance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    InstanceId int
    InstanceIdentifiers List<zscaler.PulumiPackage.Zia.Inputs.CloudApplicationInstanceInstanceIdentifier>
    List of identifiers for the cloud application instance.
    InstanceType string
    Type of the cloud application instance.
    Name string
    Name of the cloud application instance.
    InstanceId int
    InstanceIdentifiers []CloudApplicationInstanceInstanceIdentifierArgs
    List of identifiers for the cloud application instance.
    InstanceType string
    Type of the cloud application instance.
    Name string
    Name of the cloud application instance.
    instanceId Integer
    instanceIdentifiers List<CloudApplicationInstanceInstanceIdentifier>
    List of identifiers for the cloud application instance.
    instanceType String
    Type of the cloud application instance.
    name String
    Name of the cloud application instance.
    instanceId number
    instanceIdentifiers CloudApplicationInstanceInstanceIdentifier[]
    List of identifiers for the cloud application instance.
    instanceType string
    Type of the cloud application instance.
    name string
    Name of the cloud application instance.
    instance_id int
    instance_identifiers Sequence[CloudApplicationInstanceInstanceIdentifierArgs]
    List of identifiers for the cloud application instance.
    instance_type str
    Type of the cloud application instance.
    name str
    Name of the cloud application instance.
    instanceId Number
    instanceIdentifiers List<Property Map>
    List of identifiers for the cloud application instance.
    instanceType String
    Type of the cloud application instance.
    name String
    Name of the cloud application instance.

    Supporting Types

    CloudApplicationInstanceInstanceIdentifier, CloudApplicationInstanceInstanceIdentifierArgs

    IdentifierType string
    Type of the cloud application instance.
    InstanceId int
    Unique identifier for the cloud application instance.
    InstanceIdentifier string
    Unique identifying string for the instance.
    InstanceIdentifierName string
    Unique identifying string for the instance.
    IdentifierType string
    Type of the cloud application instance.
    InstanceId int
    Unique identifier for the cloud application instance.
    InstanceIdentifier string
    Unique identifying string for the instance.
    InstanceIdentifierName string
    Unique identifying string for the instance.
    identifierType String
    Type of the cloud application instance.
    instanceId Integer
    Unique identifier for the cloud application instance.
    instanceIdentifier String
    Unique identifying string for the instance.
    instanceIdentifierName String
    Unique identifying string for the instance.
    identifierType string
    Type of the cloud application instance.
    instanceId number
    Unique identifier for the cloud application instance.
    instanceIdentifier string
    Unique identifying string for the instance.
    instanceIdentifierName string
    Unique identifying string for the instance.
    identifier_type str
    Type of the cloud application instance.
    instance_id int
    Unique identifier for the cloud application instance.
    instance_identifier str
    Unique identifying string for the instance.
    instance_identifier_name str
    Unique identifying string for the instance.
    identifierType String
    Type of the cloud application instance.
    instanceId Number
    Unique identifier for the cloud application instance.
    instanceIdentifier String
    Unique identifying string for the instance.
    instanceIdentifierName String
    Unique identifying string for the instance.

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.

    Visit

    zia_cloud_application_instance can be imported by using <INSTANCE_ID> or <INSTANCE_NAME> as the import ID.

    For example:

    $ pulumi import zia:index/cloudApplicationInstance:CloudApplicationInstance example <instance_id>
    

    or

    $ pulumi import zia:index/cloudApplicationInstance:CloudApplicationInstance example <instance_name>
    

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

    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.1.1 published on Tuesday, Jun 24, 2025 by Zscaler