1. Packages
  2. Palo Alto Networks Cloud NGFW for AWS Provider
  3. API Docs
  4. getRulestack
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

cloudngfwaws.getRulestack

Explore with Pulumi AI

Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

Data source for retrieving rulestack information.

Admin Permission Type

  • Rulestack (for scope="Local")
  • Global Rulestack (for scope="Global")

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";

const example = cloudngfwaws.getRulestack({
    name: "my-rulestack-name",
});
Copy
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws

example = cloudngfwaws.get_rulestack(name="my-rulestack-name")
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudngfwaws/sdk/go/cloudngfwaws"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudngfwaws.LookupRulestack(ctx, &cloudngfwaws.LookupRulestackArgs{
			Name: "my-rulestack-name",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;

return await Deployment.RunAsync(() => 
{
    var example = CloudNgfwAws.GetRulestack.Invoke(new()
    {
        Name = "my-rulestack-name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.CloudngfwawsFunctions;
import com.pulumi.cloudngfwaws.inputs.GetRulestackArgs;
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 = CloudngfwawsFunctions.getRulestack(GetRulestackArgs.builder()
            .name("my-rulestack-name")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: cloudngfwaws:getRulestack
      arguments:
        name: my-rulestack-name
Copy

Using getRulestack

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 getRulestack(args: GetRulestackArgs, opts?: InvokeOptions): Promise<GetRulestackResult>
function getRulestackOutput(args: GetRulestackOutputArgs, opts?: InvokeOptions): Output<GetRulestackResult>
Copy
def get_rulestack(config_type: Optional[str] = None,
                  name: Optional[str] = None,
                  scope: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetRulestackResult
def get_rulestack_output(config_type: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  scope: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetRulestackResult]
Copy
func LookupRulestack(ctx *Context, args *LookupRulestackArgs, opts ...InvokeOption) (*LookupRulestackResult, error)
func LookupRulestackOutput(ctx *Context, args *LookupRulestackOutputArgs, opts ...InvokeOption) LookupRulestackResultOutput
Copy

> Note: This function is named LookupRulestack in the Go SDK.

public static class GetRulestack 
{
    public static Task<GetRulestackResult> InvokeAsync(GetRulestackArgs args, InvokeOptions? opts = null)
    public static Output<GetRulestackResult> Invoke(GetRulestackInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRulestackResult> getRulestack(GetRulestackArgs args, InvokeOptions options)
public static Output<GetRulestackResult> getRulestack(GetRulestackArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudngfwaws:index/getRulestack:getRulestack
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name
This property is required.
Changes to this property will trigger replacement.
string
The name.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Scope Changes to this property will trigger replacement. string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Scope Changes to this property will trigger replacement. string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
name
This property is required.
Changes to this property will trigger replacement.
String
The name.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope Changes to this property will trigger replacement. String
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
name
This property is required.
Changes to this property will trigger replacement.
string
The name.
configType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope Changes to this property will trigger replacement. string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
name
This property is required.
Changes to this property will trigger replacement.
str
The name.
config_type str
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope Changes to this property will trigger replacement. str
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
name
This property is required.
Changes to this property will trigger replacement.
String
The name.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope Changes to this property will trigger replacement. String
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.

getRulestack Result

The following output properties are available:

AccountGroup string
Account group.
AccountId string
The account ID.
Description string
The description.
Id string
The provider-assigned unique ID for this managed resource.
LookupXForwardedFor string
Lookup x forwarded for.
MinimumAppIdVersion string
Minimum App-ID version number.
Name string
The name.
ProfileConfigs List<Pulumi.CloudNgfwAws.Outputs.GetRulestackProfileConfig>
State string
The rulestack state.
Tags Dictionary<string, string>
The tags.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Scope string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
AccountGroup string
Account group.
AccountId string
The account ID.
Description string
The description.
Id string
The provider-assigned unique ID for this managed resource.
LookupXForwardedFor string
Lookup x forwarded for.
MinimumAppIdVersion string
Minimum App-ID version number.
Name string
The name.
ProfileConfigs []GetRulestackProfileConfig
State string
The rulestack state.
Tags map[string]string
The tags.
ConfigType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
Scope string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
accountGroup String
Account group.
accountId String
The account ID.
description String
The description.
id String
The provider-assigned unique ID for this managed resource.
lookupXForwardedFor String
Lookup x forwarded for.
minimumAppIdVersion String
Minimum App-ID version number.
name String
The name.
profileConfigs List<GetRulestackProfileConfig>
state String
The rulestack state.
tags Map<String,String>
The tags.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope String
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
accountGroup string
Account group.
accountId string
The account ID.
description string
The description.
id string
The provider-assigned unique ID for this managed resource.
lookupXForwardedFor string
Lookup x forwarded for.
minimumAppIdVersion string
Minimum App-ID version number.
name string
The name.
profileConfigs GetRulestackProfileConfig[]
state string
The rulestack state.
tags {[key: string]: string}
The tags.
configType string
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope string
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
account_group str
Account group.
account_id str
The account ID.
description str
The description.
id str
The provider-assigned unique ID for this managed resource.
lookup_x_forwarded_for str
Lookup x forwarded for.
minimum_app_id_version str
Minimum App-ID version number.
name str
The name.
profile_configs Sequence[GetRulestackProfileConfig]
state str
The rulestack state.
tags Mapping[str, str]
The tags.
config_type str
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope str
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.
accountGroup String
Account group.
accountId String
The account ID.
description String
The description.
id String
The provider-assigned unique ID for this managed resource.
lookupXForwardedFor String
Lookup x forwarded for.
minimumAppIdVersion String
Minimum App-ID version number.
name String
The name.
profileConfigs List<Property Map>
state String
The rulestack state.
tags Map<String>
The tags.
configType String
Retrieve either the candidate or running config. Valid values are candidate or running. Defaults to candidate.
scope String
The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are Local or Global. Defaults to Local.

Supporting Types

GetRulestackProfileConfig

AntiSpyware This property is required. string
Anti-spyware profile setting.
AntiVirus This property is required. string
Anti-virus profile setting.
FileBlocking This property is required. string
File blocking profile setting.
OutboundTrustCertificate This property is required. string
Outbound trust certificate.
OutboundUntrustCertificate This property is required. string
Outbound untrust certificate.
UrlFiltering This property is required. string
URL filtering profile setting.
Vulnerability This property is required. string
Vulnerability profile setting.
AntiSpyware This property is required. string
Anti-spyware profile setting.
AntiVirus This property is required. string
Anti-virus profile setting.
FileBlocking This property is required. string
File blocking profile setting.
OutboundTrustCertificate This property is required. string
Outbound trust certificate.
OutboundUntrustCertificate This property is required. string
Outbound untrust certificate.
UrlFiltering This property is required. string
URL filtering profile setting.
Vulnerability This property is required. string
Vulnerability profile setting.
antiSpyware This property is required. String
Anti-spyware profile setting.
antiVirus This property is required. String
Anti-virus profile setting.
fileBlocking This property is required. String
File blocking profile setting.
outboundTrustCertificate This property is required. String
Outbound trust certificate.
outboundUntrustCertificate This property is required. String
Outbound untrust certificate.
urlFiltering This property is required. String
URL filtering profile setting.
vulnerability This property is required. String
Vulnerability profile setting.
antiSpyware This property is required. string
Anti-spyware profile setting.
antiVirus This property is required. string
Anti-virus profile setting.
fileBlocking This property is required. string
File blocking profile setting.
outboundTrustCertificate This property is required. string
Outbound trust certificate.
outboundUntrustCertificate This property is required. string
Outbound untrust certificate.
urlFiltering This property is required. string
URL filtering profile setting.
vulnerability This property is required. string
Vulnerability profile setting.
anti_spyware This property is required. str
Anti-spyware profile setting.
anti_virus This property is required. str
Anti-virus profile setting.
file_blocking This property is required. str
File blocking profile setting.
outbound_trust_certificate This property is required. str
Outbound trust certificate.
outbound_untrust_certificate This property is required. str
Outbound untrust certificate.
url_filtering This property is required. str
URL filtering profile setting.
vulnerability This property is required. str
Vulnerability profile setting.
antiSpyware This property is required. String
Anti-spyware profile setting.
antiVirus This property is required. String
Anti-virus profile setting.
fileBlocking This property is required. String
File blocking profile setting.
outboundTrustCertificate This property is required. String
Outbound trust certificate.
outboundUntrustCertificate This property is required. String
Outbound untrust certificate.
urlFiltering This property is required. String
URL filtering profile setting.
vulnerability This property is required. String
Vulnerability profile setting.

Package Details

Repository
cloudngfwaws pulumi/pulumi-cloudngfwaws
License
Apache-2.0
Notes
This Pulumi package is based on the cloudngfwaws Terraform Provider.
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi