panos.TemplateVariable
Explore with Pulumi AI
Create TemplateVariable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TemplateVariable(name: string, args: TemplateVariableArgs, opts?: CustomResourceOptions);
@overload
def TemplateVariable(resource_name: str,
args: TemplateVariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TemplateVariable(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[TemplateVariableLocationArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
type: Optional[TemplateVariableTypeArgs] = None)
func NewTemplateVariable(ctx *Context, name string, args TemplateVariableArgs, opts ...ResourceOption) (*TemplateVariable, error)
public TemplateVariable(string name, TemplateVariableArgs args, CustomResourceOptions? opts = null)
public TemplateVariable(String name, TemplateVariableArgs args)
public TemplateVariable(String name, TemplateVariableArgs args, CustomResourceOptions options)
type: panos:TemplateVariable
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 TemplateVariableArgs
- 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 TemplateVariableArgs
- 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 TemplateVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateVariableArgs
- 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 templateVariableResource = new Panos.TemplateVariable("templateVariableResource", new()
{
Location = new Panos.Inputs.TemplateVariableLocationArgs
{
Template = new Panos.Inputs.TemplateVariableLocationTemplateArgs
{
Name = "string",
PanoramaDevice = "string",
},
},
Description = "string",
Name = "string",
Type = new Panos.Inputs.TemplateVariableTypeArgs
{
AsNumber = "string",
DeviceId = "string",
DevicePriority = "string",
EgressMax = "string",
Fqdn = "string",
GroupId = "string",
Interface = "string",
IpNetmask = "string",
IpRange = "string",
LinkTag = "string",
QosProfile = "string",
},
});
example, err := panos.NewTemplateVariable(ctx, "templateVariableResource", &panos.TemplateVariableArgs{
Location: &panos.TemplateVariableLocationArgs{
Template: &panos.TemplateVariableLocationTemplateArgs{
Name: pulumi.String("string"),
PanoramaDevice: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Type: &panos.TemplateVariableTypeArgs{
AsNumber: pulumi.String("string"),
DeviceId: pulumi.String("string"),
DevicePriority: pulumi.String("string"),
EgressMax: pulumi.String("string"),
Fqdn: pulumi.String("string"),
GroupId: pulumi.String("string"),
Interface: pulumi.String("string"),
IpNetmask: pulumi.String("string"),
IpRange: pulumi.String("string"),
LinkTag: pulumi.String("string"),
QosProfile: pulumi.String("string"),
},
})
var templateVariableResource = new TemplateVariable("templateVariableResource", TemplateVariableArgs.builder()
.location(TemplateVariableLocationArgs.builder()
.template(TemplateVariableLocationTemplateArgs.builder()
.name("string")
.panoramaDevice("string")
.build())
.build())
.description("string")
.name("string")
.type(TemplateVariableTypeArgs.builder()
.asNumber("string")
.deviceId("string")
.devicePriority("string")
.egressMax("string")
.fqdn("string")
.groupId("string")
.interface_("string")
.ipNetmask("string")
.ipRange("string")
.linkTag("string")
.qosProfile("string")
.build())
.build());
template_variable_resource = panos.TemplateVariable("templateVariableResource",
location={
"template": {
"name": "string",
"panorama_device": "string",
},
},
description="string",
name="string",
type={
"as_number": "string",
"device_id": "string",
"device_priority": "string",
"egress_max": "string",
"fqdn": "string",
"group_id": "string",
"interface": "string",
"ip_netmask": "string",
"ip_range": "string",
"link_tag": "string",
"qos_profile": "string",
})
const templateVariableResource = new panos.TemplateVariable("templateVariableResource", {
location: {
template: {
name: "string",
panoramaDevice: "string",
},
},
description: "string",
name: "string",
type: {
asNumber: "string",
deviceId: "string",
devicePriority: "string",
egressMax: "string",
fqdn: "string",
groupId: "string",
"interface": "string",
ipNetmask: "string",
ipRange: "string",
linkTag: "string",
qosProfile: "string",
},
});
type: panos:TemplateVariable
properties:
description: string
location:
template:
name: string
panoramaDevice: string
name: string
type:
asNumber: string
deviceId: string
devicePriority: string
egressMax: string
fqdn: string
groupId: string
interface: string
ipNetmask: string
ipRange: string
linkTag: string
qosProfile: string
TemplateVariable 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 TemplateVariable resource accepts the following input properties:
- Location
Template
Variable Location - The location of this object.
- Description string
- Name string
- The name of the service.
- Type
Template
Variable Type
- Location
Template
Variable Location Args - The location of this object.
- Description string
- Name string
- The name of the service.
- Type
Template
Variable Type Args
- location
Template
Variable Location - The location of this object.
- description String
- name String
- The name of the service.
- type
Template
Variable Type
- location
Template
Variable Location - The location of this object.
- description string
- name string
- The name of the service.
- type
Template
Variable Type
- location
Template
Variable Location Args - The location of this object.
- description str
- name str
- The name of the service.
- type
Template
Variable Type Args
- location Property Map
- The location of this object.
- description String
- name String
- The name of the service.
- type Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the TemplateVariable 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 TemplateVariable Resource
Get an existing TemplateVariable 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?: TemplateVariableState, opts?: CustomResourceOptions): TemplateVariable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
location: Optional[TemplateVariableLocationArgs] = None,
name: Optional[str] = None,
type: Optional[TemplateVariableTypeArgs] = None) -> TemplateVariable
func GetTemplateVariable(ctx *Context, name string, id IDInput, state *TemplateVariableState, opts ...ResourceOption) (*TemplateVariable, error)
public static TemplateVariable Get(string name, Input<string> id, TemplateVariableState? state, CustomResourceOptions? opts = null)
public static TemplateVariable get(String name, Output<String> id, TemplateVariableState state, CustomResourceOptions options)
resources: _: type: panos:TemplateVariable 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.
- Description string
- Location
Template
Variable Location - The location of this object.
- Name string
- The name of the service.
- Type
Template
Variable Type
- Description string
- Location
Template
Variable Location Args - The location of this object.
- Name string
- The name of the service.
- Type
Template
Variable Type Args
- description String
- location
Template
Variable Location - The location of this object.
- name String
- The name of the service.
- type
Template
Variable Type
- description string
- location
Template
Variable Location - The location of this object.
- name string
- The name of the service.
- type
Template
Variable Type
- description str
- location
Template
Variable Location Args - The location of this object.
- name str
- The name of the service.
- type
Template
Variable Type Args
- description String
- location Property Map
- The location of this object.
- name String
- The name of the service.
- type Property Map
Supporting Types
TemplateVariableLocation, TemplateVariableLocationArgs
- Template
Template
Variable Location Template - Located in a specific template.
- Template
Template
Variable Location Template - Located in a specific template.
- template
Template
Variable Location Template - Located in a specific template.
- template
Template
Variable Location Template - Located in a specific template.
- template
Template
Variable Location Template - Located in a specific template.
- template Property Map
- Located in a specific template.
TemplateVariableLocationTemplate, TemplateVariableLocationTemplateArgs
- Name string
- The template.
- Panorama
Device string - The panorama device.
- Name string
- The template.
- Panorama
Device string - The panorama device.
- name String
- The template.
- panorama
Device String - The panorama device.
- name string
- The template.
- panorama
Device string - The panorama device.
- name str
- The template.
- panorama_
device str - The panorama device.
- name String
- The template.
- panorama
Device String - The panorama device.
TemplateVariableType, TemplateVariableTypeArgs
- as
Number String - device
Id String - device
Priority String - egress
Max String - fqdn String
- group
Id String - interface_ String
- ip
Netmask String - ip
Range String - link
Tag String - qos
Profile String
- as_
number str - device_
id str - device_
priority str - egress_
max str - fqdn str
- group_
id str - interface str
- ip_
netmask str - ip_
range str - link_
tag str - qos_
profile str
Package Details
- Repository
- panos paloaltonetworks/terraform-provider-panos
- License
- Notes
- This Pulumi package is based on the
panos
Terraform Provider.