1. Packages
  2. Azure Classic
  3. API Docs
  4. paloalto
  5. getLocalRulestack

We recommend using Azure Native.

Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi

azure.paloalto.getLocalRulestack

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi

    Use this data source to access information about an existing Palo Alto Networks Rulestack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.paloalto.getLocalRulestack({
        name: "existing",
        resourceGroupName: "existing",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.paloalto.get_local_rulestack(name="existing",
        resource_group_name="existing")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/paloalto"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := paloalto.LookupLocalRulestack(ctx, &paloalto.LookupLocalRulestackArgs{
    			Name:              "existing",
    			ResourceGroupName: "existing",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.PaloAlto.GetLocalRulestack.Invoke(new()
        {
            Name = "existing",
            ResourceGroupName = "existing",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getLocalRulestackResult => getLocalRulestackResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.paloalto.PaloaltoFunctions;
    import com.pulumi.azure.paloalto.inputs.GetLocalRulestackArgs;
    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 = PaloaltoFunctions.getLocalRulestack(GetLocalRulestackArgs.builder()
                .name("existing")
                .resourceGroupName("existing")
                .build());
    
            ctx.export("id", example.id());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:paloalto:getLocalRulestack
          arguments:
            name: existing
            resourceGroupName: existing
    outputs:
      id: ${example.id}
    

    API Providers

    This data source uses the following Azure API Providers:

    • PaloAltoNetworks.Cloudngfw: 2022-08-29

    Using getLocalRulestack

    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 getLocalRulestack(args: GetLocalRulestackArgs, opts?: InvokeOptions): Promise<GetLocalRulestackResult>
    function getLocalRulestackOutput(args: GetLocalRulestackOutputArgs, opts?: InvokeOptions): Output<GetLocalRulestackResult>
    def get_local_rulestack(name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLocalRulestackResult
    def get_local_rulestack_output(name: Optional[pulumi.Input[str]] = None,
                            resource_group_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLocalRulestackResult]
    func LookupLocalRulestack(ctx *Context, args *LookupLocalRulestackArgs, opts ...InvokeOption) (*LookupLocalRulestackResult, error)
    func LookupLocalRulestackOutput(ctx *Context, args *LookupLocalRulestackOutputArgs, opts ...InvokeOption) LookupLocalRulestackResultOutput

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

    public static class GetLocalRulestack 
    {
        public static Task<GetLocalRulestackResult> InvokeAsync(GetLocalRulestackArgs args, InvokeOptions? opts = null)
        public static Output<GetLocalRulestackResult> Invoke(GetLocalRulestackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocalRulestackResult> getLocalRulestack(GetLocalRulestackArgs args, InvokeOptions options)
    public static Output<GetLocalRulestackResult> getLocalRulestack(GetLocalRulestackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:paloalto/getLocalRulestack:getLocalRulestack
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of this Palo Alto Networks Rulestack.
    ResourceGroupName string
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.
    Name string
    The name of this Palo Alto Networks Rulestack.
    ResourceGroupName string
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.
    name String
    The name of this Palo Alto Networks Rulestack.
    resourceGroupName String
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.
    name string
    The name of this Palo Alto Networks Rulestack.
    resourceGroupName string
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.
    name str
    The name of this Palo Alto Networks Rulestack.
    resource_group_name str
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.
    name String
    The name of this Palo Alto Networks Rulestack.
    resourceGroupName String
    The name of the Resource Group where the Palo Alto Networks Rulestack exists.

    getLocalRulestack Result

    The following output properties are available:

    AntiSpywareProfile string
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    AntiVirusProfile string
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    Description string
    The description of the Palo Alto Networks Rulestack.
    DnsSubscription string
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    FileBlockingProfile string
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Palo Alto Networks Rulestack exists.
    Name string
    OutboundTrustCertificate string
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    OutboundUntrustCertificate string
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    ResourceGroupName string
    UrlFilteringProfile string
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    VulnerabilityProfile string
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.
    AntiSpywareProfile string
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    AntiVirusProfile string
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    Description string
    The description of the Palo Alto Networks Rulestack.
    DnsSubscription string
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    FileBlockingProfile string
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Palo Alto Networks Rulestack exists.
    Name string
    OutboundTrustCertificate string
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    OutboundUntrustCertificate string
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    ResourceGroupName string
    UrlFilteringProfile string
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    VulnerabilityProfile string
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.
    antiSpywareProfile String
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    antiVirusProfile String
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    description String
    The description of the Palo Alto Networks Rulestack.
    dnsSubscription String
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    fileBlockingProfile String
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Palo Alto Networks Rulestack exists.
    name String
    outboundTrustCertificate String
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    outboundUntrustCertificate String
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    resourceGroupName String
    urlFilteringProfile String
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    vulnerabilityProfile String
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.
    antiSpywareProfile string
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    antiVirusProfile string
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    description string
    The description of the Palo Alto Networks Rulestack.
    dnsSubscription string
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    fileBlockingProfile string
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Azure Region where the Palo Alto Networks Rulestack exists.
    name string
    outboundTrustCertificate string
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    outboundUntrustCertificate string
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    resourceGroupName string
    urlFilteringProfile string
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    vulnerabilityProfile string
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.
    anti_spyware_profile str
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    anti_virus_profile str
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    description str
    The description of the Palo Alto Networks Rulestack.
    dns_subscription str
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    file_blocking_profile str
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Azure Region where the Palo Alto Networks Rulestack exists.
    name str
    outbound_trust_certificate str
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    outbound_untrust_certificate str
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    resource_group_name str
    url_filtering_profile str
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    vulnerability_profile str
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.
    antiSpywareProfile String
    The Anti-Spyware setting used by the Palo Alto Networks Rulestack.
    antiVirusProfile String
    The Anti-Virus setting used by the Palo Alto Networks Rulestack.
    description String
    The description of the Palo Alto Networks Rulestack.
    dnsSubscription String
    The DNS Subscription setting used by the Palo Alto Networks Rulestack.
    fileBlockingProfile String
    The File Blocking Profile used by the Palo Alto Networks Rulestack.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Palo Alto Networks Rulestack exists.
    name String
    outboundTrustCertificate String
    The trusted egress decryption profile data for the Palo Alto Networks Rulestack.
    outboundUntrustCertificate String
    The untrusted egress decryption profile data for the Palo Alto Networks Rulestack.
    resourceGroupName String
    urlFilteringProfile String
    The URL Filtering Profile used by the Palo Alto Networks Rulestack.
    vulnerabilityProfile String
    The Vulnerability Profile used by the Palo Alto Networks Rulestack.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.23.0 published on Thursday, May 22, 2025 by Pulumi