zia.SubscriptionAlert
Explore with Pulumi AI
Use the zia_subscription_alert resource allows the creation and management of Alert Subscriptions in the Zscaler Internet Access.
Example Usage
resource "zia_subscription_alert" "this" {
email = "alert@acme.com"
description = "Terraform Alert"
pt0_severities = ["CRITICAL"]
secure_severities = ["CRITICAL", "MAJOR", "MINOR", "INFO", "DEBUG"]
manage_severities = ["CRITICAL", "MAJOR", "MINOR", "INFO", "DEBUG"]
comply_severities = ["CRITICAL", "MAJOR", "MINOR", "INFO", "DEBUG"]
system_severities = ["CRITICAL", "MAJOR", "MINOR", "INFO", "DEBUG"]
}
Create SubscriptionAlert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SubscriptionAlert(name: string, args?: SubscriptionAlertArgs, opts?: CustomResourceOptions);
@overload
def SubscriptionAlert(resource_name: str,
args: Optional[SubscriptionAlertArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SubscriptionAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
comply_severities: Optional[Sequence[str]] = None,
description: Optional[str] = None,
email: Optional[str] = None,
manage_severities: Optional[Sequence[str]] = None,
pt0_severities: Optional[Sequence[str]] = None,
secure_severities: Optional[Sequence[str]] = None,
system_severities: Optional[Sequence[str]] = None)
func NewSubscriptionAlert(ctx *Context, name string, args *SubscriptionAlertArgs, opts ...ResourceOption) (*SubscriptionAlert, error)
public SubscriptionAlert(string name, SubscriptionAlertArgs? args = null, CustomResourceOptions? opts = null)
public SubscriptionAlert(String name, SubscriptionAlertArgs args)
public SubscriptionAlert(String name, SubscriptionAlertArgs args, CustomResourceOptions options)
type: zia:SubscriptionAlert
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 SubscriptionAlertArgs
- 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 SubscriptionAlertArgs
- 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 SubscriptionAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionAlertArgs
- 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 subscriptionAlertResource = new Zia.SubscriptionAlert("subscriptionAlertResource", new()
{
ComplySeverities = new[]
{
"string",
},
Description = "string",
Email = "string",
ManageSeverities = new[]
{
"string",
},
Pt0Severities = new[]
{
"string",
},
SecureSeverities = new[]
{
"string",
},
SystemSeverities = new[]
{
"string",
},
});
example, err := zia.NewSubscriptionAlert(ctx, "subscriptionAlertResource", &zia.SubscriptionAlertArgs{
ComplySeverities: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Email: pulumi.String("string"),
ManageSeverities: pulumi.StringArray{
pulumi.String("string"),
},
Pt0Severities: pulumi.StringArray{
pulumi.String("string"),
},
SecureSeverities: pulumi.StringArray{
pulumi.String("string"),
},
SystemSeverities: pulumi.StringArray{
pulumi.String("string"),
},
})
var subscriptionAlertResource = new SubscriptionAlert("subscriptionAlertResource", SubscriptionAlertArgs.builder()
.complySeverities("string")
.description("string")
.email("string")
.manageSeverities("string")
.pt0Severities("string")
.secureSeverities("string")
.systemSeverities("string")
.build());
subscription_alert_resource = zia.SubscriptionAlert("subscriptionAlertResource",
comply_severities=["string"],
description="string",
email="string",
manage_severities=["string"],
pt0_severities=["string"],
secure_severities=["string"],
system_severities=["string"])
const subscriptionAlertResource = new zia.SubscriptionAlert("subscriptionAlertResource", {
complySeverities: ["string"],
description: "string",
email: "string",
manageSeverities: ["string"],
pt0Severities: ["string"],
secureSeverities: ["string"],
systemSeverities: ["string"],
});
type: zia:SubscriptionAlert
properties:
complySeverities:
- string
description: string
email: string
manageSeverities:
- string
pt0Severities:
- string
secureSeverities:
- string
systemSeverities:
- string
SubscriptionAlert 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 SubscriptionAlert resource accepts the following input properties:
- Comply
Severities List<string> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Description string
- (String) Additional comments or information about the alert subscription
- Email string
- The email address of the alert recipient
- Manage
Severities List<string> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Pt0Severities List<string>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Secure
Severities List<string> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- System
Severities List<string> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Comply
Severities []string - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Description string
- (String) Additional comments or information about the alert subscription
- Email string
- The email address of the alert recipient
- Manage
Severities []string - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Pt0Severities []string
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Secure
Severities []string - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- System
Severities []string - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- comply
Severities List<String> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description String
- (String) Additional comments or information about the alert subscription
- email String
- The email address of the alert recipient
- manage
Severities List<String> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities List<String>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities List<String> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities List<String> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- comply
Severities string[] - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description string
- (String) Additional comments or information about the alert subscription
- email string
- The email address of the alert recipient
- manage
Severities string[] - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities string[]
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities string[] - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities string[] - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- comply_
severities Sequence[str] - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description str
- (String) Additional comments or information about the alert subscription
- email str
- The email address of the alert recipient
- manage_
severities Sequence[str] - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0_
severities Sequence[str] - (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure_
severities Sequence[str] - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system_
severities Sequence[str] - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- comply
Severities List<String> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description String
- (String) Additional comments or information about the alert subscription
- email String
- The email address of the alert recipient
- manage
Severities List<String> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities List<String>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities List<String> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities List<String> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
Outputs
All input properties are implicitly available as output properties. Additionally, the SubscriptionAlert resource produces the following output properties:
Look up Existing SubscriptionAlert Resource
Get an existing SubscriptionAlert 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?: SubscriptionAlertState, opts?: CustomResourceOptions): SubscriptionAlert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_id: Optional[int] = None,
comply_severities: Optional[Sequence[str]] = None,
description: Optional[str] = None,
email: Optional[str] = None,
manage_severities: Optional[Sequence[str]] = None,
pt0_severities: Optional[Sequence[str]] = None,
secure_severities: Optional[Sequence[str]] = None,
system_severities: Optional[Sequence[str]] = None) -> SubscriptionAlert
func GetSubscriptionAlert(ctx *Context, name string, id IDInput, state *SubscriptionAlertState, opts ...ResourceOption) (*SubscriptionAlert, error)
public static SubscriptionAlert Get(string name, Input<string> id, SubscriptionAlertState? state, CustomResourceOptions? opts = null)
public static SubscriptionAlert get(String name, Output<String> id, SubscriptionAlertState state, CustomResourceOptions options)
resources: _: type: zia:SubscriptionAlert 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.
- Alert
Id int - System-generated identifier for the alert subscription
- Comply
Severities List<string> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Description string
- (String) Additional comments or information about the alert subscription
- Email string
- The email address of the alert recipient
- Manage
Severities List<string> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Pt0Severities List<string>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Secure
Severities List<string> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- System
Severities List<string> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Alert
Id int - System-generated identifier for the alert subscription
- Comply
Severities []string - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Description string
- (String) Additional comments or information about the alert subscription
- Email string
- The email address of the alert recipient
- Manage
Severities []string - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Pt0Severities []string
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- Secure
Severities []string - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- System
Severities []string - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- alert
Id Integer - System-generated identifier for the alert subscription
- comply
Severities List<String> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description String
- (String) Additional comments or information about the alert subscription
- email String
- The email address of the alert recipient
- manage
Severities List<String> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities List<String>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities List<String> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities List<String> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- alert
Id number - System-generated identifier for the alert subscription
- comply
Severities string[] - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description string
- (String) Additional comments or information about the alert subscription
- email string
- The email address of the alert recipient
- manage
Severities string[] - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities string[]
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities string[] - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities string[] - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- alert_
id int - System-generated identifier for the alert subscription
- comply_
severities Sequence[str] - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description str
- (String) Additional comments or information about the alert subscription
- email str
- The email address of the alert recipient
- manage_
severities Sequence[str] - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0_
severities Sequence[str] - (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure_
severities Sequence[str] - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system_
severities Sequence[str] - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- alert
Id Number - System-generated identifier for the alert subscription
- comply
Severities List<String> - (List of String) Lists the severity levels of the Comply Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- description String
- (String) Additional comments or information about the alert subscription
- email String
- The email address of the alert recipient
- manage
Severities List<String> - (List of String) Lists the severity levels of the Manage Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- pt0Severities List<String>
- (List of String) Lists the severity levels of the Patient 0 Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- secure
Severities List<String> - (List of String) Lists the severity levels of the Secure Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
- system
Severities List<String> - (List of String) Lists the severity levels of the System Severity Alert class information that the recipient receives. Supported Values:
CRITICAL
,MAJOR
,MINOR
,INFO
,DEBUG
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_subscription_alert can be imported by using <ALERT_ID>
or <ALERT_EMAIL>
as the import ID.
For example:
$ pulumi import zia:index/subscriptionAlert:SubscriptionAlert example <alert_id>
or
$ pulumi import zia:index/subscriptionAlert:SubscriptionAlert example <alert_email>
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.