1. Packages
  2. Panos Provider
  3. API Docs
  4. TemplateVariable
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

panos.TemplateVariable

Explore with Pulumi AI

panos logo
panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks

    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 TemplateVariableLocation
    The location of this object.
    Description string
    Name string
    The name of the service.
    Type TemplateVariableType
    Location TemplateVariableLocationArgs
    The location of this object.
    Description string
    Name string
    The name of the service.
    Type TemplateVariableTypeArgs
    location TemplateVariableLocation
    The location of this object.
    description String
    name String
    The name of the service.
    type TemplateVariableType
    location TemplateVariableLocation
    The location of this object.
    description string
    name string
    The name of the service.
    type TemplateVariableType
    location TemplateVariableLocationArgs
    The location of this object.
    description str
    name str
    The name of the service.
    type TemplateVariableTypeArgs
    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.
    The following state arguments are supported:
    Description string
    Location TemplateVariableLocation
    The location of this object.
    Name string
    The name of the service.
    Type TemplateVariableType
    Description string
    Location TemplateVariableLocationArgs
    The location of this object.
    Name string
    The name of the service.
    Type TemplateVariableTypeArgs
    description String
    location TemplateVariableLocation
    The location of this object.
    name String
    The name of the service.
    type TemplateVariableType
    description string
    location TemplateVariableLocation
    The location of this object.
    name string
    The name of the service.
    type TemplateVariableType
    description str
    location TemplateVariableLocationArgs
    The location of this object.
    name str
    The name of the service.
    type TemplateVariableTypeArgs
    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 TemplateVariableLocationTemplate
    Located in a specific template.
    Template TemplateVariableLocationTemplate
    Located in a specific template.
    template TemplateVariableLocationTemplate
    Located in a specific template.
    template TemplateVariableLocationTemplate
    Located in a specific template.
    template TemplateVariableLocationTemplate
    Located in a specific template.
    template Property Map
    Located in a specific template.

    TemplateVariableLocationTemplate, TemplateVariableLocationTemplateArgs

    Name string
    The template.
    PanoramaDevice string
    The panorama device.
    Name string
    The template.
    PanoramaDevice string
    The panorama device.
    name String
    The template.
    panoramaDevice String
    The panorama device.
    name string
    The template.
    panoramaDevice string
    The panorama device.
    name str
    The template.
    panorama_device str
    The panorama device.
    name String
    The template.
    panoramaDevice String
    The panorama device.

    TemplateVariableType, TemplateVariableTypeArgs

    AsNumber string
    DeviceId string
    DevicePriority string
    EgressMax string
    Fqdn string
    GroupId string
    Interface string
    IpNetmask string
    IpRange string
    LinkTag string
    QosProfile string
    AsNumber string
    DeviceId string
    DevicePriority string
    EgressMax string
    Fqdn string
    GroupId string
    Interface string
    IpNetmask string
    IpRange string
    LinkTag string
    QosProfile string
    asNumber String
    deviceId String
    devicePriority String
    egressMax String
    fqdn String
    groupId String
    interface_ String
    ipNetmask String
    ipRange String
    linkTag String
    qosProfile String
    asNumber string
    deviceId string
    devicePriority string
    egressMax string
    fqdn string
    groupId string
    interface string
    ipNetmask string
    ipRange string
    linkTag string
    qosProfile string
    asNumber String
    deviceId String
    devicePriority String
    egressMax String
    fqdn String
    groupId String
    interface String
    ipNetmask String
    ipRange String
    linkTag String
    qosProfile String

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    panos logo
    panos 2.0.0 published on Tuesday, Apr 15, 2025 by paloaltonetworks