We recommend using Azure Native.
azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociation
Explore with Pulumi AI
Manages a Palo Alto Networks Rulestack Outbound Untrust 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 exampleLocalRulestackOutboundUntrustCertificateAssociation = new azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociation("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_untrust_certificate_association = azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociation("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.NewLocalRulestackOutboundUntrustCertificateAssociation(ctx, "example", &paloalto.LocalRulestackOutboundUntrustCertificateAssociationArgs{
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 exampleLocalRulestackOutboundUntrustCertificateAssociation = new Azure.PaloAlto.LocalRulestackOutboundUntrustCertificateAssociation("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.LocalRulestackOutboundUntrustCertificateAssociation;
import com.pulumi.azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociationArgs;
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 exampleLocalRulestackOutboundUntrustCertificateAssociation = new LocalRulestackOutboundUntrustCertificateAssociation("exampleLocalRulestackOutboundUntrustCertificateAssociation", LocalRulestackOutboundUntrustCertificateAssociationArgs.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
exampleLocalRulestackOutboundUntrustCertificateAssociation:
type: azure:paloalto:LocalRulestackOutboundUntrustCertificateAssociation
name: example
properties:
certificateId: ${exampleLocalRulestackCertificate.id}
Create LocalRulestackOutboundUntrustCertificateAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocalRulestackOutboundUntrustCertificateAssociation(name: string, args: LocalRulestackOutboundUntrustCertificateAssociationArgs, opts?: CustomResourceOptions);
@overload
def LocalRulestackOutboundUntrustCertificateAssociation(resource_name: str,
args: LocalRulestackOutboundUntrustCertificateAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LocalRulestackOutboundUntrustCertificateAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None)
func NewLocalRulestackOutboundUntrustCertificateAssociation(ctx *Context, name string, args LocalRulestackOutboundUntrustCertificateAssociationArgs, opts ...ResourceOption) (*LocalRulestackOutboundUntrustCertificateAssociation, error)
public LocalRulestackOutboundUntrustCertificateAssociation(string name, LocalRulestackOutboundUntrustCertificateAssociationArgs args, CustomResourceOptions? opts = null)
public LocalRulestackOutboundUntrustCertificateAssociation(String name, LocalRulestackOutboundUntrustCertificateAssociationArgs args)
public LocalRulestackOutboundUntrustCertificateAssociation(String name, LocalRulestackOutboundUntrustCertificateAssociationArgs args, CustomResourceOptions options)
type: azure:paloalto:LocalRulestackOutboundUntrustCertificateAssociation
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 LocalRulestackOutboundUntrustCertificateAssociationArgs
- 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 LocalRulestackOutboundUntrustCertificateAssociationArgs
- 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 LocalRulestackOutboundUntrustCertificateAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocalRulestackOutboundUntrustCertificateAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocalRulestackOutboundUntrustCertificateAssociationArgs
- 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 localRulestackOutboundUntrustCertificateAssociationResource = new Azure.PaloAlto.LocalRulestackOutboundUntrustCertificateAssociation("localRulestackOutboundUntrustCertificateAssociationResource", new()
{
CertificateId = "string",
});
example, err := paloalto.NewLocalRulestackOutboundUntrustCertificateAssociation(ctx, "localRulestackOutboundUntrustCertificateAssociationResource", &paloalto.LocalRulestackOutboundUntrustCertificateAssociationArgs{
CertificateId: pulumi.String("string"),
})
var localRulestackOutboundUntrustCertificateAssociationResource = new LocalRulestackOutboundUntrustCertificateAssociation("localRulestackOutboundUntrustCertificateAssociationResource", LocalRulestackOutboundUntrustCertificateAssociationArgs.builder()
.certificateId("string")
.build());
local_rulestack_outbound_untrust_certificate_association_resource = azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociation("localRulestackOutboundUntrustCertificateAssociationResource", certificate_id="string")
const localRulestackOutboundUntrustCertificateAssociationResource = new azure.paloalto.LocalRulestackOutboundUntrustCertificateAssociation("localRulestackOutboundUntrustCertificateAssociationResource", {certificateId: "string"});
type: azure:paloalto:LocalRulestackOutboundUntrustCertificateAssociation
properties:
certificateId: string
LocalRulestackOutboundUntrustCertificateAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LocalRulestackOutboundUntrustCertificateAssociation resource accepts the following input properties:
- Certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- Certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id String - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate_
id str - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id String - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the LocalRulestackOutboundUntrustCertificateAssociation 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 LocalRulestackOutboundUntrustCertificateAssociation Resource
Get an existing LocalRulestackOutboundUntrustCertificateAssociation 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?: LocalRulestackOutboundUntrustCertificateAssociationState, opts?: CustomResourceOptions): LocalRulestackOutboundUntrustCertificateAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None) -> LocalRulestackOutboundUntrustCertificateAssociation
func GetLocalRulestackOutboundUntrustCertificateAssociation(ctx *Context, name string, id IDInput, state *LocalRulestackOutboundUntrustCertificateAssociationState, opts ...ResourceOption) (*LocalRulestackOutboundUntrustCertificateAssociation, error)
public static LocalRulestackOutboundUntrustCertificateAssociation Get(string name, Input<string> id, LocalRulestackOutboundUntrustCertificateAssociationState? state, CustomResourceOptions? opts = null)
public static LocalRulestackOutboundUntrustCertificateAssociation get(String name, Output<String> id, LocalRulestackOutboundUntrustCertificateAssociationState 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.
- Certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- Certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id String - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id string - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate_
id str - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust Certificate Association to be created.
- certificate
Id String - The ID of the Certificate to use as the Outbound Untrust Certificate. Changing this forces a new Palo Alto Networks Rulestack Outbound Untrust 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.