1. Packages
  2. Gcore Provider
  3. API Docs
  4. FastedgeTemplate
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
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:

    BinaryId double
    ID of the WebAssembly binary to use for this template
    Params List<FastedgeTemplateParam>
    Parameters
    LongDescr 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?
    ShortDescr string
    Brief one-line description displayed in template listings
    BinaryId float64
    ID of the WebAssembly binary to use for this template
    Params []FastedgeTemplateParamArgs
    Parameters
    LongDescr 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?
    ShortDescr string
    Brief one-line description displayed in template listings
    binaryId Double
    ID of the WebAssembly binary to use for this template
    params List<FastedgeTemplateParam>
    Parameters
    longDescr 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?
    shortDescr String
    Brief one-line description displayed in template listings
    binaryId number
    ID of the WebAssembly binary to use for this template
    params FastedgeTemplateParam[]
    Parameters
    longDescr 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?
    shortDescr string
    Brief one-line description displayed in template listings
    binary_id float
    ID of the WebAssembly binary to use for this template
    params Sequence[FastedgeTemplateParamArgs]
    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
    binaryId Number
    ID of the WebAssembly binary to use for this template
    params List<Property Map>
    Parameters
    longDescr 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?
    shortDescr 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:

    ApiType string
    Wasm API type
    FastedgeTemplateId double
    Template ID
    Id string
    The provider-assigned unique ID for this managed resource.
    ApiType string
    Wasm API type
    FastedgeTemplateId float64
    Template ID
    Id string
    The provider-assigned unique ID for this managed resource.
    apiType String
    Wasm API type
    fastedgeTemplateId Double
    Template ID
    id String
    The provider-assigned unique ID for this managed resource.
    apiType string
    Wasm API type
    fastedgeTemplateId number
    Template ID
    id string
    The provider-assigned unique ID for this managed resource.
    api_type str
    Wasm API type
    fastedge_template_id float
    Template ID
    id str
    The provider-assigned unique ID for this managed resource.
    apiType String
    Wasm API type
    fastedgeTemplateId Number
    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) -> FastedgeTemplate
    func 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.
    The following state arguments are supported:
    ApiType string
    Wasm API type
    BinaryId double
    ID of the WebAssembly binary to use for this template
    FastedgeTemplateId double
    Template ID
    LongDescr 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<FastedgeTemplateParam>
    Parameters
    ShortDescr string
    Brief one-line description displayed in template listings
    ApiType string
    Wasm API type
    BinaryId float64
    ID of the WebAssembly binary to use for this template
    FastedgeTemplateId float64
    Template ID
    LongDescr 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 []FastedgeTemplateParamArgs
    Parameters
    ShortDescr string
    Brief one-line description displayed in template listings
    apiType String
    Wasm API type
    binaryId Double
    ID of the WebAssembly binary to use for this template
    fastedgeTemplateId Double
    Template ID
    longDescr 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<FastedgeTemplateParam>
    Parameters
    shortDescr String
    Brief one-line description displayed in template listings
    apiType string
    Wasm API type
    binaryId number
    ID of the WebAssembly binary to use for this template
    fastedgeTemplateId number
    Template ID
    longDescr 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 FastedgeTemplateParam[]
    Parameters
    shortDescr 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_id float
    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[FastedgeTemplateParamArgs]
    Parameters
    short_descr str
    Brief one-line description displayed in template listings
    apiType String
    Wasm API type
    binaryId Number
    ID of the WebAssembly binary to use for this template
    fastedgeTemplateId Number
    Template ID
    longDescr 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
    shortDescr String
    Brief one-line description displayed in template listings

    Supporting Types

    FastedgeTemplateParam, FastedgeTemplateParamArgs

    DataType 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
    DataType 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
    dataType 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
    dataType 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
    dataType 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 gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.3
    published on Monday, Mar 30, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.