get Project
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()));
}
}
Content copied to clipboard
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.
resource Group Name
Name of the resource group where resource belongs to.
service Name
Name of the database migration service where resource belongs to.
Return
A collection of values returned by getProject.
See also
Parameters
argument
Builder for com.pulumi.azure.databasemigration.kotlin.inputs.GetProjectPlainArgs.