get Enterprise Instances
This data source provides a list of DMS Enterprise Instances in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.88.0+
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dms.DmsFunctions;
import com.pulumi.alicloud.dms.inputs.GetEnterpriseInstancesArgs;
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 dmsEnterpriseInstancesDs = DmsFunctions.getEnterpriseInstances(GetEnterpriseInstancesArgs.builder()
.envType("test")
.instanceType("mysql")
.nameRegex("tf_testAcc")
.netType("CLASSIC")
.outputFile("dms_enterprise_instances.json")
.build());
ctx.export("firstDatabaseInstanceId", dmsEnterpriseInstancesDs.applyValue(getEnterpriseInstancesResult -> getEnterpriseInstancesResult.instances()[0].instanceId()));
}
}
Return
A collection of values returned by getEnterpriseInstances.
Parameters
A collection of arguments for invoking getEnterpriseInstances.
Return
A collection of values returned by getEnterpriseInstances.
See also
Parameters
The type of the environment to which the database instance belongs.
A regex string to filter the results by the DMS Enterprise Instance instance_alias.
The source of the database instance.
The ID of the database instance.
A regex string to filter the results by the DMS Enterprise Instance instance_alias.
The network type of the database instance. Valid values: CLASSIC and VPC. For more information about the valid values, see the description of the RegisterInstance operation.
File name where to save data source results (after running pulumi preview
).
The keyword used to query database instances.
Filter the results by status of the DMS Enterprise Instances. Valid values: NORMAL
, UNAVAILABLE
, UNKNOWN
, DELETED
, DISABLE
.
The ID of the tenant in Data Management (DMS) Enterprise.
Return
A collection of values returned by getEnterpriseInstances.
See also
Parameters
Builder for com.pulumi.alicloud.dms.kotlin.inputs.GetEnterpriseInstancesPlainArgs.