alicloud.dms.getEnterpriseLogicDatabases
Explore with Pulumi AI
This data source provides DMS Enterprise Logic Database available to the user.What is Logic Database
NOTE: Available in 1.195.0+
Example Usage
Coming soon!
Coming soon!
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 com.pulumi.alicloud.dms.inputs.GetEnterpriseLogicDatabasesArgs;
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()
.instanceType("mysql")
.searchKey("tf-test-no-deleting")
.build());
final var default = DmsFunctions.getEnterpriseLogicDatabases(GetEnterpriseLogicDatabasesArgs.builder()
.instanceId(dmsEnterpriseInstancesDs.applyValue(getEnterpriseInstancesResult -> getEnterpriseInstancesResult.instances()[0].instanceId()))
.build());
ctx.export("alicloudDmsEnterpriseLogicDatabaseExampleId", default_.databases()[0].id());
}
}
Coming soon!
Coming soon!
variables:
dmsEnterpriseInstancesDs:
fn::invoke:
Function: alicloud:dms:getEnterpriseInstances
Arguments:
instanceType: mysql
searchKey: tf-test-no-deleting
default:
fn::invoke:
Function: alicloud:dms:getEnterpriseLogicDatabases
Arguments:
instanceId: ${dmsEnterpriseInstancesDs.instances[0].instanceId}
outputs:
alicloudDmsEnterpriseLogicDatabaseExampleId: ${default.databases[0].id}
Using getEnterpriseLogicDatabases
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 getEnterpriseLogicDatabases(args: GetEnterpriseLogicDatabasesArgs, opts?: InvokeOptions): Promise<GetEnterpriseLogicDatabasesResult>
function getEnterpriseLogicDatabasesOutput(args: GetEnterpriseLogicDatabasesOutputArgs, opts?: InvokeOptions): Output<GetEnterpriseLogicDatabasesResult>
def get_enterprise_logic_databases(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnterpriseLogicDatabasesResult
def get_enterprise_logic_databases_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnterpriseLogicDatabasesResult]
func GetEnterpriseLogicDatabases(ctx *Context, args *GetEnterpriseLogicDatabasesArgs, opts ...InvokeOption) (*GetEnterpriseLogicDatabasesResult, error)
func GetEnterpriseLogicDatabasesOutput(ctx *Context, args *GetEnterpriseLogicDatabasesOutputArgs, opts ...InvokeOption) GetEnterpriseLogicDatabasesResultOutput
> Note: This function is named GetEnterpriseLogicDatabases
in the Go SDK.
public static class GetEnterpriseLogicDatabases
{
public static Task<GetEnterpriseLogicDatabasesResult> InvokeAsync(GetEnterpriseLogicDatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetEnterpriseLogicDatabasesResult> Invoke(GetEnterpriseLogicDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnterpriseLogicDatabasesResult> getEnterpriseLogicDatabases(GetEnterpriseLogicDatabasesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dms/getEnterpriseLogicDatabases:getEnterpriseLogicDatabases
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
A list of Logic Database IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).
- Ids []string
A list of Logic Database IDs.
- Output
File string File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of Logic Database IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).
- ids string[]
A list of Logic Database IDs.
- output
File string File name where to save data source results (after running
pulumi preview
).
- ids Sequence[str]
A list of Logic Database IDs.
- output_
file str File name where to save data source results (after running
pulumi preview
).
- ids List<String>
A list of Logic Database IDs.
- output
File String File name where to save data source results (after running
pulumi preview
).
getEnterpriseLogicDatabases Result
The following output properties are available:
- Databases
List<Pulumi.
Ali Cloud. Dms. Outputs. Get Enterprise Logic Databases Database> A list of Logic Database Entries. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of Logic Database IDs.
- Output
File string
- Databases
[]Get
Enterprise Logic Databases Database A list of Logic Database Entries. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of Logic Database IDs.
- Output
File string
- databases
List<Get
Enterprise Logic Databases Database> A list of Logic Database Entries. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Logic Database IDs.
- output
File String
- databases
Get
Enterprise Logic Databases Database[] A list of Logic Database Entries. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of Logic Database IDs.
- output
File string
- databases
Sequence[Get
Enterprise Logic Databases Database] A list of Logic Database Entries. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
A list of Logic Database IDs.
- output_
file str
- databases List<Property Map>
A list of Logic Database Entries. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of Logic Database IDs.
- output
File String
Supporting Types
GetEnterpriseLogicDatabasesDatabase
- Alias string
Logical Library alias.
- Database
Ids List<string> Sub-Database ID.
- Db
Type string Database type.
- Env
Type string Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- Id string
Logic Database ID.
- Logic bool
Whether it is a logical Library, the return value is true.
- Logic
Database stringId The ID of the logical Library.
- Owner
Id List<string>Lists The user ID list of the logical library Owner.
- Owner
Name List<string>Lists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- Alias string
Logical Library alias.
- Database
Ids []string Sub-Database ID.
- Db
Type string Database type.
- Env
Type string Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- Id string
Logic Database ID.
- Logic bool
Whether it is a logical Library, the return value is true.
- Logic
Database stringId The ID of the logical Library.
- Owner
Id []stringLists The user ID list of the logical library Owner.
- Owner
Name []stringLists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- alias String
Logical Library alias.
- database
Ids List<String> Sub-Database ID.
- db
Type String Database type.
- env
Type String Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- id String
Logic Database ID.
- logic Boolean
Whether it is a logical Library, the return value is true.
- logic
Database StringId The ID of the logical Library.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name String Logical library search name.
- alias string
Logical Library alias.
- database
Ids string[] Sub-Database ID.
- db
Type string Database type.
- env
Type string Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- id string
Logic Database ID.
- logic boolean
Whether it is a logical Library, the return value is true.
- logic
Database stringId The ID of the logical Library.
- owner
Id string[]Lists The user ID list of the logical library Owner.
- owner
Name string[]Lists The nickname list of the logical library Owner.
- schema
Name string Logical Library name.
- search
Name string Logical library search name.
- alias str
Logical Library alias.
- database_
ids Sequence[str] Sub-Database ID.
- db_
type str Database type.
- env_
type str Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- id str
Logic Database ID.
- logic bool
Whether it is a logical Library, the return value is true.
- logic_
database_ strid The ID of the logical Library.
- owner_
id_ Sequence[str]lists The user ID list of the logical library Owner.
- owner_
name_ Sequence[str]lists The nickname list of the logical library Owner.
- schema_
name str Logical Library name.
- search_
name str Logical library search name.
- alias String
Logical Library alias.
- database
Ids List<String> Sub-Database ID.
- db
Type String Database type.
- env
Type String Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
- id String
Logic Database ID.
- logic Boolean
Whether it is a logical Library, the return value is true.
- logic
Database StringId The ID of the logical Library.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name String Logical library search name.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.