1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dms
  5. getEnterpriseLogicDatabases
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.dms.getEnterpriseLogicDatabases

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides DMS Enterprise Logic Database available to the user. What is Logic Database.

    NOTE: Available since v1.195.0.

    Example Usage

    Basic Usage

    Coming soon!
    
    Coming soon!
    
    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());
        }
    }
    
    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.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Ids []string
    A list of Logic Database IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ids List<String>
    A list of Logic Database IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    ids string[]
    A list of Logic Database IDs.
    outputFile 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.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getEnterpriseLogicDatabases Result

    The following output properties are available:

    Databases List<Pulumi.AliCloud.Dms.Outputs.GetEnterpriseLogicDatabasesDatabase>
    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.
    OutputFile string
    Databases []GetEnterpriseLogicDatabasesDatabase
    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.
    OutputFile string
    databases List<GetEnterpriseLogicDatabasesDatabase>
    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.
    outputFile String
    databases GetEnterpriseLogicDatabasesDatabase[]
    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.
    outputFile string
    databases Sequence[GetEnterpriseLogicDatabasesDatabase]
    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.
    outputFile String

    Supporting Types

    GetEnterpriseLogicDatabasesDatabase

    Alias string
    Logical Library alias.
    DatabaseIds List<string>
    Sub-Database ID.
    DbType string
    Database type.
    EnvType 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.
    LogicDatabaseId string
    The ID of the logical Library.
    OwnerIdLists List<string>
    The user ID list of the logical library Owner.
    OwnerNameLists List<string>
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    Alias string
    Logical Library alias.
    DatabaseIds []string
    Sub-Database ID.
    DbType string
    Database type.
    EnvType 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.
    LogicDatabaseId string
    The ID of the logical Library.
    OwnerIdLists []string
    The user ID list of the logical library Owner.
    OwnerNameLists []string
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    alias String
    Logical Library alias.
    databaseIds List<String>
    Sub-Database ID.
    dbType String
    Database type.
    envType 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.
    logicDatabaseId String
    The ID of the logical Library.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName String
    Logical library search name.
    alias string
    Logical Library alias.
    databaseIds string[]
    Sub-Database ID.
    dbType string
    Database type.
    envType 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.
    logicDatabaseId string
    The ID of the logical Library.
    ownerIdLists string[]
    The user ID list of the logical library Owner.
    ownerNameLists string[]
    The nickname list of the logical library Owner.
    schemaName string
    Logical Library name.
    searchName 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_id str
    The ID of the logical Library.
    owner_id_lists Sequence[str]
    The user ID list of the logical library Owner.
    owner_name_lists Sequence[str]
    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.
    databaseIds List<String>
    Sub-Database ID.
    dbType String
    Database type.
    envType 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.
    logicDatabaseId String
    The ID of the logical Library.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi