zia.CloudApplicationInstance
Explore with Pulumi AI
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:
- Instance
Identifiers List<zscaler.Pulumi Package. Zia. Inputs. Cloud Application Instance Instance Identifier> - List of identifiers for the cloud application instance.
- Instance
Type string - Type of the cloud application instance.
- Name string
- Name of the cloud application instance.
- Instance
Identifiers []CloudApplication Instance Instance Identifier Args - List of identifiers for the cloud application instance.
- Instance
Type string - Type of the cloud application instance.
- Name string
- Name of the cloud application instance.
- instance
Identifiers List<CloudApplication Instance Instance Identifier> - List of identifiers for the cloud application instance.
- instance
Type String - Type of the cloud application instance.
- name String
- Name of the cloud application instance.
- instance
Identifiers CloudApplication Instance Instance Identifier[] - List of identifiers for the cloud application instance.
- instance
Type string - Type of the cloud application instance.
- name string
- Name of the cloud application instance.
- instance_
identifiers Sequence[CloudApplication Instance Instance Identifier Args] - 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.
- instance
Identifiers List<Property Map> - List of identifiers for the cloud application instance.
- instance
Type 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.
- Instance
Id int
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id int
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Integer
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id 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.
- instance
Id 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.
- Instance
Id int - Instance
Identifiers List<zscaler.Pulumi Package. Zia. Inputs. Cloud Application Instance Instance Identifier> - List of identifiers for the cloud application instance.
- Instance
Type string - Type of the cloud application instance.
- Name string
- Name of the cloud application instance.
- Instance
Id int - Instance
Identifiers []CloudApplication Instance Instance Identifier Args - List of identifiers for the cloud application instance.
- Instance
Type string - Type of the cloud application instance.
- Name string
- Name of the cloud application instance.
- instance
Id Integer - instance
Identifiers List<CloudApplication Instance Instance Identifier> - List of identifiers for the cloud application instance.
- instance
Type String - Type of the cloud application instance.
- name String
- Name of the cloud application instance.
- instance
Id number - instance
Identifiers CloudApplication Instance Instance Identifier[] - List of identifiers for the cloud application instance.
- instance
Type string - Type of the cloud application instance.
- name string
- Name of the cloud application instance.
- instance_
id int - instance_
identifiers Sequence[CloudApplication Instance Instance Identifier Args] - 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.
- instance
Id Number - instance
Identifiers List<Property Map> - List of identifiers for the cloud application instance.
- instance
Type String - Type of the cloud application instance.
- name String
- Name of the cloud application instance.
Supporting Types
CloudApplicationInstanceInstanceIdentifier, CloudApplicationInstanceInstanceIdentifierArgs
- Identifier
Type string - Type of the cloud application instance.
- Instance
Id int - Unique identifier for the cloud application instance.
- Instance
Identifier string - Unique identifying string for the instance.
- Instance
Identifier stringName - Unique identifying string for the instance.
- Identifier
Type string - Type of the cloud application instance.
- Instance
Id int - Unique identifier for the cloud application instance.
- Instance
Identifier string - Unique identifying string for the instance.
- Instance
Identifier stringName - Unique identifying string for the instance.
- identifier
Type String - Type of the cloud application instance.
- instance
Id Integer - Unique identifier for the cloud application instance.
- instance
Identifier String - Unique identifying string for the instance.
- instance
Identifier StringName - Unique identifying string for the instance.
- identifier
Type string - Type of the cloud application instance.
- instance
Id number - Unique identifier for the cloud application instance.
- instance
Identifier string - Unique identifying string for the instance.
- instance
Identifier stringName - 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_ strname - Unique identifying string for the instance.
- identifier
Type String - Type of the cloud application instance.
- instance
Id Number - Unique identifier for the cloud application instance.
- instance
Identifier String - Unique identifying string for the instance.
- instance
Identifier StringName - 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.