flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getDcsInstances
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the list of DCS instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const test = flexibleengine.getDcsInstances({
name: "test_name",
status: "RUNNING",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
test = flexibleengine.get_dcs_instances(name="test_name",
status="RUNNING")
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.GetDcsInstances(ctx, &flexibleengine.GetDcsInstancesArgs{
Name: pulumi.StringRef("test_name"),
Status: pulumi.StringRef("RUNNING"),
}, 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.GetDcsInstances.Invoke(new()
{
Name = "test_name",
Status = "RUNNING",
});
});
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.GetDcsInstancesArgs;
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.getDcsInstances(GetDcsInstancesArgs.builder()
.name("test_name")
.status("RUNNING")
.build());
}
}
variables:
test:
fn::invoke:
function: flexibleengine:getDcsInstances
arguments:
name: test_name
status: RUNNING
Using getDcsInstances
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 getDcsInstances(args: GetDcsInstancesArgs, opts?: InvokeOptions): Promise<GetDcsInstancesResult>
function getDcsInstancesOutput(args: GetDcsInstancesOutputArgs, opts?: InvokeOptions): Output<GetDcsInstancesResult>
def get_dcs_instances(capacity: Optional[float] = None,
id: Optional[str] = None,
name: Optional[str] = None,
private_ip: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDcsInstancesResult
def get_dcs_instances_output(capacity: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
private_ip: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDcsInstancesResult]
func GetDcsInstances(ctx *Context, args *GetDcsInstancesArgs, opts ...InvokeOption) (*GetDcsInstancesResult, error)
func GetDcsInstancesOutput(ctx *Context, args *GetDcsInstancesOutputArgs, opts ...InvokeOption) GetDcsInstancesResultOutput
> Note: This function is named GetDcsInstances
in the Go SDK.
public static class GetDcsInstances
{
public static Task<GetDcsInstancesResult> InvokeAsync(GetDcsInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetDcsInstancesResult> Invoke(GetDcsInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDcsInstancesResult> getDcsInstances(GetDcsInstancesArgs args, InvokeOptions options)
public static Output<GetDcsInstancesResult> getDcsInstances(GetDcsInstancesArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getDcsInstances:getDcsInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Capacity double
- Specifies the cache capacity. Unit: GB.
- Id string
- Indicates the ID of the instance.
- Name string
- Specifies the name of an instance.
- Private
Ip string - Specifies the subnet Network ID.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- Status string
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- Capacity float64
- Specifies the cache capacity. Unit: GB.
- Id string
- Indicates the ID of the instance.
- Name string
- Specifies the name of an instance.
- Private
Ip string - Specifies the subnet Network ID.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- Status string
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- capacity Double
- Specifies the cache capacity. Unit: GB.
- id String
- Indicates the ID of the instance.
- name String
- Specifies the name of an instance.
- private
Ip String - Specifies the subnet Network ID.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- status String
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- capacity number
- Specifies the cache capacity. Unit: GB.
- id string
- Indicates the ID of the instance.
- name string
- Specifies the name of an instance.
- private
Ip string - Specifies the subnet Network ID.
- region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- status string
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- capacity float
- Specifies the cache capacity. Unit: GB.
- id str
- Indicates the ID of the instance.
- name str
- Specifies the name of an instance.
- private_
ip str - Specifies the subnet Network ID.
- region str
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- status str
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- capacity Number
- Specifies the cache capacity. Unit: GB.
- id String
- Indicates the ID of the instance.
- name String
- Specifies the name of an instance.
- private
Ip String - Specifies the subnet Network ID.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- status String
- Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
getDcsInstances Result
The following output properties are available:
- Id string
- Indicates the ID of the instance.
- Instances
List<Get
Dcs Instances Instance> - Indicates the list of DCS instances. The Instance structure is documented below.
- Region string
- Capacity double
- Indicates the cache capacity. Unit: GB.
- Name string
- Indicates the name of an instance.
- Private
Ip string - Indicates the IP address of the DCS instance.
- Status string
- Indicates the cache instance status.
- Id string
- Indicates the ID of the instance.
- Instances
[]Get
Dcs Instances Instance - Indicates the list of DCS instances. The Instance structure is documented below.
- Region string
- Capacity float64
- Indicates the cache capacity. Unit: GB.
- Name string
- Indicates the name of an instance.
- Private
Ip string - Indicates the IP address of the DCS instance.
- Status string
- Indicates the cache instance status.
- id String
- Indicates the ID of the instance.
- instances
List<Get
Dcs Instances Instance> - Indicates the list of DCS instances. The Instance structure is documented below.
- region String
- capacity Double
- Indicates the cache capacity. Unit: GB.
- name String
- Indicates the name of an instance.
- private
Ip String - Indicates the IP address of the DCS instance.
- status String
- Indicates the cache instance status.
- id string
- Indicates the ID of the instance.
- instances
Get
Dcs Instances Instance[] - Indicates the list of DCS instances. The Instance structure is documented below.
- region string
- capacity number
- Indicates the cache capacity. Unit: GB.
- name string
- Indicates the name of an instance.
- private
Ip string - Indicates the IP address of the DCS instance.
- status string
- Indicates the cache instance status.
- id str
- Indicates the ID of the instance.
- instances
Sequence[Get
Dcs Instances Instance] - Indicates the list of DCS instances. The Instance structure is documented below.
- region str
- capacity float
- Indicates the cache capacity. Unit: GB.
- name str
- Indicates the name of an instance.
- private_
ip str - Indicates the IP address of the DCS instance.
- status str
- Indicates the cache instance status.
- id String
- Indicates the ID of the instance.
- instances List<Property Map>
- Indicates the list of DCS instances. The Instance structure is documented below.
- region String
- capacity Number
- Indicates the cache capacity. Unit: GB.
- name String
- Indicates the name of an instance.
- private
Ip String - Indicates the IP address of the DCS instance.
- status String
- Indicates the cache instance status.
Supporting Types
GetDcsInstancesInstance
- Access
User This property is required. string - Indicates the username used for accessing a DCS Memcached instance.
- Availability
Zones This property is required. List<string> - Specifies the code of the AZ where the cache node resides.
- Capacity
This property is required. double - Specifies the cache capacity. Unit: GB.
- Charging
Mode This property is required. string - Description
This property is required. string - Indicates the description of an instance.
- Domain
Name This property is required. string - Indicates the domain name of the instance.
- Engine
This property is required. string - Indicates a cache engine.
- Engine
Version This property is required. string - Indicates the version of a cache engine.
- Enterprise
Project Id This property is required. string - Indicates the enterprise project id of the dcs instance.
- Flavor
This property is required. string - Indicates the flavor of the cache instance.
- Id
This property is required. string - Indicates the ID of the instance.
- Maintain
Begin This property is required. string - Indicates the time at which the maintenance time window starts.
- Maintain
End This property is required. string - Indicates the time at which the maintenance time window ends.
- Max
Memory This property is required. double - Indicates the total memory size. Unit: MB.
- Name
This property is required. string - Specifies the name of an instance.
- Order
Id This property is required. string - Indicates the ID of the order that created the instance.
- Port
This property is required. double - Indicates the port of the cache instance.
- Private
Ip This property is required. string - Specifies the subnet Network ID.
- Security
Group Id This property is required. string - Indicates the ID of the security group which the instance belongs to.
- Security
Group Name This property is required. string - Indicates the name of security group which the instance belongs to.
- Status
This property is required. string - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- Subnet
Id This property is required. string - Indicates the ID of subnet which the instance belongs to.
- Subnet
Name This property is required. string - Indicates the name of subnet which the instance belongs to.
This property is required. Dictionary<string, string>- Indicates The key/value pairs to associate with the DCS instance.
- Used
Memory This property is required. double - Indicates the size of the used memory. Unit: MB.
- Vpc
Id This property is required. string - Indicates the ID of VPC which the instance belongs to.
- Vpc
Name This property is required. string - Indicates the name of VPC which the instance belongs to.
- Access
User This property is required. string - Indicates the username used for accessing a DCS Memcached instance.
- Availability
Zones This property is required. []string - Specifies the code of the AZ where the cache node resides.
- Capacity
This property is required. float64 - Specifies the cache capacity. Unit: GB.
- Charging
Mode This property is required. string - Description
This property is required. string - Indicates the description of an instance.
- Domain
Name This property is required. string - Indicates the domain name of the instance.
- Engine
This property is required. string - Indicates a cache engine.
- Engine
Version This property is required. string - Indicates the version of a cache engine.
- Enterprise
Project Id This property is required. string - Indicates the enterprise project id of the dcs instance.
- Flavor
This property is required. string - Indicates the flavor of the cache instance.
- Id
This property is required. string - Indicates the ID of the instance.
- Maintain
Begin This property is required. string - Indicates the time at which the maintenance time window starts.
- Maintain
End This property is required. string - Indicates the time at which the maintenance time window ends.
- Max
Memory This property is required. float64 - Indicates the total memory size. Unit: MB.
- Name
This property is required. string - Specifies the name of an instance.
- Order
Id This property is required. string - Indicates the ID of the order that created the instance.
- Port
This property is required. float64 - Indicates the port of the cache instance.
- Private
Ip This property is required. string - Specifies the subnet Network ID.
- Security
Group Id This property is required. string - Indicates the ID of the security group which the instance belongs to.
- Security
Group Name This property is required. string - Indicates the name of security group which the instance belongs to.
- Status
This property is required. string - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- Subnet
Id This property is required. string - Indicates the ID of subnet which the instance belongs to.
- Subnet
Name This property is required. string - Indicates the name of subnet which the instance belongs to.
This property is required. map[string]string- Indicates The key/value pairs to associate with the DCS instance.
- Used
Memory This property is required. float64 - Indicates the size of the used memory. Unit: MB.
- Vpc
Id This property is required. string - Indicates the ID of VPC which the instance belongs to.
- Vpc
Name This property is required. string - Indicates the name of VPC which the instance belongs to.
- access
User This property is required. String - Indicates the username used for accessing a DCS Memcached instance.
- availability
Zones This property is required. List<String> - Specifies the code of the AZ where the cache node resides.
- capacity
This property is required. Double - Specifies the cache capacity. Unit: GB.
- charging
Mode This property is required. String - description
This property is required. String - Indicates the description of an instance.
- domain
Name This property is required. String - Indicates the domain name of the instance.
- engine
This property is required. String - Indicates a cache engine.
- engine
Version This property is required. String - Indicates the version of a cache engine.
- enterprise
Project Id This property is required. String - Indicates the enterprise project id of the dcs instance.
- flavor
This property is required. String - Indicates the flavor of the cache instance.
- id
This property is required. String - Indicates the ID of the instance.
- maintain
Begin This property is required. String - Indicates the time at which the maintenance time window starts.
- maintain
End This property is required. String - Indicates the time at which the maintenance time window ends.
- max
Memory This property is required. Double - Indicates the total memory size. Unit: MB.
- name
This property is required. String - Specifies the name of an instance.
- order
Id This property is required. String - Indicates the ID of the order that created the instance.
- port
This property is required. Double - Indicates the port of the cache instance.
- private
Ip This property is required. String - Specifies the subnet Network ID.
- security
Group Id This property is required. String - Indicates the ID of the security group which the instance belongs to.
- security
Group Name This property is required. String - Indicates the name of security group which the instance belongs to.
- status
This property is required. String - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- subnet
Id This property is required. String - Indicates the ID of subnet which the instance belongs to.
- subnet
Name This property is required. String - Indicates the name of subnet which the instance belongs to.
This property is required. Map<String,String>- Indicates The key/value pairs to associate with the DCS instance.
- used
Memory This property is required. Double - Indicates the size of the used memory. Unit: MB.
- vpc
Id This property is required. String - Indicates the ID of VPC which the instance belongs to.
- vpc
Name This property is required. String - Indicates the name of VPC which the instance belongs to.
- access
User This property is required. string - Indicates the username used for accessing a DCS Memcached instance.
- availability
Zones This property is required. string[] - Specifies the code of the AZ where the cache node resides.
- capacity
This property is required. number - Specifies the cache capacity. Unit: GB.
- charging
Mode This property is required. string - description
This property is required. string - Indicates the description of an instance.
- domain
Name This property is required. string - Indicates the domain name of the instance.
- engine
This property is required. string - Indicates a cache engine.
- engine
Version This property is required. string - Indicates the version of a cache engine.
- enterprise
Project Id This property is required. string - Indicates the enterprise project id of the dcs instance.
- flavor
This property is required. string - Indicates the flavor of the cache instance.
- id
This property is required. string - Indicates the ID of the instance.
- maintain
Begin This property is required. string - Indicates the time at which the maintenance time window starts.
- maintain
End This property is required. string - Indicates the time at which the maintenance time window ends.
- max
Memory This property is required. number - Indicates the total memory size. Unit: MB.
- name
This property is required. string - Specifies the name of an instance.
- order
Id This property is required. string - Indicates the ID of the order that created the instance.
- port
This property is required. number - Indicates the port of the cache instance.
- private
Ip This property is required. string - Specifies the subnet Network ID.
- security
Group Id This property is required. string - Indicates the ID of the security group which the instance belongs to.
- security
Group Name This property is required. string - Indicates the name of security group which the instance belongs to.
- status
This property is required. string - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- subnet
Id This property is required. string - Indicates the ID of subnet which the instance belongs to.
- subnet
Name This property is required. string - Indicates the name of subnet which the instance belongs to.
This property is required. {[key: string]: string}- Indicates The key/value pairs to associate with the DCS instance.
- used
Memory This property is required. number - Indicates the size of the used memory. Unit: MB.
- vpc
Id This property is required. string - Indicates the ID of VPC which the instance belongs to.
- vpc
Name This property is required. string - Indicates the name of VPC which the instance belongs to.
- access_
user This property is required. str - Indicates the username used for accessing a DCS Memcached instance.
- availability_
zones This property is required. Sequence[str] - Specifies the code of the AZ where the cache node resides.
- capacity
This property is required. float - Specifies the cache capacity. Unit: GB.
- charging_
mode This property is required. str - description
This property is required. str - Indicates the description of an instance.
- domain_
name This property is required. str - Indicates the domain name of the instance.
- engine
This property is required. str - Indicates a cache engine.
- engine_
version This property is required. str - Indicates the version of a cache engine.
- enterprise_
project_ id This property is required. str - Indicates the enterprise project id of the dcs instance.
- flavor
This property is required. str - Indicates the flavor of the cache instance.
- id
This property is required. str - Indicates the ID of the instance.
- maintain_
begin This property is required. str - Indicates the time at which the maintenance time window starts.
- maintain_
end This property is required. str - Indicates the time at which the maintenance time window ends.
- max_
memory This property is required. float - Indicates the total memory size. Unit: MB.
- name
This property is required. str - Specifies the name of an instance.
- order_
id This property is required. str - Indicates the ID of the order that created the instance.
- port
This property is required. float - Indicates the port of the cache instance.
- private_
ip This property is required. str - Specifies the subnet Network ID.
- security_
group_ id This property is required. str - Indicates the ID of the security group which the instance belongs to.
- security_
group_ name This property is required. str - Indicates the name of security group which the instance belongs to.
- status
This property is required. str - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- subnet_
id This property is required. str - Indicates the ID of subnet which the instance belongs to.
- subnet_
name This property is required. str - Indicates the name of subnet which the instance belongs to.
This property is required. Mapping[str, str]- Indicates The key/value pairs to associate with the DCS instance.
- used_
memory This property is required. float - Indicates the size of the used memory. Unit: MB.
- vpc_
id This property is required. str - Indicates the ID of VPC which the instance belongs to.
- vpc_
name This property is required. str - Indicates the name of VPC which the instance belongs to.
- access
User This property is required. String - Indicates the username used for accessing a DCS Memcached instance.
- availability
Zones This property is required. List<String> - Specifies the code of the AZ where the cache node resides.
- capacity
This property is required. Number - Specifies the cache capacity. Unit: GB.
- charging
Mode This property is required. String - description
This property is required. String - Indicates the description of an instance.
- domain
Name This property is required. String - Indicates the domain name of the instance.
- engine
This property is required. String - Indicates a cache engine.
- engine
Version This property is required. String - Indicates the version of a cache engine.
- enterprise
Project Id This property is required. String - Indicates the enterprise project id of the dcs instance.
- flavor
This property is required. String - Indicates the flavor of the cache instance.
- id
This property is required. String - Indicates the ID of the instance.
- maintain
Begin This property is required. String - Indicates the time at which the maintenance time window starts.
- maintain
End This property is required. String - Indicates the time at which the maintenance time window ends.
- max
Memory This property is required. Number - Indicates the total memory size. Unit: MB.
- name
This property is required. String - Specifies the name of an instance.
- order
Id This property is required. String - Indicates the ID of the order that created the instance.
- port
This property is required. Number - Indicates the port of the cache instance.
- private
Ip This property is required. String - Specifies the subnet Network ID.
- security
Group Id This property is required. String - Indicates the ID of the security group which the instance belongs to.
- security
Group Name This property is required. String - Indicates the name of security group which the instance belongs to.
- status
This property is required. String - Specifies the cache instance status. The valid values are RUNNING, ERROR, RESTARTING, FROZEN, EXTENDING, RESTORING, FLUSHING.
- subnet
Id This property is required. String - Indicates the ID of subnet which the instance belongs to.
- subnet
Name This property is required. String - Indicates the name of subnet which the instance belongs to.
This property is required. Map<String>- Indicates The key/value pairs to associate with the DCS instance.
- used
Memory This property is required. Number - Indicates the size of the used memory. Unit: MB.
- vpc
Id This property is required. String - Indicates the ID of VPC which the instance belongs to.
- vpc
Name This property is required. String - Indicates the name of VPC which the instance belongs to.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud