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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.paloalto.LocalRulestackCertificate

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Palo Alto Networks Rulestack Certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "rg-example",
        location: "West Europe",
    });
    const exampleLocalRulestack = new azure.paloalto.LocalRulestack("example", {
        name: "example",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleLocalRulestackCertificate = new azure.paloalto.LocalRulestackCertificate("example", {
        name: "example",
        rulestackId: exampleLocalRulestack.id,
        selfSigned: true,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="rg-example",
        location="West Europe")
    example_local_rulestack = azure.paloalto.LocalRulestack("example",
        name="example",
        resource_group_name=example.name,
        location=example.location)
    example_local_rulestack_certificate = azure.paloalto.LocalRulestackCertificate("example",
        name="example",
        rulestack_id=example_local_rulestack.id,
        self_signed=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/paloalto"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("rg-example"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLocalRulestack, err := paloalto.NewLocalRulestack(ctx, "example", &paloalto.LocalRulestackArgs{
    			Name:              pulumi.String("example"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = paloalto.NewLocalRulestackCertificate(ctx, "example", &paloalto.LocalRulestackCertificateArgs{
    			Name:        pulumi.String("example"),
    			RulestackId: exampleLocalRulestack.ID(),
    			SelfSigned:  pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "rg-example",
            Location = "West Europe",
        });
    
        var exampleLocalRulestack = new Azure.PaloAlto.LocalRulestack("example", new()
        {
            Name = "example",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleLocalRulestackCertificate = new Azure.PaloAlto.LocalRulestackCertificate("example", new()
        {
            Name = "example",
            RulestackId = exampleLocalRulestack.Id,
            SelfSigned = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.paloalto.LocalRulestack;
    import com.pulumi.azure.paloalto.LocalRulestackArgs;
    import com.pulumi.azure.paloalto.LocalRulestackCertificate;
    import com.pulumi.azure.paloalto.LocalRulestackCertificateArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("rg-example")
                .location("West Europe")
                .build());
    
            var exampleLocalRulestack = new LocalRulestack("exampleLocalRulestack", LocalRulestackArgs.builder()
                .name("example")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleLocalRulestackCertificate = new LocalRulestackCertificate("exampleLocalRulestackCertificate", LocalRulestackCertificateArgs.builder()
                .name("example")
                .rulestackId(exampleLocalRulestack.id())
                .selfSigned(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: rg-example
          location: West Europe
      exampleLocalRulestack:
        type: azure:paloalto:LocalRulestack
        name: example
        properties:
          name: example
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleLocalRulestackCertificate:
        type: azure:paloalto:LocalRulestackCertificate
        name: example
        properties:
          name: example
          rulestackId: ${exampleLocalRulestack.id}
          selfSigned: true
    

    Create LocalRulestackCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LocalRulestackCertificate(name: string, args: LocalRulestackCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def LocalRulestackCertificate(resource_name: str,
                                  args: LocalRulestackCertificateArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalRulestackCertificate(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  rulestack_id: Optional[str] = None,
                                  audit_comment: Optional[str] = None,
                                  description: Optional[str] = None,
                                  key_vault_certificate_id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  self_signed: Optional[bool] = None)
    func NewLocalRulestackCertificate(ctx *Context, name string, args LocalRulestackCertificateArgs, opts ...ResourceOption) (*LocalRulestackCertificate, error)
    public LocalRulestackCertificate(string name, LocalRulestackCertificateArgs args, CustomResourceOptions? opts = null)
    public LocalRulestackCertificate(String name, LocalRulestackCertificateArgs args)
    public LocalRulestackCertificate(String name, LocalRulestackCertificateArgs args, CustomResourceOptions options)
    
    type: azure:paloalto:LocalRulestackCertificate
    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 LocalRulestackCertificateArgs
    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 LocalRulestackCertificateArgs
    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 LocalRulestackCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalRulestackCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalRulestackCertificateArgs
    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 localRulestackCertificateResource = new Azure.PaloAlto.LocalRulestackCertificate("localRulestackCertificateResource", new()
    {
        RulestackId = "string",
        AuditComment = "string",
        Description = "string",
        KeyVaultCertificateId = "string",
        Name = "string",
        SelfSigned = false,
    });
    
    example, err := paloalto.NewLocalRulestackCertificate(ctx, "localRulestackCertificateResource", &paloalto.LocalRulestackCertificateArgs{
    	RulestackId:           pulumi.String("string"),
    	AuditComment:          pulumi.String("string"),
    	Description:           pulumi.String("string"),
    	KeyVaultCertificateId: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	SelfSigned:            pulumi.Bool(false),
    })
    
    var localRulestackCertificateResource = new LocalRulestackCertificate("localRulestackCertificateResource", LocalRulestackCertificateArgs.builder()
        .rulestackId("string")
        .auditComment("string")
        .description("string")
        .keyVaultCertificateId("string")
        .name("string")
        .selfSigned(false)
        .build());
    
    local_rulestack_certificate_resource = azure.paloalto.LocalRulestackCertificate("localRulestackCertificateResource",
        rulestack_id="string",
        audit_comment="string",
        description="string",
        key_vault_certificate_id="string",
        name="string",
        self_signed=False)
    
    const localRulestackCertificateResource = new azure.paloalto.LocalRulestackCertificate("localRulestackCertificateResource", {
        rulestackId: "string",
        auditComment: "string",
        description: "string",
        keyVaultCertificateId: "string",
        name: "string",
        selfSigned: false,
    });
    
    type: azure:paloalto:LocalRulestackCertificate
    properties:
        auditComment: string
        description: string
        keyVaultCertificateId: string
        name: string
        rulestackId: string
        selfSigned: false
    

    LocalRulestackCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LocalRulestackCertificate resource accepts the following input properties:

    RulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    AuditComment string
    The comment for Audit purposes.
    Description string
    The description for the Certificate.
    KeyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    Name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    SelfSigned bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    RulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    AuditComment string
    The comment for Audit purposes.
    Description string
    The description for the Certificate.
    KeyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    Name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    SelfSigned bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    rulestackId String
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    auditComment String
    The comment for Audit purposes.
    description String
    The description for the Certificate.
    keyVaultCertificateId String
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name String
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    selfSigned Boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    rulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    auditComment string
    The comment for Audit purposes.
    description string
    The description for the Certificate.
    keyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    selfSigned boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    rulestack_id str
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    audit_comment str
    The comment for Audit purposes.
    description str
    The description for the Certificate.
    key_vault_certificate_id str
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name str
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    self_signed bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    rulestackId String
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    auditComment String
    The comment for Audit purposes.
    description String
    The description for the Certificate.
    keyVaultCertificateId String
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name String
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    selfSigned Boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LocalRulestackCertificate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LocalRulestackCertificate Resource

    Get an existing LocalRulestackCertificate 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?: LocalRulestackCertificateState, opts?: CustomResourceOptions): LocalRulestackCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audit_comment: Optional[str] = None,
            description: Optional[str] = None,
            key_vault_certificate_id: Optional[str] = None,
            name: Optional[str] = None,
            rulestack_id: Optional[str] = None,
            self_signed: Optional[bool] = None) -> LocalRulestackCertificate
    func GetLocalRulestackCertificate(ctx *Context, name string, id IDInput, state *LocalRulestackCertificateState, opts ...ResourceOption) (*LocalRulestackCertificate, error)
    public static LocalRulestackCertificate Get(string name, Input<string> id, LocalRulestackCertificateState? state, CustomResourceOptions? opts = null)
    public static LocalRulestackCertificate get(String name, Output<String> id, LocalRulestackCertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AuditComment string
    The comment for Audit purposes.
    Description string
    The description for the Certificate.
    KeyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    Name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    RulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    SelfSigned bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    AuditComment string
    The comment for Audit purposes.
    Description string
    The description for the Certificate.
    KeyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    Name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    RulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    SelfSigned bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    auditComment String
    The comment for Audit purposes.
    description String
    The description for the Certificate.
    keyVaultCertificateId String
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name String
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    rulestackId String
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    selfSigned Boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    auditComment string
    The comment for Audit purposes.
    description string
    The description for the Certificate.
    keyVaultCertificateId string
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name string
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    rulestackId string
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    selfSigned boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    audit_comment str
    The comment for Audit purposes.
    description str
    The description for the Certificate.
    key_vault_certificate_id str
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name str
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    rulestack_id str
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    self_signed bool

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    auditComment String
    The comment for Audit purposes.
    description String
    The description for the Certificate.
    keyVaultCertificateId String
    The versionles_id of the Key Vault Certificate to use. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    name String
    The name which should be used for this Palo Alto Networks Rulestack Certificate.
    rulestackId String
    The ID of the TODO. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.
    selfSigned Boolean

    Should a Self Signed Certificate be used. Defaults to false. Changing this forces a new Palo Alto Networks Rulestack Certificate to be created.

    Note: One and only one of self_signed or key_vault_certificate_id must be specified.

    Import

    Palo Alto Networks Rulestack Certificates can be imported using the resource id, e.g.

    $ pulumi import azure:paloalto/localRulestackCertificate:LocalRulestackCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/myLocalRulestack/certificates/myCertificate
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi