get Instances
The alicloud.kvstore.getInstances
data source provides a collection of kvstore instances available in Alicloud account. Filters support regular expression for the instance name, searches by tags, and other filters which are listed below.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.kvstore.KvstoreFunctions;
import com.pulumi.alicloud.kvstore.inputs.GetInstancesArgs;
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 default = KvstoreFunctions.getInstances(GetInstancesArgs.builder()
.nameRegex("testname")
.build());
ctx.export("firstInstanceName", default_.instances()[0].name());
}
}
Return
A collection of values returned by getInstances.
Parameters
A collection of arguments for invoking getInstances.
Return
A collection of values returned by getInstances.
See also
Parameters
The type of the architecture. Valid values: cluster
, standard
and SplitRW
.
Used to retrieve instances belong to specified vswitch
resources. Valid values: Enterprise
, Community
.
Default to false
. Set it to true can output more details.
The engine version. Valid values: 2.8
, 4.0
, 5.0
, 6.0
, 7.0
.
The expiration status of the instance.
Whether to create a distributed cache.
A list of KVStore DBInstance IDs.
Type of the applied ApsaraDB for Redis instance. For more information, see Instance type table.
The engine type of the KVStore DBInstance. Options are Memcache
, and Redis
. If no value is specified, all types are returned.
A regex string to apply to the instance name.
The type of the network. Valid values: CLASSIC
, VPC
.
The name of file that can save the collection of instances after running pulumi preview
.
The payment type. Valid values: PostPaid
, PrePaid
.
The ID of the resource group.
The name of the instance.
The status of the KVStore DBInstance. Valid values: Changing
, CleaningUpExpiredData
, Creating
, Flushing
, HASwitching
, Inactive
, MajorVersionUpgrading
, Migrating
, NetworkModifying
, Normal
, Rebooting
, SSLModifying
, Transforming
, ZoneMigrating
.
Query the instance bound to the tag. The format of the incoming value is json
string, including TagKey
and TagValue
. TagKey
cannot be null, and TagValue
can be empty. Format example {"key1":"value1"}
.
Used to retrieve instances belong to specified VPC.
Used to retrieve instances belong to specified vswitch
resources.
The ID of the zone.
Return
A collection of values returned by getInstances.
See also
Parameters
Builder for com.pulumi.alicloud.kvstore.kotlin.inputs.GetInstancesPlainArgs.