1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDcsTemplates
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDcsTemplates

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the list of DCS templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = flexibleengine.getDcsTemplates({
        name: "test_template_name",
        type: "sys",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.get_dcs_templates(name="test_template_name",
        type="sys")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.GetDcsTemplates(ctx, &flexibleengine.GetDcsTemplatesArgs{
    			Name: pulumi.StringRef("test_template_name"),
    			Type: "sys",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Flexibleengine.GetDcsTemplates.Invoke(new()
        {
            Name = "test_template_name",
            Type = "sys",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDcsTemplatesArgs;
    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) {
            final var test = FlexibleengineFunctions.getDcsTemplates(GetDcsTemplatesArgs.builder()
                .name("test_template_name")
                .type("sys")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getDcsTemplates
          arguments:
            name: test_template_name
            type: sys
    

    Using getDcsTemplates

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDcsTemplates(args: GetDcsTemplatesArgs, opts?: InvokeOptions): Promise<GetDcsTemplatesResult>
    function getDcsTemplatesOutput(args: GetDcsTemplatesOutputArgs, opts?: InvokeOptions): Output<GetDcsTemplatesResult>
    def get_dcs_templates(cache_mode: Optional[str] = None,
                          engine: Optional[str] = None,
                          engine_version: Optional[str] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          product_type: Optional[str] = None,
                          region: Optional[str] = None,
                          storage_type: Optional[str] = None,
                          template_id: Optional[str] = None,
                          type: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDcsTemplatesResult
    def get_dcs_templates_output(cache_mode: Optional[pulumi.Input[str]] = None,
                          engine: Optional[pulumi.Input[str]] = None,
                          engine_version: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          product_type: Optional[pulumi.Input[str]] = None,
                          region: Optional[pulumi.Input[str]] = None,
                          storage_type: Optional[pulumi.Input[str]] = None,
                          template_id: Optional[pulumi.Input[str]] = None,
                          type: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDcsTemplatesResult]
    func GetDcsTemplates(ctx *Context, args *GetDcsTemplatesArgs, opts ...InvokeOption) (*GetDcsTemplatesResult, error)
    func GetDcsTemplatesOutput(ctx *Context, args *GetDcsTemplatesOutputArgs, opts ...InvokeOption) GetDcsTemplatesResultOutput

    > Note: This function is named GetDcsTemplates in the Go SDK.

    public static class GetDcsTemplates 
    {
        public static Task<GetDcsTemplatesResult> InvokeAsync(GetDcsTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetDcsTemplatesResult> Invoke(GetDcsTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcsTemplatesResult> getDcsTemplates(GetDcsTemplatesArgs args, InvokeOptions options)
    public static Output<GetDcsTemplatesResult> getDcsTemplates(GetDcsTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDcsTemplates:getDcsTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    CacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    Engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    EngineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    Id string
    The resource ID.
    Name string
    Specifies the name of the template.
    ProductType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    StorageType string
    Specifies the storage type. Value options: DRAM, SSD.
    TemplateId string
    Specifies the ID of the template.
    Type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    CacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    Engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    EngineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    Id string
    The resource ID.
    Name string
    Specifies the name of the template.
    ProductType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    StorageType string
    Specifies the storage type. Value options: DRAM, SSD.
    TemplateId string
    Specifies the ID of the template.
    type String
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode String
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    engine String
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion String
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    id String
    The resource ID.
    name String
    Specifies the name of the template.
    productType String
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    storageType String
    Specifies the storage type. Value options: DRAM, SSD.
    templateId String
    Specifies the ID of the template.
    type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    id string
    The resource ID.
    name string
    Specifies the name of the template.
    productType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    storageType string
    Specifies the storage type. Value options: DRAM, SSD.
    templateId string
    Specifies the ID of the template.
    type str
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cache_mode str
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    engine str
    Specifies the cache engine. Value options: Redis, Memcached.
    engine_version str
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    id str
    The resource ID.
    name str
    Specifies the name of the template.
    product_type str
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    region str
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    storage_type str
    Specifies the storage type. Value options: DRAM, SSD.
    template_id str
    Specifies the ID of the template.
    type String
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode String
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    engine String
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion String
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    id String
    The resource ID.
    name String
    Specifies the name of the template.
    productType String
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    storageType String
    Specifies the storage type. Value options: DRAM, SSD.
    templateId String
    Specifies the ID of the template.

    getDcsTemplates Result

    The following output properties are available:

    Id string
    The resource ID.
    Region string
    Templates List<GetDcsTemplatesTemplate>
    Indicates the list of DCS templates. The templates structure is documented below.
    Type string
    Indicates the type of the template.
    CacheMode string
    Indicates the DCS instance type.
    Engine string
    Indicates the cache engine.
    EngineVersion string
    Indicates the cache engine version.
    Name string
    Indicates the name of the template.
    ProductType string
    Indicates the product edition.
    StorageType string
    Indicates the storage type.
    TemplateId string
    Indicates the ID of the template.
    Id string
    The resource ID.
    Region string
    Templates []GetDcsTemplatesTemplate
    Indicates the list of DCS templates. The templates structure is documented below.
    Type string
    Indicates the type of the template.
    CacheMode string
    Indicates the DCS instance type.
    Engine string
    Indicates the cache engine.
    EngineVersion string
    Indicates the cache engine version.
    Name string
    Indicates the name of the template.
    ProductType string
    Indicates the product edition.
    StorageType string
    Indicates the storage type.
    TemplateId string
    Indicates the ID of the template.
    id String
    The resource ID.
    region String
    templates List<GetDcsTemplatesTemplate>
    Indicates the list of DCS templates. The templates structure is documented below.
    type String
    Indicates the type of the template.
    cacheMode String
    Indicates the DCS instance type.
    engine String
    Indicates the cache engine.
    engineVersion String
    Indicates the cache engine version.
    name String
    Indicates the name of the template.
    productType String
    Indicates the product edition.
    storageType String
    Indicates the storage type.
    templateId String
    Indicates the ID of the template.
    id string
    The resource ID.
    region string
    templates GetDcsTemplatesTemplate[]
    Indicates the list of DCS templates. The templates structure is documented below.
    type string
    Indicates the type of the template.
    cacheMode string
    Indicates the DCS instance type.
    engine string
    Indicates the cache engine.
    engineVersion string
    Indicates the cache engine version.
    name string
    Indicates the name of the template.
    productType string
    Indicates the product edition.
    storageType string
    Indicates the storage type.
    templateId string
    Indicates the ID of the template.
    id str
    The resource ID.
    region str
    templates Sequence[GetDcsTemplatesTemplate]
    Indicates the list of DCS templates. The templates structure is documented below.
    type str
    Indicates the type of the template.
    cache_mode str
    Indicates the DCS instance type.
    engine str
    Indicates the cache engine.
    engine_version str
    Indicates the cache engine version.
    name str
    Indicates the name of the template.
    product_type str
    Indicates the product edition.
    storage_type str
    Indicates the storage type.
    template_id str
    Indicates the ID of the template.
    id String
    The resource ID.
    region String
    templates List<Property Map>
    Indicates the list of DCS templates. The templates structure is documented below.
    type String
    Indicates the type of the template.
    cacheMode String
    Indicates the DCS instance type.
    engine String
    Indicates the cache engine.
    engineVersion String
    Indicates the cache engine version.
    name String
    Indicates the name of the template.
    productType String
    Indicates the product edition.
    storageType String
    Indicates the storage type.
    templateId String
    Indicates the ID of the template.

    Supporting Types

    GetDcsTemplatesTemplate

    CacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    Description string
    Indicates the description of the template.
    Engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    EngineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    Name string
    Specifies the name of the template.
    ProductType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    StorageType string
    Specifies the storage type. Value options: DRAM, SSD.
    TemplateId string
    Specifies the ID of the template.
    Type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    CacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    Description string
    Indicates the description of the template.
    Engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    EngineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    Name string
    Specifies the name of the template.
    ProductType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    StorageType string
    Specifies the storage type. Value options: DRAM, SSD.
    TemplateId string
    Specifies the ID of the template.
    Type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode String
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    description String
    Indicates the description of the template.
    engine String
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion String
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    name String
    Specifies the name of the template.
    productType String
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    storageType String
    Specifies the storage type. Value options: DRAM, SSD.
    templateId String
    Specifies the ID of the template.
    type String
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode string
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    description string
    Indicates the description of the template.
    engine string
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion string
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    name string
    Specifies the name of the template.
    productType string
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    storageType string
    Specifies the storage type. Value options: DRAM, SSD.
    templateId string
    Specifies the ID of the template.
    type string
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cache_mode str
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    description str
    Indicates the description of the template.
    engine str
    Specifies the cache engine. Value options: Redis, Memcached.
    engine_version str
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    name str
    Specifies the name of the template.
    product_type str
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    storage_type str
    Specifies the storage type. Value options: DRAM, SSD.
    template_id str
    Specifies the ID of the template.
    type str
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.
    cacheMode String
    Specifies the DCS instance type. Value options:

    • single: single-node.
    • ha: master/standby.
    • cluster: Redis Cluster.
    • proxy: Proxy Cluster.
    description String
    Indicates the description of the template.
    engine String
    Specifies the cache engine. Value options: Redis, Memcached.
    engineVersion String
    Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
    name String
    Specifies the name of the template.
    productType String
    Specifies the product edition. Value options:

    • generic: standard edition.
    • enterprise: professional edition.
    storageType String
    Specifies the storage type. Value options: DRAM, SSD.
    templateId String
    Specifies the ID of the template.
    type String
    Specifies the type of the template. Value options:

    • sys: system template.
    • user: custom template.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud