Example Usage
Create CertificateImport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertificateImport(name: string, args: CertificateImportArgs, opts?: CustomResourceOptions);@overload
def CertificateImport(resource_name: str,
args: CertificateImportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertificateImport(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[CertificateImportLocationArgs] = None,
local: Optional[CertificateImportLocalArgs] = None,
name: Optional[str] = None)func NewCertificateImport(ctx *Context, name string, args CertificateImportArgs, opts ...ResourceOption) (*CertificateImport, error)public CertificateImport(string name, CertificateImportArgs args, CustomResourceOptions? opts = null)
public CertificateImport(String name, CertificateImportArgs args)
public CertificateImport(String name, CertificateImportArgs args, CustomResourceOptions options)
type: panos:CertificateImport
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 CertificateImportArgs
- 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 CertificateImportArgs
- 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 CertificateImportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateImportArgs
- 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 certificateImportResource = new Panos.CertificateImport("certificateImportResource", new()
{
Location = new Panos.Inputs.CertificateImportLocationArgs
{
Panorama = new Panos.Inputs.CertificateImportLocationPanoramaArgs
{
PanoramaDevice = "string",
},
Template = new Panos.Inputs.CertificateImportLocationTemplateArgs
{
Name = "string",
PanoramaDevice = "string",
},
TemplateStack = new Panos.Inputs.CertificateImportLocationTemplateStackArgs
{
Name = "string",
PanoramaDevice = "string",
},
TemplateStackVsys = new Panos.Inputs.CertificateImportLocationTemplateStackVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
TemplateStack = "string",
Vsys = "string",
},
TemplateVsys = new Panos.Inputs.CertificateImportLocationTemplateVsysArgs
{
NgfwDevice = "string",
PanoramaDevice = "string",
Template = "string",
Vsys = "string",
},
Vsys = new Panos.Inputs.CertificateImportLocationVsysArgs
{
Name = "string",
NgfwDevice = "string",
},
},
Local = new Panos.Inputs.CertificateImportLocalArgs
{
Pem = new Panos.Inputs.CertificateImportLocalPemArgs
{
Certificate = "string",
Passphrase = "string",
PrivateKey = "string",
},
Pkcs12 = new Panos.Inputs.CertificateImportLocalPkcs12Args
{
Certificate = "string",
Passphrase = "string",
},
},
Name = "string",
});
example, err := panos.NewCertificateImport(ctx, "certificateImportResource", &panos.CertificateImportArgs{
Location: &panos.CertificateImportLocationArgs{
Panorama: &panos.CertificateImportLocationPanoramaArgs{
PanoramaDevice: pulumi.String("string"),
},
Template: &panos.CertificateImportLocationTemplateArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStack: &panos.CertificateImportLocationTemplateStackArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
TemplateStackVsys: &panos.CertificateImportLocationTemplateStackVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
TemplateStack: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
TemplateVsys: &panos.CertificateImportLocationTemplateVsysArgs{
NgfwDevice: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
Template: pulumi.String("string"),
Vsys: pulumi.String("string"),
},
Vsys: &panos.CertificateImportLocationVsysArgs{
Name: pulumi.String("string"),
NgfwDevice: pulumi.String("string"),
},
},
Local: &panos.CertificateImportLocalArgs{
Pem: &panos.CertificateImportLocalPemArgs{
Certificate: pulumi.String("string"),
Passphrase: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
},
Pkcs12: &panos.CertificateImportLocalPkcs12Args{
Certificate: pulumi.String("string"),
Passphrase: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var certificateImportResource = new CertificateImport("certificateImportResource", CertificateImportArgs.builder()
.location(CertificateImportLocationArgs.builder()
.panorama(CertificateImportLocationPanoramaArgs.builder()
.panoramaDevice("string")
.build())
.template(CertificateImportLocationTemplateArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.templateStack(CertificateImportLocationTemplateStackArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.templateStackVsys(CertificateImportLocationTemplateStackVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.templateStack("string")
.vsys("string")
.build())
.templateVsys(CertificateImportLocationTemplateVsysArgs.builder()
.ngfwDevice("string")
.panoramaDevice("string")
.template("string")
.vsys("string")
.build())
.vsys(CertificateImportLocationVsysArgs.builder()
.name("string")
.ngfwDevice("string")
.build())
.build())
.local(CertificateImportLocalArgs.builder()
.pem(CertificateImportLocalPemArgs.builder()
.certificate("string")
.passphrase("string")
.privateKey("string")
.build())
.pkcs12(CertificateImportLocalPkcs12Args.builder()
.certificate("string")
.passphrase("string")
.build())
.build())
.name("string")
.build());
certificate_import_resource = panos.CertificateImport("certificateImportResource",
location={
"panorama": {
"panorama_device": "string",
},
"template": {
"name": "string",
"panorama_device": "string",
},
"template_stack": {
"name": "string",
"panorama_device": "string",
},
"template_stack_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template_stack": "string",
"vsys": "string",
},
"template_vsys": {
"ngfw_device": "string",
"panorama_device": "string",
"template": "string",
"vsys": "string",
},
"vsys": {
"name": "string",
"ngfw_device": "string",
},
},
local={
"pem": {
"certificate": "string",
"passphrase": "string",
"private_key": "string",
},
"pkcs12": {
"certificate": "string",
"passphrase": "string",
},
},
name="string")
const certificateImportResource = new panos.CertificateImport("certificateImportResource", {
location: {
panorama: {
panoramaDevice: "string",
},
template: {
name: "string",
panoramaDevice: "string",
},
templateStack: {
name: "string",
panoramaDevice: "string",
},
templateStackVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
templateStack: "string",
vsys: "string",
},
templateVsys: {
ngfwDevice: "string",
panoramaDevice: "string",
template: "string",
vsys: "string",
},
vsys: {
name: "string",
ngfwDevice: "string",
},
},
local: {
pem: {
certificate: "string",
passphrase: "string",
privateKey: "string",
},
pkcs12: {
certificate: "string",
passphrase: "string",
},
},
name: "string",
});
type: panos:CertificateImport
properties:
local:
pem:
certificate: string
passphrase: string
privateKey: string
pkcs12:
certificate: string
passphrase: string
location:
panorama:
panoramaDevice: string
template:
name: string
panoramaDevice: string
templateStack:
name: string
panoramaDevice: string
templateStackVsys:
ngfwDevice: string
panoramaDevice: string
templateStack: string
vsys: string
templateVsys:
ngfwDevice: string
panoramaDevice: string
template: string
vsys: string
vsys:
name: string
ngfwDevice: string
name: string
CertificateImport 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 CertificateImport resource accepts the following input properties:
- Location
Certificate
Import Location - The location of this object.
- Local
Certificate
Import Local - Name string
- Location
Certificate
Import Location Args - The location of this object.
- Local
Certificate
Import Local Args - Name string
- location
Certificate
Import Location - The location of this object.
- local
Certificate
Import Local - name String
- location
Certificate
Import Location - The location of this object.
- local
Certificate
Import Local - name string
- location
Certificate
Import Location Args - The location of this object.
- local
Certificate
Import Local Args - name str
- location Property Map
- The location of this object.
- local Property Map
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateImport 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 CertificateImport Resource
Get an existing CertificateImport 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?: CertificateImportState, opts?: CustomResourceOptions): CertificateImport@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
local: Optional[CertificateImportLocalArgs] = None,
location: Optional[CertificateImportLocationArgs] = None,
name: Optional[str] = None) -> CertificateImportfunc GetCertificateImport(ctx *Context, name string, id IDInput, state *CertificateImportState, opts ...ResourceOption) (*CertificateImport, error)public static CertificateImport Get(string name, Input<string> id, CertificateImportState? state, CustomResourceOptions? opts = null)public static CertificateImport get(String name, Output<String> id, CertificateImportState state, CustomResourceOptions options)resources: _: type: panos:CertificateImport get: id: ${id}- 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.
- Local
Certificate
Import Local - Location
Certificate
Import Location - The location of this object.
- Name string
- Local
Certificate
Import Local Args - Location
Certificate
Import Location Args - The location of this object.
- Name string
- local
Certificate
Import Local - location
Certificate
Import Location - The location of this object.
- name String
- local
Certificate
Import Local - location
Certificate
Import Location - The location of this object.
- name string
- local
Certificate
Import Local Args - location
Certificate
Import Location Args - The location of this object.
- name str
- local Property Map
- location Property Map
- The location of this object.
- name String
Supporting Types
CertificateImportLocal, CertificateImportLocalArgs
CertificateImportLocalPem, CertificateImportLocalPemArgs
- Certificate string
- Passphrase string
- Private
Key string
- Certificate string
- Passphrase string
- Private
Key string
- certificate String
- passphrase String
- private
Key String
- certificate string
- passphrase string
- private
Key string
- certificate str
- passphrase str
- private_
key str
- certificate String
- passphrase String
- private
Key String
CertificateImportLocalPkcs12, CertificateImportLocalPkcs12Args
- Certificate string
- Passphrase string
- Certificate string
- Passphrase string
- certificate String
- passphrase String
- certificate string
- passphrase string
- certificate str
- passphrase str
- certificate String
- passphrase String
CertificateImportLocation, CertificateImportLocationArgs
- Panorama
Certificate
Import Location Panorama - Located in a specific Panorama.
- Template
Certificate
Import Location Template - Located in a specific template
- Template
Stack CertificateImport Location Template Stack - Located in a specific template
- Template
Stack CertificateVsys Import Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys CertificateImport Location Template Vsys - Located in a specific template, device and vsys.
- Vsys
Certificate
Import Location Vsys - Located in a specific Virtual System
- Panorama
Certificate
Import Location Panorama - Located in a specific Panorama.
- Template
Certificate
Import Location Template - Located in a specific template
- Template
Stack CertificateImport Location Template Stack - Located in a specific template
- Template
Stack CertificateVsys Import Location Template Stack Vsys - Located in a specific template, device and vsys.
- Template
Vsys CertificateImport Location Template Vsys - Located in a specific template, device and vsys.
- Vsys
Certificate
Import Location Vsys - Located in a specific Virtual System
- panorama
Certificate
Import Location Panorama - Located in a specific Panorama.
- template
Certificate
Import Location Template - Located in a specific template
- template
Stack CertificateImport Location Template Stack - Located in a specific template
- template
Stack CertificateVsys Import Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys CertificateImport Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Certificate
Import Location Vsys - Located in a specific Virtual System
- panorama
Certificate
Import Location Panorama - Located in a specific Panorama.
- template
Certificate
Import Location Template - Located in a specific template
- template
Stack CertificateImport Location Template Stack - Located in a specific template
- template
Stack CertificateVsys Import Location Template Stack Vsys - Located in a specific template, device and vsys.
- template
Vsys CertificateImport Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Certificate
Import Location Vsys - Located in a specific Virtual System
- panorama
Certificate
Import Location Panorama - Located in a specific Panorama.
- template
Certificate
Import Location Template - Located in a specific template
- template_
stack CertificateImport Location Template Stack - Located in a specific template
- template_
stack_ Certificatevsys Import Location Template Stack Vsys - Located in a specific template, device and vsys.
- template_
vsys CertificateImport Location Template Vsys - Located in a specific template, device and vsys.
- vsys
Certificate
Import Location Vsys - Located in a specific Virtual System
- panorama Property Map
- Located in a specific Panorama.
- template Property Map
- Located in a specific template
- template
Stack Property Map - Located in a specific template
- template
Stack Property MapVsys - Located in a specific template, device and vsys.
- template
Vsys Property Map - Located in a specific template, device and vsys.
- vsys Property Map
- Located in a specific Virtual System
CertificateImportLocationPanorama, CertificateImportLocationPanoramaArgs
- Panorama
Device string - The Panorama device.
- Panorama
Device string - The Panorama device.
- panorama
Device String - The Panorama device.
- panorama
Device string - The Panorama device.
- panorama_
device str - The Panorama device.
- panorama
Device String - The Panorama device.
CertificateImportLocationTemplate, CertificateImportLocationTemplateArgs
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- Name string
- Specific Panorama template
- Panorama
Device string - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
- name string
- Specific Panorama template
- panorama
Device string - Specific Panorama device
- name str
- Specific Panorama template
- panorama_
device str - Specific Panorama device
- name String
- Specific Panorama template
- panorama
Device String - Specific Panorama device
CertificateImportLocationTemplateStack, CertificateImportLocationTemplateStackArgs
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- Name string
- The template stack
- Panorama
Device string - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
- name string
- The template stack
- panorama
Device string - Specific Panorama device
- name str
- The template stack
- panorama_
device str - Specific Panorama device
- name String
- The template stack
- panorama
Device String - Specific Panorama device
CertificateImportLocationTemplateStackVsys, CertificateImportLocationTemplateStackVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template
Stack string - The template stack
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template
Stack string - The template stack
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template_
stack str - The template stack
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template
Stack String - The template stack
- vsys String
- The vsys.
CertificateImportLocationTemplateVsys, CertificateImportLocationTemplateVsysArgs
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- Ngfw
Device string - The NGFW device
- Panorama
Device string - Specific Panorama device
- Template string
- Specific Panorama template
- Vsys string
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
- ngfw
Device string - The NGFW device
- panorama
Device string - Specific Panorama device
- template string
- Specific Panorama template
- vsys string
- The vsys.
- ngfw_
device str - The NGFW device
- panorama_
device str - Specific Panorama device
- template str
- Specific Panorama template
- vsys str
- The vsys.
- ngfw
Device String - The NGFW device
- panorama
Device String - Specific Panorama device
- template String
- Specific Panorama template
- vsys String
- The vsys.
CertificateImportLocationVsys, CertificateImportLocationVsysArgs
- Name string
- The Virtual System name
- Ngfw
Device string - The NGFW device name
- Name string
- The Virtual System name
- Ngfw
Device string - The NGFW device name
- name String
- The Virtual System name
- ngfw
Device String - The NGFW device name
- name string
- The Virtual System name
- ngfw
Device string - The NGFW device name
- name str
- The Virtual System name
- ngfw_
device str - The NGFW device name
- name String
- The Virtual System name
- ngfw
Device String - The NGFW device name
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panosTerraform Provider.
