Viewing docs for prismacloud 1.7.1
published on Tuesday, Mar 3, 2026 by paloaltonetworks
published on Tuesday, Mar 3, 2026 by paloaltonetworks
Viewing docs for prismacloud 1.7.1
published on Tuesday, Mar 3, 2026 by paloaltonetworks
published on Tuesday, Mar 3, 2026 by paloaltonetworks
Retrieve information on a specific alert rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getAlertRule({
name: "My Alert Rule",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_alert_rule(name="My Alert Rule")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.LookupAlertRule(ctx, &prismacloud.LookupAlertRuleArgs{
Name: pulumi.StringRef("My Alert Rule"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = Prismacloud.GetAlertRule.Invoke(new()
{
Name = "My Alert Rule",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetAlertRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PrismacloudFunctions.getAlertRule(GetAlertRuleArgs.builder()
.name("My Alert Rule")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getAlertRule
arguments:
name: My Alert Rule
Using getAlertRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlertRule(args: GetAlertRuleArgs, opts?: InvokeOptions): Promise<GetAlertRuleResult>
function getAlertRuleOutput(args: GetAlertRuleOutputArgs, opts?: InvokeOptions): Output<GetAlertRuleResult>def get_alert_rule(id: Optional[str] = None,
name: Optional[str] = None,
policy_scan_config_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertRuleResult
def get_alert_rule_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_scan_config_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertRuleResult]func LookupAlertRule(ctx *Context, args *LookupAlertRuleArgs, opts ...InvokeOption) (*LookupAlertRuleResult, error)
func LookupAlertRuleOutput(ctx *Context, args *LookupAlertRuleOutputArgs, opts ...InvokeOption) LookupAlertRuleResultOutput> Note: This function is named LookupAlertRule in the Go SDK.
public static class GetAlertRule
{
public static Task<GetAlertRuleResult> InvokeAsync(GetAlertRuleArgs args, InvokeOptions? opts = null)
public static Output<GetAlertRuleResult> Invoke(GetAlertRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlertRuleResult> getAlertRule(GetAlertRuleArgs args, InvokeOptions options)
public static Output<GetAlertRuleResult> getAlertRule(GetAlertRuleArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getAlertRule:getAlertRule
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name string
- Rule/Scan name
- Policy
Scan stringConfig Id - Policy scan config ID
- Id string
- Name string
- Rule/Scan name
- Policy
Scan stringConfig Id - Policy scan config ID
- id String
- name String
- Rule/Scan name
- policy
Scan StringConfig Id - Policy scan config ID
- id string
- name string
- Rule/Scan name
- policy
Scan stringConfig Id - Policy scan config ID
- id str
- name str
- Rule/Scan name
- policy_
scan_ strconfig_ id - Policy scan config ID
- id String
- name String
- Rule/Scan name
- policy
Scan StringConfig Id - Policy scan config ID
getAlertRule Result
The following output properties are available:
- Allow
Auto boolRemediate - (bool) Allow auto-remediation
- Delay
Notification doubleMs - (int) Delay notifications by the specified miliseconds
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Scan enabled
- Excluded
Policies List<string> - List of policies to exclude from scan
- Id string
- Last
Modified stringBy - Last modified by
- Last
Modified doubleOn - (int) Last modified on
- Name string
- Notification
Channels List<string> - List of notification channels
- Notification
Configs List<GetAlert Rule Notification Config> - List of data for notifications to third-party tools, as defined below
- Notify
On boolDismissed - (bool) Include dismissed alerts in notification
- Notify
On boolOpen - (bool) Include open alerts in notification
- Notify
On boolResolved - (bool) Include resolved alerts in notification
- Notify
On boolSnoozed - (bool) Include snoozed alerts in notification
- Open
Alerts doubleCount - (int) Open alerts count
- Owner string
- Owner
- Policies List<string>
- List of specific policies to scan
- Policy
Labels List<string> - List of policy labels
- Policy
Scan stringConfig Id - Read
Only bool - (bool) Read only
- Scan
All bool - (bool) Scan all policies
- Targets
List<Get
Alert Rule Target> - Model for the target filter, as defined below
- Allow
Auto boolRemediate - (bool) Allow auto-remediation
- Delay
Notification float64Ms - (int) Delay notifications by the specified miliseconds
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Scan enabled
- Excluded
Policies []string - List of policies to exclude from scan
- Id string
- Last
Modified stringBy - Last modified by
- Last
Modified float64On - (int) Last modified on
- Name string
- Notification
Channels []string - List of notification channels
- Notification
Configs []GetAlert Rule Notification Config - List of data for notifications to third-party tools, as defined below
- Notify
On boolDismissed - (bool) Include dismissed alerts in notification
- Notify
On boolOpen - (bool) Include open alerts in notification
- Notify
On boolResolved - (bool) Include resolved alerts in notification
- Notify
On boolSnoozed - (bool) Include snoozed alerts in notification
- Open
Alerts float64Count - (int) Open alerts count
- Owner string
- Owner
- Policies []string
- List of specific policies to scan
- Policy
Labels []string - List of policy labels
- Policy
Scan stringConfig Id - Read
Only bool - (bool) Read only
- Scan
All bool - (bool) Scan all policies
- Targets
[]Get
Alert Rule Target - Model for the target filter, as defined below
- allow
Auto BooleanRemediate - (bool) Allow auto-remediation
- delay
Notification DoubleMs - (int) Delay notifications by the specified miliseconds
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Scan enabled
- excluded
Policies List<String> - List of policies to exclude from scan
- id String
- last
Modified StringBy - Last modified by
- last
Modified DoubleOn - (int) Last modified on
- name String
- notification
Channels List<String> - List of notification channels
- notification
Configs List<GetAlert Rule Notification Config> - List of data for notifications to third-party tools, as defined below
- notify
On BooleanDismissed - (bool) Include dismissed alerts in notification
- notify
On BooleanOpen - (bool) Include open alerts in notification
- notify
On BooleanResolved - (bool) Include resolved alerts in notification
- notify
On BooleanSnoozed - (bool) Include snoozed alerts in notification
- open
Alerts DoubleCount - (int) Open alerts count
- owner String
- Owner
- policies List<String>
- List of specific policies to scan
- policy
Labels List<String> - List of policy labels
- policy
Scan StringConfig Id - read
Only Boolean - (bool) Read only
- scan
All Boolean - (bool) Scan all policies
- targets
List<Get
Alert Rule Target> - Model for the target filter, as defined below
- allow
Auto booleanRemediate - (bool) Allow auto-remediation
- delay
Notification numberMs - (int) Delay notifications by the specified miliseconds
- deleted boolean
- (bool) Deleted
- description string
- Description
- enabled boolean
- (bool) Scan enabled
- excluded
Policies string[] - List of policies to exclude from scan
- id string
- last
Modified stringBy - Last modified by
- last
Modified numberOn - (int) Last modified on
- name string
- notification
Channels string[] - List of notification channels
- notification
Configs GetAlert Rule Notification Config[] - List of data for notifications to third-party tools, as defined below
- notify
On booleanDismissed - (bool) Include dismissed alerts in notification
- notify
On booleanOpen - (bool) Include open alerts in notification
- notify
On booleanResolved - (bool) Include resolved alerts in notification
- notify
On booleanSnoozed - (bool) Include snoozed alerts in notification
- open
Alerts numberCount - (int) Open alerts count
- owner string
- Owner
- policies string[]
- List of specific policies to scan
- policy
Labels string[] - List of policy labels
- policy
Scan stringConfig Id - read
Only boolean - (bool) Read only
- scan
All boolean - (bool) Scan all policies
- targets
Get
Alert Rule Target[] - Model for the target filter, as defined below
- allow_
auto_ boolremediate - (bool) Allow auto-remediation
- delay_
notification_ floatms - (int) Delay notifications by the specified miliseconds
- deleted bool
- (bool) Deleted
- description str
- Description
- enabled bool
- (bool) Scan enabled
- excluded_
policies Sequence[str] - List of policies to exclude from scan
- id str
- last_
modified_ strby - Last modified by
- last_
modified_ floaton - (int) Last modified on
- name str
- notification_
channels Sequence[str] - List of notification channels
- notification_
configs Sequence[GetAlert Rule Notification Config] - List of data for notifications to third-party tools, as defined below
- notify_
on_ booldismissed - (bool) Include dismissed alerts in notification
- notify_
on_ boolopen - (bool) Include open alerts in notification
- notify_
on_ boolresolved - (bool) Include resolved alerts in notification
- notify_
on_ boolsnoozed - (bool) Include snoozed alerts in notification
- open_
alerts_ floatcount - (int) Open alerts count
- owner str
- Owner
- policies Sequence[str]
- List of specific policies to scan
- policy_
labels Sequence[str] - List of policy labels
- policy_
scan_ strconfig_ id - read_
only bool - (bool) Read only
- scan_
all bool - (bool) Scan all policies
- targets
Sequence[Get
Alert Rule Target] - Model for the target filter, as defined below
- allow
Auto BooleanRemediate - (bool) Allow auto-remediation
- delay
Notification NumberMs - (int) Delay notifications by the specified miliseconds
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Scan enabled
- excluded
Policies List<String> - List of policies to exclude from scan
- id String
- last
Modified StringBy - Last modified by
- last
Modified NumberOn - (int) Last modified on
- name String
- notification
Channels List<String> - List of notification channels
- notification
Configs List<Property Map> - List of data for notifications to third-party tools, as defined below
- notify
On BooleanDismissed - (bool) Include dismissed alerts in notification
- notify
On BooleanOpen - (bool) Include open alerts in notification
- notify
On BooleanResolved - (bool) Include resolved alerts in notification
- notify
On BooleanSnoozed - (bool) Include snoozed alerts in notification
- open
Alerts NumberCount - (int) Open alerts count
- owner String
- Owner
- policies List<String>
- List of specific policies to scan
- policy
Labels List<String> - List of policy labels
- policy
Scan StringConfig Id - read
Only Boolean - (bool) Read only
- scan
All Boolean - (bool) Scan all policies
- targets List<Property Map>
- Model for the target filter, as defined below
Supporting Types
GetAlertRuleNotificationConfig
- Config
Id string - Alert rule notification config ID
- Config
Type string - Config type
- Day
Of doubleMonth - (int) Day of month
- Days
Of List<GetWeeks Alert Rule Notification Config Days Of Week> - List of days of week, as defined below
- Detailed
Report bool - (bool) Provide CSV detailed report
- Enabled bool
- (bool) Scan enabled
- Frequency string
- Frequency
- Frequency
From stringRRule - Frequency from R rule
- Hour
Of doubleDay - (int) Hour of day
- Include
Remediation bool - (bool) Include remediation in detailed report
- Last
Sent doubleTs - (int) Time of last notification in miliseconds
- Last
Updated double - (int) Last updated
- RRule
Schedule string - R rule schedule
- Recipients List<string>
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- Template
Id string - Template ID
- Timezone
Id string - Timezone ID
- With
Compression bool - (bool) Compress detailed report
- Config
Id string - Alert rule notification config ID
- Config
Type string - Config type
- Day
Of float64Month - (int) Day of month
- Days
Of []GetWeeks Alert Rule Notification Config Days Of Week - List of days of week, as defined below
- Detailed
Report bool - (bool) Provide CSV detailed report
- Enabled bool
- (bool) Scan enabled
- Frequency string
- Frequency
- Frequency
From stringRRule - Frequency from R rule
- Hour
Of float64Day - (int) Hour of day
- Include
Remediation bool - (bool) Include remediation in detailed report
- Last
Sent float64Ts - (int) Time of last notification in miliseconds
- Last
Updated float64 - (int) Last updated
- RRule
Schedule string - R rule schedule
- Recipients []string
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- Template
Id string - Template ID
- Timezone
Id string - Timezone ID
- With
Compression bool - (bool) Compress detailed report
- config
Id String - Alert rule notification config ID
- config
Type String - Config type
- day
Of DoubleMonth - (int) Day of month
- days
Of List<GetWeeks Alert Rule Notification Config Days Of Week> - List of days of week, as defined below
- detailed
Report Boolean - (bool) Provide CSV detailed report
- enabled Boolean
- (bool) Scan enabled
- frequency String
- Frequency
- frequency
From StringRRule - Frequency from R rule
- hour
Of DoubleDay - (int) Hour of day
- include
Remediation Boolean - (bool) Include remediation in detailed report
- last
Sent DoubleTs - (int) Time of last notification in miliseconds
- last
Updated Double - (int) Last updated
- r
Rule StringSchedule - R rule schedule
- recipients List<String>
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- template
Id String - Template ID
- timezone
Id String - Timezone ID
- with
Compression Boolean - (bool) Compress detailed report
- config
Id string - Alert rule notification config ID
- config
Type string - Config type
- day
Of numberMonth - (int) Day of month
- days
Of GetWeeks Alert Rule Notification Config Days Of Week[] - List of days of week, as defined below
- detailed
Report boolean - (bool) Provide CSV detailed report
- enabled boolean
- (bool) Scan enabled
- frequency string
- Frequency
- frequency
From stringRRule - Frequency from R rule
- hour
Of numberDay - (int) Hour of day
- include
Remediation boolean - (bool) Include remediation in detailed report
- last
Sent numberTs - (int) Time of last notification in miliseconds
- last
Updated number - (int) Last updated
- r
Rule stringSchedule - R rule schedule
- recipients string[]
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- template
Id string - Template ID
- timezone
Id string - Timezone ID
- with
Compression boolean - (bool) Compress detailed report
- config_
id str - Alert rule notification config ID
- config_
type str - Config type
- day_
of_ floatmonth - (int) Day of month
- days_
of_ Sequence[Getweeks Alert Rule Notification Config Days Of Week] - List of days of week, as defined below
- detailed_
report bool - (bool) Provide CSV detailed report
- enabled bool
- (bool) Scan enabled
- frequency str
- Frequency
- frequency_
from_ strr_ rule - Frequency from R rule
- hour_
of_ floatday - (int) Hour of day
- include_
remediation bool - (bool) Include remediation in detailed report
- last_
sent_ floatts - (int) Time of last notification in miliseconds
- last_
updated float - (int) Last updated
- r_
rule_ strschedule - R rule schedule
- recipients Sequence[str]
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- template_
id str - Template ID
- timezone_
id str - Timezone ID
- with_
compression bool - (bool) Compress detailed report
- config
Id String - Alert rule notification config ID
- config
Type String - Config type
- day
Of NumberMonth - (int) Day of month
- days
Of List<Property Map>Weeks - List of days of week, as defined below
- detailed
Report Boolean - (bool) Provide CSV detailed report
- enabled Boolean
- (bool) Scan enabled
- frequency String
- Frequency
- frequency
From StringRRule - Frequency from R rule
- hour
Of NumberDay - (int) Hour of day
- include
Remediation Boolean - (bool) Include remediation in detailed report
- last
Sent NumberTs - (int) Time of last notification in miliseconds
- last
Updated Number - (int) Last updated
- r
Rule StringSchedule - R rule schedule
- recipients List<String>
- List of unique email addresses to notify (For email notifications), List of integration ids (For integrations without notification templates), or List of notification template ids (For integrations with notification templates)
- template
Id String - Template ID
- timezone
Id String - Timezone ID
- with
Compression Boolean - (bool) Compress detailed report
GetAlertRuleNotificationConfigDaysOfWeek
GetAlertRuleTarget
- Account
Groups List<string> - List of account groups
- Alert
Rule List<GetPolicy Filters Alert Rule Target Alert Rule Policy Filter> - Model for Alert Rule Policy Filter, as defined below
- Excluded
Accounts List<string> - List of excluded accounts
- Regions List<string>
- List of regions
- Resource
Lists List<GetAlert Rule Target Resource List> - Model for holding the resource list for compute access groups below
-
List<Get
Alert Rule Target Tag> - List of TargetTag objects, as defined below
- Account
Groups []string - List of account groups
- Alert
Rule []GetPolicy Filters Alert Rule Target Alert Rule Policy Filter - Model for Alert Rule Policy Filter, as defined below
- Excluded
Accounts []string - List of excluded accounts
- Regions []string
- List of regions
- Resource
Lists []GetAlert Rule Target Resource List - Model for holding the resource list for compute access groups below
-
[]Get
Alert Rule Target Tag - List of TargetTag objects, as defined below
- account
Groups List<String> - List of account groups
- alert
Rule List<GetPolicy Filters Alert Rule Target Alert Rule Policy Filter> - Model for Alert Rule Policy Filter, as defined below
- excluded
Accounts List<String> - List of excluded accounts
- regions List<String>
- List of regions
- resource
Lists List<GetAlert Rule Target Resource List> - Model for holding the resource list for compute access groups below
-
List<Get
Alert Rule Target Tag> - List of TargetTag objects, as defined below
- account
Groups string[] - List of account groups
- alert
Rule GetPolicy Filters Alert Rule Target Alert Rule Policy Filter[] - Model for Alert Rule Policy Filter, as defined below
- excluded
Accounts string[] - List of excluded accounts
- regions string[]
- List of regions
- resource
Lists GetAlert Rule Target Resource List[] - Model for holding the resource list for compute access groups below
-
Get
Alert Rule Target Tag[] - List of TargetTag objects, as defined below
- account_
groups Sequence[str] - List of account groups
- alert_
rule_ Sequence[Getpolicy_ filters Alert Rule Target Alert Rule Policy Filter] - Model for Alert Rule Policy Filter, as defined below
- excluded_
accounts Sequence[str] - List of excluded accounts
- regions Sequence[str]
- List of regions
- resource_
lists Sequence[GetAlert Rule Target Resource List] - Model for holding the resource list for compute access groups below
-
Sequence[Get
Alert Rule Target Tag] - List of TargetTag objects, as defined below
- account
Groups List<String> - List of account groups
- alert
Rule List<Property Map>Policy Filters - Model for Alert Rule Policy Filter, as defined below
- excluded
Accounts List<String> - List of excluded accounts
- regions List<String>
- List of regions
- resource
Lists List<Property Map> - Model for holding the resource list for compute access groups below
- List<Property Map>
- List of TargetTag objects, as defined below
GetAlertRuleTargetAlertRulePolicyFilter
- Cloud
Types List<string> - Cloud Type.
- Policy
Compliance List<string>Standards - Compliance Standard name.
- Policy
Labels List<string> - Policy Label.
- Policy
Severities List<string> - Policy Severity.
- Cloud
Types []string - Cloud Type.
- Policy
Compliance []stringStandards - Compliance Standard name.
- Policy
Labels []string - Policy Label.
- Policy
Severities []string - Policy Severity.
- cloud
Types List<String> - Cloud Type.
- policy
Compliance List<String>Standards - Compliance Standard name.
- policy
Labels List<String> - Policy Label.
- policy
Severities List<String> - Policy Severity.
- cloud
Types string[] - Cloud Type.
- policy
Compliance string[]Standards - Compliance Standard name.
- policy
Labels string[] - Policy Label.
- policy
Severities string[] - Policy Severity.
- cloud_
types Sequence[str] - Cloud Type.
- policy_
compliance_ Sequence[str]standards - Compliance Standard name.
- policy_
labels Sequence[str] - Policy Label.
- policy_
severities Sequence[str] - Policy Severity.
- cloud
Types List<String> - Cloud Type.
- policy
Compliance List<String>Standards - Compliance Standard name.
- policy
Labels List<String> - Policy Label.
- policy
Severities List<String> - Policy Severity.
GetAlertRuleTargetResourceList
- Compute
Access List<string>Group Ids - List of compute access group IDs.
- Compute
Access []stringGroup Ids - List of compute access group IDs.
- compute
Access List<String>Group Ids - List of compute access group IDs.
- compute
Access string[]Group Ids - List of compute access group IDs.
- compute_
access_ Sequence[str]group_ ids - List of compute access group IDs.
- compute
Access List<String>Group Ids - List of compute access group IDs.
GetAlertRuleTargetTag
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloudTerraform Provider.
Viewing docs for prismacloud 1.7.1
published on Tuesday, Mar 3, 2026 by paloaltonetworks
published on Tuesday, Mar 3, 2026 by paloaltonetworks
