flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getDcsTemplates
Start a Neo task
Explain and create a flexibleengine.getDcsTemplates resource
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 dictionaryThe following arguments are supported:
- Type string
- Specifies the type of the template. Value options:
- sys: system template.
- user: custom template.
- Cache
Mode 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.
- Engine
Version 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.
- Product
Type 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.
- Storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- Template
Id 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 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.
- Engine
Version 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.
- Product
Type 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.
- Storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- Template
Id 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 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.
- engine
Version 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.
- product
Type 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.
- storage
Type String - Specifies the storage type. Value options: DRAM, SSD.
- template
Id 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 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.
- engine
Version 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.
- product
Type 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.
- storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- template
Id 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.
- cache
Mode 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.
- engine
Version 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.
- product
Type 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.
- storage
Type String - Specifies the storage type. Value options: DRAM, SSD.
- template
Id String - Specifies the ID of the template.
getDcsTemplates Result
The following output properties are available:
- Id string
- The resource ID.
- Region string
- Templates
List<Get
Dcs Templates Template> - Indicates the list of DCS templates. The templates structure is documented below.
- Type string
- Indicates the type of the template.
- Cache
Mode string - Indicates the DCS instance type.
- Engine string
- Indicates the cache engine.
- Engine
Version string - Indicates the cache engine version.
- Name string
- Indicates the name of the template.
- Product
Type string - Indicates the product edition.
- Storage
Type string - Indicates the storage type.
- Template
Id string - Indicates the ID of the template.
- Id string
- The resource ID.
- Region string
- Templates
[]Get
Dcs Templates Template - Indicates the list of DCS templates. The templates structure is documented below.
- Type string
- Indicates the type of the template.
- Cache
Mode string - Indicates the DCS instance type.
- Engine string
- Indicates the cache engine.
- Engine
Version string - Indicates the cache engine version.
- Name string
- Indicates the name of the template.
- Product
Type string - Indicates the product edition.
- Storage
Type string - Indicates the storage type.
- Template
Id string - Indicates the ID of the template.
- id String
- The resource ID.
- region String
- templates
List<Get
Dcs Templates Template> - Indicates the list of DCS templates. The templates structure is documented below.
- type String
- Indicates the type of the template.
- cache
Mode String - Indicates the DCS instance type.
- engine String
- Indicates the cache engine.
- engine
Version String - Indicates the cache engine version.
- name String
- Indicates the name of the template.
- product
Type String - Indicates the product edition.
- storage
Type String - Indicates the storage type.
- template
Id String - Indicates the ID of the template.
- id string
- The resource ID.
- region string
- templates
Get
Dcs Templates Template[] - Indicates the list of DCS templates. The templates structure is documented below.
- type string
- Indicates the type of the template.
- cache
Mode string - Indicates the DCS instance type.
- engine string
- Indicates the cache engine.
- engine
Version string - Indicates the cache engine version.
- name string
- Indicates the name of the template.
- product
Type string - Indicates the product edition.
- storage
Type string - Indicates the storage type.
- template
Id string - Indicates the ID of the template.
- id str
- The resource ID.
- region str
- templates
Sequence[Get
Dcs Templates Template] - 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.
- cache
Mode String - Indicates the DCS instance type.
- engine String
- Indicates the cache engine.
- engine
Version String - Indicates the cache engine version.
- name String
- Indicates the name of the template.
- product
Type String - Indicates the product edition.
- storage
Type String - Indicates the storage type.
- template
Id String - Indicates the ID of the template.
Supporting Types
GetDcsTemplatesTemplate
- Cache
Mode 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.
- Engine
Version string - Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
- Name string
- Specifies the name of the template.
- Product
Type string - Specifies the product edition. Value options:
- generic: standard edition.
- enterprise: professional edition.
- Storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- Template
Id 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 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.
- Engine
Version string - Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
- Name string
- Specifies the name of the template.
- Product
Type string - Specifies the product edition. Value options:
- generic: standard edition.
- enterprise: professional edition.
- Storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- Template
Id 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 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.
- engine
Version String - Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
- name String
- Specifies the name of the template.
- product
Type String - Specifies the product edition. Value options:
- generic: standard edition.
- enterprise: professional edition.
- storage
Type String - Specifies the storage type. Value options: DRAM, SSD.
- template
Id 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 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.
- engine
Version string - Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
- name string
- Specifies the name of the template.
- product
Type string - Specifies the product edition. Value options:
- generic: standard edition.
- enterprise: professional edition.
- storage
Type string - Specifies the storage type. Value options: DRAM, SSD.
- template
Id 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.
- cache
Mode 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.
- engine
Version String - Specifies the cache engine version. Value options: 4.0, 5.0, 6.0.
- name String
- Specifies the name of the template.
- product
Type String - Specifies the product edition. Value options:
- generic: standard edition.
- enterprise: professional edition.
- storage
Type String - Specifies the storage type. Value options: DRAM, SSD.
- template
Id 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
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
