1. Packages
  2. F5bigip Provider
  3. API Docs
  4. FastTemplate
f5 BIG-IP v3.17.10 published on Tuesday, Apr 8, 2025 by Pulumi

f5bigip.FastTemplate

Explore with Pulumi AI

f5bigip.FastTemplate This resource will import and create FAST template sets on BIG-IP LTM. Template set can be imported from zip archive files on the local disk.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
import * as std from "@pulumi/std";

const foo_template = new f5bigip.FastTemplate("foo-template", {
    name: "foo_template",
    source: "foo_template.zip",
    md5Hash: std.filemd5({
        input: "foo_template.zip",
    }).then(invoke => invoke.result),
});
Copy
import pulumi
import pulumi_f5bigip as f5bigip
import pulumi_std as std

foo_template = f5bigip.FastTemplate("foo-template",
    name="foo_template",
    source="foo_template.zip",
    md5_hash=std.filemd5(input="foo_template.zip").result)
Copy
package main

import (
	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		invokeFilemd5, err := std.Filemd5(ctx, &std.Filemd5Args{
			Input: "foo_template.zip",
		}, nil)
		if err != nil {
			return err
		}
		_, err = f5bigip.NewFastTemplate(ctx, "foo-template", &f5bigip.FastTemplateArgs{
			Name:    pulumi.String("foo_template"),
			Source:  pulumi.String("foo_template.zip"),
			Md5Hash: pulumi.String(invokeFilemd5.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
using Std = Pulumi.Std;

return await Deployment.RunAsync(() => 
{
    var foo_template = new F5BigIP.FastTemplate("foo-template", new()
    {
        Name = "foo_template",
        Source = "foo_template.zip",
        Md5Hash = Std.Filemd5.Invoke(new()
        {
            Input = "foo_template.zip",
        }).Apply(invoke => invoke.Result),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.FastTemplate;
import com.pulumi.f5bigip.FastTemplateArgs;
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 foo_template = new FastTemplate("foo-template", FastTemplateArgs.builder()
            .name("foo_template")
            .source("foo_template.zip")
            .md5Hash(StdFunctions.filemd5(Filemd5Args.builder()
                .input("foo_template.zip")
                .build()).result())
            .build());

    }
}
Copy
resources:
  foo-template:
    type: f5bigip:FastTemplate
    properties:
      name: foo_template
      source: foo_template.zip
      md5Hash:
        fn::invoke:
          function: std:filemd5
          arguments:
            input: foo_template.zip
          return: result
Copy

Create FastTemplate Resource

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

Constructor syntax

new FastTemplate(name: string, args: FastTemplateArgs, opts?: CustomResourceOptions);
@overload
def FastTemplate(resource_name: str,
                 args: FastTemplateArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def FastTemplate(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 md5_hash: Optional[str] = None,
                 source: Optional[str] = None,
                 name: Optional[str] = None)
func NewFastTemplate(ctx *Context, name string, args FastTemplateArgs, opts ...ResourceOption) (*FastTemplate, error)
public FastTemplate(string name, FastTemplateArgs args, CustomResourceOptions? opts = null)
public FastTemplate(String name, FastTemplateArgs args)
public FastTemplate(String name, FastTemplateArgs args, CustomResourceOptions options)
type: f5bigip:FastTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FastTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FastTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FastTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FastTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FastTemplateArgs
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 fastTemplateResource = new F5BigIP.FastTemplate("fastTemplateResource", new()
{
    Md5Hash = "string",
    Source = "string",
    Name = "string",
});
Copy
example, err := f5bigip.NewFastTemplate(ctx, "fastTemplateResource", &f5bigip.FastTemplateArgs{
	Md5Hash: pulumi.String("string"),
	Source:  pulumi.String("string"),
	Name:    pulumi.String("string"),
})
Copy
var fastTemplateResource = new FastTemplate("fastTemplateResource", FastTemplateArgs.builder()
    .md5Hash("string")
    .source("string")
    .name("string")
    .build());
Copy
fast_template_resource = f5bigip.FastTemplate("fastTemplateResource",
    md5_hash="string",
    source="string",
    name="string")
Copy
const fastTemplateResource = new f5bigip.FastTemplate("fastTemplateResource", {
    md5Hash: "string",
    source: "string",
    name: "string",
});
Copy
type: f5bigip:FastTemplate
properties:
    md5Hash: string
    name: string
    source: string
Copy

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

Md5Hash This property is required. string
MD5 hash of the zip archive file containing FAST template
Source
This property is required.
Changes to this property will trigger replacement.
string
Path to the zip archive file containing FAST template set on Local Disk
Name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
Md5Hash This property is required. string
MD5 hash of the zip archive file containing FAST template
Source
This property is required.
Changes to this property will trigger replacement.
string
Path to the zip archive file containing FAST template set on Local Disk
Name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
md5Hash This property is required. String
MD5 hash of the zip archive file containing FAST template
source
This property is required.
Changes to this property will trigger replacement.
String
Path to the zip archive file containing FAST template set on Local Disk
name Changes to this property will trigger replacement. String
Name of the FAST template set to be created on to BIGIP
md5Hash This property is required. string
MD5 hash of the zip archive file containing FAST template
source
This property is required.
Changes to this property will trigger replacement.
string
Path to the zip archive file containing FAST template set on Local Disk
name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
md5_hash This property is required. str
MD5 hash of the zip archive file containing FAST template
source
This property is required.
Changes to this property will trigger replacement.
str
Path to the zip archive file containing FAST template set on Local Disk
name Changes to this property will trigger replacement. str
Name of the FAST template set to be created on to BIGIP
md5Hash This property is required. String
MD5 hash of the zip archive file containing FAST template
source
This property is required.
Changes to this property will trigger replacement.
String
Path to the zip archive file containing FAST template set on Local Disk
name Changes to this property will trigger replacement. String
Name of the FAST template set to be created on to BIGIP

Outputs

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

Get an existing FastTemplate 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?: FastTemplateState, opts?: CustomResourceOptions): FastTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        md5_hash: Optional[str] = None,
        name: Optional[str] = None,
        source: Optional[str] = None) -> FastTemplate
func GetFastTemplate(ctx *Context, name string, id IDInput, state *FastTemplateState, opts ...ResourceOption) (*FastTemplate, error)
public static FastTemplate Get(string name, Input<string> id, FastTemplateState? state, CustomResourceOptions? opts = null)
public static FastTemplate get(String name, Output<String> id, FastTemplateState state, CustomResourceOptions options)
resources:  _:    type: f5bigip:FastTemplate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Md5Hash string
MD5 hash of the zip archive file containing FAST template
Name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
Source Changes to this property will trigger replacement. string
Path to the zip archive file containing FAST template set on Local Disk
Md5Hash string
MD5 hash of the zip archive file containing FAST template
Name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
Source Changes to this property will trigger replacement. string
Path to the zip archive file containing FAST template set on Local Disk
md5Hash String
MD5 hash of the zip archive file containing FAST template
name Changes to this property will trigger replacement. String
Name of the FAST template set to be created on to BIGIP
source Changes to this property will trigger replacement. String
Path to the zip archive file containing FAST template set on Local Disk
md5Hash string
MD5 hash of the zip archive file containing FAST template
name Changes to this property will trigger replacement. string
Name of the FAST template set to be created on to BIGIP
source Changes to this property will trigger replacement. string
Path to the zip archive file containing FAST template set on Local Disk
md5_hash str
MD5 hash of the zip archive file containing FAST template
name Changes to this property will trigger replacement. str
Name of the FAST template set to be created on to BIGIP
source Changes to this property will trigger replacement. str
Path to the zip archive file containing FAST template set on Local Disk
md5Hash String
MD5 hash of the zip archive file containing FAST template
name Changes to this property will trigger replacement. String
Name of the FAST template set to be created on to BIGIP
source Changes to this property will trigger replacement. String
Path to the zip archive file containing FAST template set on Local Disk

Package Details

Repository
f5 BIG-IP pulumi/pulumi-f5bigip
License
Apache-2.0
Notes
This Pulumi package is based on the bigip Terraform Provider.