The zia_activation_status resource triggers activation of ZIA pending configuration changes. Use it when you want activation to run as part of your Terraform run, after specific resources are applied — for example, by listing those resources in a depends_on block so that activation runs only after they are created or updated.
Activation timing is controlled by the ZIA platform, not by Terraform. The provider cannot override ZIA’s native behavior (including auto-activation after inactivity or logout). This resource is one of three ways to activate changes with the provider. For the full picture and recommended options, see the Activation Overview guide.
NOTE You can also activate in-flight during apply by setting the
ZIA_ACTIVATIONenvironment variable, or use the recommended out-of-band method with the ziaActivator CLI afterpulumi up. See the Activation Overview guide.
Example Usage
Trigger activation after specific resources are applied using depends_on:
resource "zia_url_filtering_rule" "example" {
name = "Example URL Rule"
# ... other arguments
}
resource "zia_activation_status" "activation" {
status = "ACTIVE"
depends_on = [zia_url_filtering_rule.example]
}
Create ActivationStatus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActivationStatus(name: string, args: ActivationStatusArgs, opts?: CustomResourceOptions);@overload
def ActivationStatus(resource_name: str,
args: ActivationStatusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActivationStatus(resource_name: str,
opts: Optional[ResourceOptions] = None,
status: Optional[str] = None)func NewActivationStatus(ctx *Context, name string, args ActivationStatusArgs, opts ...ResourceOption) (*ActivationStatus, error)public ActivationStatus(string name, ActivationStatusArgs args, CustomResourceOptions? opts = null)
public ActivationStatus(String name, ActivationStatusArgs args)
public ActivationStatus(String name, ActivationStatusArgs args, CustomResourceOptions options)
type: zia:ActivationStatus
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 ActivationStatusArgs
- 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 ActivationStatusArgs
- 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 ActivationStatusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActivationStatusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActivationStatusArgs
- 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 activationStatusResource = new Zia.ActivationStatus("activationStatusResource", new()
{
Status = "string",
});
example, err := zia.NewActivationStatus(ctx, "activationStatusResource", &zia.ActivationStatusArgs{
Status: pulumi.String("string"),
})
var activationStatusResource = new ActivationStatus("activationStatusResource", ActivationStatusArgs.builder()
.status("string")
.build());
activation_status_resource = zia.ActivationStatus("activationStatusResource", status="string")
const activationStatusResource = new zia.ActivationStatus("activationStatusResource", {status: "string"});
type: zia:ActivationStatus
properties:
status: string
ActivationStatus 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 ActivationStatus resource accepts the following input properties:
- Status string
- Organization Policy Edit/Update Activation status
- Status string
- Organization Policy Edit/Update Activation status
- status String
- Organization Policy Edit/Update Activation status
- status string
- Organization Policy Edit/Update Activation status
- status str
- Organization Policy Edit/Update Activation status
- status String
- Organization Policy Edit/Update Activation status
Outputs
All input properties are implicitly available as output properties. Additionally, the ActivationStatus resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ActivationStatus Resource
Get an existing ActivationStatus 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?: ActivationStatusState, opts?: CustomResourceOptions): ActivationStatus@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
status: Optional[str] = None) -> ActivationStatusfunc GetActivationStatus(ctx *Context, name string, id IDInput, state *ActivationStatusState, opts ...ResourceOption) (*ActivationStatus, error)public static ActivationStatus Get(string name, Input<string> id, ActivationStatusState? state, CustomResourceOptions? opts = null)public static ActivationStatus get(String name, Output<String> id, ActivationStatusState state, CustomResourceOptions options)resources: _: type: zia:ActivationStatus 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.
- Status string
- Organization Policy Edit/Update Activation status
- Status string
- Organization Policy Edit/Update Activation status
- status String
- Organization Policy Edit/Update Activation status
- status string
- Organization Policy Edit/Update Activation status
- status str
- Organization Policy Edit/Update Activation status
- status String
- Organization Policy Edit/Update Activation status
Import
Activation is not an importable resource.
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
ziaTerraform Provider.
