prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getAlertRules
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve a list of alert rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getAlertRules({});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_alert_rules()
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.GetAlertRules(ctx, &prismacloud.GetAlertRulesArgs{}, 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.GetAlertRules.Invoke();
});
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.GetAlertRulesArgs;
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.getAlertRules();
}
}
variables:
example:
fn::invoke:
function: prismacloud:getAlertRules
arguments: {}
Using getAlertRules
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 getAlertRules(args: GetAlertRulesArgs, opts?: InvokeOptions): Promise<GetAlertRulesResult>
function getAlertRulesOutput(args: GetAlertRulesOutputArgs, opts?: InvokeOptions): Output<GetAlertRulesResult>
def get_alert_rules(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertRulesResult
def get_alert_rules_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertRulesResult]
func GetAlertRules(ctx *Context, args *GetAlertRulesArgs, opts ...InvokeOption) (*GetAlertRulesResult, error)
func GetAlertRulesOutput(ctx *Context, args *GetAlertRulesOutputArgs, opts ...InvokeOption) GetAlertRulesResultOutput
> Note: This function is named GetAlertRules
in the Go SDK.
public static class GetAlertRules
{
public static Task<GetAlertRulesResult> InvokeAsync(GetAlertRulesArgs args, InvokeOptions? opts = null)
public static Output<GetAlertRulesResult> Invoke(GetAlertRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertRulesResult> getAlertRules(GetAlertRulesArgs args, InvokeOptions options)
public static Output<GetAlertRulesResult> getAlertRules(GetAlertRulesArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getAlertRules:getAlertRules
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getAlertRules Result
The following output properties are available:
- Id string
- Listings
List<Get
Alert Rules Listing> - List of alerts returned, as defined below.
- Total double
- (int) Total number of alert rules.
- Id string
- Listings
[]Get
Alert Rules Listing - List of alerts returned, as defined below.
- Total float64
- (int) Total number of alert rules.
- id String
- listings
List<Get
Alert Rules Listing> - List of alerts returned, as defined below.
- total Double
- (int) Total number of alert rules.
- id string
- listings
Get
Alert Rules Listing[] - List of alerts returned, as defined below.
- total number
- (int) Total number of alert rules.
- id str
- listings
Sequence[Get
Alert Rules Listing] - List of alerts returned, as defined below.
- total float
- (int) Total number of alert rules.
- id String
- listings List<Property Map>
- List of alerts returned, as defined below.
- total Number
- (int) Total number of alert rules.
Supporting Types
GetAlertRulesListing
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Rule/Scan is enabled or not
- Name string
- Rule/Scan name
- Open
Alerts doubleCount - (int) Open alerts count
- Owner string
- Customer
- Policies List<string>
- List of specific policies to scan
- Policy
Scan stringConfig Id - Policy scan config ID
- Read
Only bool - (bool) Model is read-only
- Scan
All bool - (bool) Scan all policies
- Deleted bool
- (bool) Deleted
- Description string
- Description
- Enabled bool
- (bool) Rule/Scan is enabled or not
- Name string
- Rule/Scan name
- Open
Alerts float64Count - (int) Open alerts count
- Owner string
- Customer
- Policies []string
- List of specific policies to scan
- Policy
Scan stringConfig Id - Policy scan config ID
- Read
Only bool - (bool) Model is read-only
- Scan
All bool - (bool) Scan all policies
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Rule/Scan is enabled or not
- name String
- Rule/Scan name
- open
Alerts DoubleCount - (int) Open alerts count
- owner String
- Customer
- policies List<String>
- List of specific policies to scan
- policy
Scan StringConfig Id - Policy scan config ID
- read
Only Boolean - (bool) Model is read-only
- scan
All Boolean - (bool) Scan all policies
- deleted boolean
- (bool) Deleted
- description string
- Description
- enabled boolean
- (bool) Rule/Scan is enabled or not
- name string
- Rule/Scan name
- open
Alerts numberCount - (int) Open alerts count
- owner string
- Customer
- policies string[]
- List of specific policies to scan
- policy
Scan stringConfig Id - Policy scan config ID
- read
Only boolean - (bool) Model is read-only
- scan
All boolean - (bool) Scan all policies
- deleted bool
- (bool) Deleted
- description str
- Description
- enabled bool
- (bool) Rule/Scan is enabled or not
- name str
- Rule/Scan name
- open_
alerts_ floatcount - (int) Open alerts count
- owner str
- Customer
- policies Sequence[str]
- List of specific policies to scan
- policy_
scan_ strconfig_ id - Policy scan config ID
- read_
only bool - (bool) Model is read-only
- scan_
all bool - (bool) Scan all policies
- deleted Boolean
- (bool) Deleted
- description String
- Description
- enabled Boolean
- (bool) Rule/Scan is enabled or not
- name String
- Rule/Scan name
- open
Alerts NumberCount - (int) Open alerts count
- owner String
- Customer
- policies List<String>
- List of specific policies to scan
- policy
Scan StringConfig Id - Policy scan config ID
- read
Only Boolean - (bool) Model is read-only
- scan
All Boolean - (bool) Scan all policies
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks