published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
FastEdge templates encapsulate reusable configurations for FastEdge applications, including a WebAssembly binary reference and configurable parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleFastedgeTemplate = new gcore.FastedgeTemplate("example_fastedge_template", {
binaryId: 12345,
name: "api-gateway-template",
owned: true,
params: [{
dataType: "string",
mandatory: true,
name: "api_key",
descr: "API key for external service authentication",
metadata: "metadata",
}],
longDescr: "Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities.",
shortDescr: "HTTP API gateway with authentication",
});
import pulumi
import pulumi_gcore as gcore
example_fastedge_template = gcore.FastedgeTemplate("example_fastedge_template",
binary_id=12345,
name="api-gateway-template",
owned=True,
params=[{
"data_type": "string",
"mandatory": True,
"name": "api_key",
"descr": "API key for external service authentication",
"metadata": "metadata",
}],
long_descr="Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities.",
short_descr="HTTP API gateway with authentication")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewFastedgeTemplate(ctx, "example_fastedge_template", &gcore.FastedgeTemplateArgs{
BinaryId: pulumi.Float64(12345),
Name: pulumi.String("api-gateway-template"),
Owned: pulumi.Bool(true),
Params: gcore.FastedgeTemplateParamArray{
&gcore.FastedgeTemplateParamArgs{
DataType: pulumi.String("string"),
Mandatory: pulumi.Bool(true),
Name: pulumi.String("api_key"),
Descr: pulumi.String("API key for external service authentication"),
Metadata: pulumi.String("metadata"),
},
},
LongDescr: pulumi.String("Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities."),
ShortDescr: pulumi.String("HTTP API gateway with authentication"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleFastedgeTemplate = new Gcore.FastedgeTemplate("example_fastedge_template", new()
{
BinaryId = 12345,
Name = "api-gateway-template",
Owned = true,
Params = new[]
{
new Gcore.Inputs.FastedgeTemplateParamArgs
{
DataType = "string",
Mandatory = true,
Name = "api_key",
Descr = "API key for external service authentication",
Metadata = "metadata",
},
},
LongDescr = "Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities.",
ShortDescr = "HTTP API gateway with authentication",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.FastedgeTemplate;
import com.pulumi.gcore.FastedgeTemplateArgs;
import com.pulumi.gcore.inputs.FastedgeTemplateParamArgs;
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 exampleFastedgeTemplate = new FastedgeTemplate("exampleFastedgeTemplate", FastedgeTemplateArgs.builder()
.binaryId(12345.0)
.name("api-gateway-template")
.owned(true)
.params(FastedgeTemplateParamArgs.builder()
.dataType("string")
.mandatory(true)
.name("api_key")
.descr("API key for external service authentication")
.metadata("metadata")
.build())
.longDescr("Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities.")
.shortDescr("HTTP API gateway with authentication")
.build());
}
}
resources:
exampleFastedgeTemplate:
type: gcore:FastedgeTemplate
name: example_fastedge_template
properties:
binaryId: 12345
name: api-gateway-template
owned: true
params:
- dataType: string
mandatory: true
name: api_key
descr: API key for external service authentication
metadata: metadata
longDescr: Complete API gateway solution with JWT authentication, rate limiting, and request transformation capabilities.
shortDescr: HTTP API gateway with authentication
Create FastedgeTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FastedgeTemplate(name: string, args: FastedgeTemplateArgs, opts?: CustomResourceOptions);@overload
def FastedgeTemplate(resource_name: str,
args: FastedgeTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FastedgeTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
binary_id: Optional[float] = None,
params: Optional[Sequence[FastedgeTemplateParamArgs]] = None,
long_descr: Optional[str] = None,
name: Optional[str] = None,
owned: Optional[bool] = None,
short_descr: Optional[str] = None)func NewFastedgeTemplate(ctx *Context, name string, args FastedgeTemplateArgs, opts ...ResourceOption) (*FastedgeTemplate, error)public FastedgeTemplate(string name, FastedgeTemplateArgs args, CustomResourceOptions? opts = null)
public FastedgeTemplate(String name, FastedgeTemplateArgs args)
public FastedgeTemplate(String name, FastedgeTemplateArgs args, CustomResourceOptions options)
type: gcore:FastedgeTemplate
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 FastedgeTemplateArgs
- 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 FastedgeTemplateArgs
- 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 FastedgeTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FastedgeTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FastedgeTemplateArgs
- 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 fastedgeTemplateResource = new Gcore.Index.FastedgeTemplate("fastedgeTemplateResource", new()
{
BinaryId = 0,
Params = new[]
{
new Gcore.Inputs.FastedgeTemplateParamArgs
{
DataType = "string",
Name = "string",
Descr = "string",
Mandatory = false,
Metadata = "string",
},
},
LongDescr = "string",
Name = "string",
Owned = false,
ShortDescr = "string",
});
example, err := gcore.NewFastedgeTemplate(ctx, "fastedgeTemplateResource", &gcore.FastedgeTemplateArgs{
BinaryId: pulumi.Float64(0),
Params: gcore.FastedgeTemplateParamArray{
&gcore.FastedgeTemplateParamArgs{
DataType: pulumi.String("string"),
Name: pulumi.String("string"),
Descr: pulumi.String("string"),
Mandatory: pulumi.Bool(false),
Metadata: pulumi.String("string"),
},
},
LongDescr: pulumi.String("string"),
Name: pulumi.String("string"),
Owned: pulumi.Bool(false),
ShortDescr: pulumi.String("string"),
})
var fastedgeTemplateResource = new FastedgeTemplate("fastedgeTemplateResource", FastedgeTemplateArgs.builder()
.binaryId(0.0)
.params(FastedgeTemplateParamArgs.builder()
.dataType("string")
.name("string")
.descr("string")
.mandatory(false)
.metadata("string")
.build())
.longDescr("string")
.name("string")
.owned(false)
.shortDescr("string")
.build());
fastedge_template_resource = gcore.FastedgeTemplate("fastedgeTemplateResource",
binary_id=0,
params=[{
"data_type": "string",
"name": "string",
"descr": "string",
"mandatory": False,
"metadata": "string",
}],
long_descr="string",
name="string",
owned=False,
short_descr="string")
const fastedgeTemplateResource = new gcore.FastedgeTemplate("fastedgeTemplateResource", {
binaryId: 0,
params: [{
dataType: "string",
name: "string",
descr: "string",
mandatory: false,
metadata: "string",
}],
longDescr: "string",
name: "string",
owned: false,
shortDescr: "string",
});
type: gcore:FastedgeTemplate
properties:
binaryId: 0
longDescr: string
name: string
owned: false
params:
- dataType: string
descr: string
mandatory: false
metadata: string
name: string
shortDescr: string
FastedgeTemplate 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 FastedgeTemplate resource accepts the following input properties:
- Binary
Id double - ID of the WebAssembly binary to use for this template
- Params
List<Fastedge
Template Param> - Parameters
- Long
Descr string - Detailed markdown description explaining template features and usage
- Name string
- Unique name for the template (used for identification and searching)
- Owned bool
- Is the template owned by user?
- Short
Descr string - Brief one-line description displayed in template listings
- Binary
Id float64 - ID of the WebAssembly binary to use for this template
- Params
[]Fastedge
Template Param Args - Parameters
- Long
Descr string - Detailed markdown description explaining template features and usage
- Name string
- Unique name for the template (used for identification and searching)
- Owned bool
- Is the template owned by user?
- Short
Descr string - Brief one-line description displayed in template listings
- binary
Id Double - ID of the WebAssembly binary to use for this template
- params
List<Fastedge
Template Param> - Parameters
- long
Descr String - Detailed markdown description explaining template features and usage
- name String
- Unique name for the template (used for identification and searching)
- owned Boolean
- Is the template owned by user?
- short
Descr String - Brief one-line description displayed in template listings
- binary
Id number - ID of the WebAssembly binary to use for this template
- params
Fastedge
Template Param[] - Parameters
- long
Descr string - Detailed markdown description explaining template features and usage
- name string
- Unique name for the template (used for identification and searching)
- owned boolean
- Is the template owned by user?
- short
Descr string - Brief one-line description displayed in template listings
- binary_
id float - ID of the WebAssembly binary to use for this template
- params
Sequence[Fastedge
Template Param Args] - Parameters
- long_
descr str - Detailed markdown description explaining template features and usage
- name str
- Unique name for the template (used for identification and searching)
- owned bool
- Is the template owned by user?
- short_
descr str - Brief one-line description displayed in template listings
- binary
Id Number - ID of the WebAssembly binary to use for this template
- params List<Property Map>
- Parameters
- long
Descr String - Detailed markdown description explaining template features and usage
- name String
- Unique name for the template (used for identification and searching)
- owned Boolean
- Is the template owned by user?
- short
Descr String - Brief one-line description displayed in template listings
Outputs
All input properties are implicitly available as output properties. Additionally, the FastedgeTemplate resource produces the following output properties:
- Api
Type string - Wasm API type
- Fastedge
Template doubleId - Template ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Type string - Wasm API type
- Fastedge
Template float64Id - Template ID
- Id string
- The provider-assigned unique ID for this managed resource.
- api
Type String - Wasm API type
- fastedge
Template DoubleId - Template ID
- id String
- The provider-assigned unique ID for this managed resource.
- api
Type string - Wasm API type
- fastedge
Template numberId - Template ID
- id string
- The provider-assigned unique ID for this managed resource.
- api_
type str - Wasm API type
- fastedge_
template_ floatid - Template ID
- id str
- The provider-assigned unique ID for this managed resource.
- api
Type String - Wasm API type
- fastedge
Template NumberId - Template ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FastedgeTemplate Resource
Get an existing FastedgeTemplate 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?: FastedgeTemplateState, opts?: CustomResourceOptions): FastedgeTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_type: Optional[str] = None,
binary_id: Optional[float] = None,
fastedge_template_id: Optional[float] = None,
long_descr: Optional[str] = None,
name: Optional[str] = None,
owned: Optional[bool] = None,
params: Optional[Sequence[FastedgeTemplateParamArgs]] = None,
short_descr: Optional[str] = None) -> FastedgeTemplatefunc GetFastedgeTemplate(ctx *Context, name string, id IDInput, state *FastedgeTemplateState, opts ...ResourceOption) (*FastedgeTemplate, error)public static FastedgeTemplate Get(string name, Input<string> id, FastedgeTemplateState? state, CustomResourceOptions? opts = null)public static FastedgeTemplate get(String name, Output<String> id, FastedgeTemplateState state, CustomResourceOptions options)resources: _: type: gcore:FastedgeTemplate 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.
- Api
Type string - Wasm API type
- Binary
Id double - ID of the WebAssembly binary to use for this template
- Fastedge
Template doubleId - Template ID
- Long
Descr string - Detailed markdown description explaining template features and usage
- Name string
- Unique name for the template (used for identification and searching)
- Owned bool
- Is the template owned by user?
- Params
List<Fastedge
Template Param> - Parameters
- Short
Descr string - Brief one-line description displayed in template listings
- Api
Type string - Wasm API type
- Binary
Id float64 - ID of the WebAssembly binary to use for this template
- Fastedge
Template float64Id - Template ID
- Long
Descr string - Detailed markdown description explaining template features and usage
- Name string
- Unique name for the template (used for identification and searching)
- Owned bool
- Is the template owned by user?
- Params
[]Fastedge
Template Param Args - Parameters
- Short
Descr string - Brief one-line description displayed in template listings
- api
Type String - Wasm API type
- binary
Id Double - ID of the WebAssembly binary to use for this template
- fastedge
Template DoubleId - Template ID
- long
Descr String - Detailed markdown description explaining template features and usage
- name String
- Unique name for the template (used for identification and searching)
- owned Boolean
- Is the template owned by user?
- params
List<Fastedge
Template Param> - Parameters
- short
Descr String - Brief one-line description displayed in template listings
- api
Type string - Wasm API type
- binary
Id number - ID of the WebAssembly binary to use for this template
- fastedge
Template numberId - Template ID
- long
Descr string - Detailed markdown description explaining template features and usage
- name string
- Unique name for the template (used for identification and searching)
- owned boolean
- Is the template owned by user?
- params
Fastedge
Template Param[] - Parameters
- short
Descr string - Brief one-line description displayed in template listings
- api_
type str - Wasm API type
- binary_
id float - ID of the WebAssembly binary to use for this template
- fastedge_
template_ floatid - Template ID
- long_
descr str - Detailed markdown description explaining template features and usage
- name str
- Unique name for the template (used for identification and searching)
- owned bool
- Is the template owned by user?
- params
Sequence[Fastedge
Template Param Args] - Parameters
- short_
descr str - Brief one-line description displayed in template listings
- api
Type String - Wasm API type
- binary
Id Number - ID of the WebAssembly binary to use for this template
- fastedge
Template NumberId - Template ID
- long
Descr String - Detailed markdown description explaining template features and usage
- name String
- Unique name for the template (used for identification and searching)
- owned Boolean
- Is the template owned by user?
- params List<Property Map>
- Parameters
- short
Descr String - Brief one-line description displayed in template listings
Supporting Types
FastedgeTemplateParam, FastedgeTemplateParamArgs
- Data
Type string - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - Name string
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - Descr string
- Human-readable explanation of what this parameter controls
- Mandatory bool
- If true, this parameter must be provided when instantiating the template
- Metadata string
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
- Data
Type string - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - Name string
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - Descr string
- Human-readable explanation of what this parameter controls
- Mandatory bool
- If true, this parameter must be provided when instantiating the template
- Metadata string
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
- data
Type String - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - name String
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - descr String
- Human-readable explanation of what this parameter controls
- mandatory Boolean
- If true, this parameter must be provided when instantiating the template
- metadata String
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
- data
Type string - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - name string
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - descr string
- Human-readable explanation of what this parameter controls
- mandatory boolean
- If true, this parameter must be provided when instantiating the template
- metadata string
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
- data_
type str - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - name str
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - descr str
- Human-readable explanation of what this parameter controls
- mandatory bool
- If true, this parameter must be provided when instantiating the template
- metadata str
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
- data
Type String - Parameter type determines validation and UI rendering:
string - text input
number - numeric input
date - date picker
time - time picker
secret - references a secret
store - references an edge store
bool - boolean toggle
json - JSON editor or multiline text area with JSON validation
enum - dropdown/select with allowed values defined via parameter metadata Available values: "string", "number", "date", "time", "secret", "store", "bool", "json", "enum". - name String
- Parameter name used as a placeholder in template (e.g.,
API_KEY,DATABASE_URL) - descr String
- Human-readable explanation of what this parameter controls
- mandatory Boolean
- If true, this parameter must be provided when instantiating the template
- metadata String
- Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types
Import
The pulumi import command can be used, for example:
$ pulumi import gcore:index/fastedgeTemplate:FastedgeTemplate example '<template_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 30, 2026 by g-core
