getProject

Use this data source to access information about an existing Database Migration Project.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.databasemigration.DatabasemigrationFunctions;
import com.pulumi.azure.databasemigration.inputs.GetProjectArgs;
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 example = DatabasemigrationFunctions.getProject(GetProjectArgs.builder()
.name("example-dbms-project")
.resourceGroupName("example-rg")
.serviceName("example-dbms")
.build());
ctx.export("name", example.applyValue(getProjectResult -> getProjectResult.name()));
}
}

Return

A collection of values returned by getProject.

Parameters

argument

A collection of arguments for invoking getProject.


suspend fun getProject(name: String, resourceGroupName: String, serviceName: String): GetProjectResult

Return

A collection of values returned by getProject.

See also

Parameters

name

Name of the database migration project.

resourceGroupName

Name of the resource group where resource belongs to.

serviceName

Name of the database migration service where resource belongs to.


suspend fun getProject(argument: suspend GetProjectPlainArgsBuilder.() -> Unit): GetProjectResult

Return

A collection of values returned by getProject.

See also

Parameters

argument

Builder for com.pulumi.azure.databasemigration.kotlin.inputs.GetProjectPlainArgs.