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

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages a Palo Alto Networks Rulestack Outbound Trust Certificate Association.

    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,
    });
    const exampleLocalRulestackOutboundTrustCertificateAssociation = new azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation("example", {certificateId: exampleLocalRulestackCertificate.id});
    
    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)
    example_local_rulestack_outbound_trust_certificate_association = azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation("example", certificate_id=example_local_rulestack_certificate.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"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 := 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
    		}
    		exampleLocalRulestackCertificate, err := paloalto.NewLocalRulestackCertificate(ctx, "example", &paloalto.LocalRulestackCertificateArgs{
    			Name:        pulumi.String("example"),
    			RulestackId: exampleLocalRulestack.ID(),
    			SelfSigned:  pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = paloalto.NewLocalRulestackOutboundTrustCertificateAssociation(ctx, "example", &paloalto.LocalRulestackOutboundTrustCertificateAssociationArgs{
    			CertificateId: exampleLocalRulestackCertificate.ID(),
    		})
    		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,
        });
    
        var exampleLocalRulestackOutboundTrustCertificateAssociation = new Azure.PaloAlto.LocalRulestackOutboundTrustCertificateAssociation("example", new()
        {
            CertificateId = exampleLocalRulestackCertificate.Id,
        });
    
    });
    
    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 com.pulumi.azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation;
    import com.pulumi.azure.paloalto.LocalRulestackOutboundTrustCertificateAssociationArgs;
    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());
    
            var exampleLocalRulestackOutboundTrustCertificateAssociation = new LocalRulestackOutboundTrustCertificateAssociation("exampleLocalRulestackOutboundTrustCertificateAssociation", LocalRulestackOutboundTrustCertificateAssociationArgs.builder()
                .certificateId(exampleLocalRulestackCertificate.id())
                .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
      exampleLocalRulestackOutboundTrustCertificateAssociation:
        type: azure:paloalto:LocalRulestackOutboundTrustCertificateAssociation
        name: example
        properties:
          certificateId: ${exampleLocalRulestackCertificate.id}
    

    Create LocalRulestackOutboundTrustCertificateAssociation Resource

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

    Constructor syntax

    new LocalRulestackOutboundTrustCertificateAssociation(name: string, args: LocalRulestackOutboundTrustCertificateAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def LocalRulestackOutboundTrustCertificateAssociation(resource_name: str,
                                                          args: LocalRulestackOutboundTrustCertificateAssociationArgs,
                                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalRulestackOutboundTrustCertificateAssociation(resource_name: str,
                                                          opts: Optional[ResourceOptions] = None,
                                                          certificate_id: Optional[str] = None)
    func NewLocalRulestackOutboundTrustCertificateAssociation(ctx *Context, name string, args LocalRulestackOutboundTrustCertificateAssociationArgs, opts ...ResourceOption) (*LocalRulestackOutboundTrustCertificateAssociation, error)
    public LocalRulestackOutboundTrustCertificateAssociation(string name, LocalRulestackOutboundTrustCertificateAssociationArgs args, CustomResourceOptions? opts = null)
    public LocalRulestackOutboundTrustCertificateAssociation(String name, LocalRulestackOutboundTrustCertificateAssociationArgs args)
    public LocalRulestackOutboundTrustCertificateAssociation(String name, LocalRulestackOutboundTrustCertificateAssociationArgs args, CustomResourceOptions options)
    
    type: azure:paloalto:LocalRulestackOutboundTrustCertificateAssociation
    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 LocalRulestackOutboundTrustCertificateAssociationArgs
    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 LocalRulestackOutboundTrustCertificateAssociationArgs
    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 LocalRulestackOutboundTrustCertificateAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalRulestackOutboundTrustCertificateAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalRulestackOutboundTrustCertificateAssociationArgs
    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 localRulestackOutboundTrustCertificateAssociationResource = new Azure.PaloAlto.LocalRulestackOutboundTrustCertificateAssociation("localRulestackOutboundTrustCertificateAssociationResource", new()
    {
        CertificateId = "string",
    });
    
    example, err := paloalto.NewLocalRulestackOutboundTrustCertificateAssociation(ctx, "localRulestackOutboundTrustCertificateAssociationResource", &paloalto.LocalRulestackOutboundTrustCertificateAssociationArgs{
    	CertificateId: pulumi.String("string"),
    })
    
    var localRulestackOutboundTrustCertificateAssociationResource = new LocalRulestackOutboundTrustCertificateAssociation("localRulestackOutboundTrustCertificateAssociationResource", LocalRulestackOutboundTrustCertificateAssociationArgs.builder()
        .certificateId("string")
        .build());
    
    local_rulestack_outbound_trust_certificate_association_resource = azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation("localRulestackOutboundTrustCertificateAssociationResource", certificate_id="string")
    
    const localRulestackOutboundTrustCertificateAssociationResource = new azure.paloalto.LocalRulestackOutboundTrustCertificateAssociation("localRulestackOutboundTrustCertificateAssociationResource", {certificateId: "string"});
    
    type: azure:paloalto:LocalRulestackOutboundTrustCertificateAssociation
    properties:
        certificateId: string
    

    LocalRulestackOutboundTrustCertificateAssociation 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 LocalRulestackOutboundTrustCertificateAssociation resource accepts the following input properties:

    CertificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    CertificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId String
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificate_id str
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId String
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LocalRulestackOutboundTrustCertificateAssociation 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 LocalRulestackOutboundTrustCertificateAssociation Resource

    Get an existing LocalRulestackOutboundTrustCertificateAssociation 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?: LocalRulestackOutboundTrustCertificateAssociationState, opts?: CustomResourceOptions): LocalRulestackOutboundTrustCertificateAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate_id: Optional[str] = None) -> LocalRulestackOutboundTrustCertificateAssociation
    func GetLocalRulestackOutboundTrustCertificateAssociation(ctx *Context, name string, id IDInput, state *LocalRulestackOutboundTrustCertificateAssociationState, opts ...ResourceOption) (*LocalRulestackOutboundTrustCertificateAssociation, error)
    public static LocalRulestackOutboundTrustCertificateAssociation Get(string name, Input<string> id, LocalRulestackOutboundTrustCertificateAssociationState? state, CustomResourceOptions? opts = null)
    public static LocalRulestackOutboundTrustCertificateAssociation get(String name, Output<String> id, LocalRulestackOutboundTrustCertificateAssociationState 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:
    CertificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    CertificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId String
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId string
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificate_id str
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.
    certificateId String
    The ID of the Certificate to use as the Outbound Trust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Trust Certificate Association to be created.

    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 v6.2.0 published on Friday, Sep 27, 2024 by Pulumi