get Project
Use this data source to access information about an existing Database Migration Project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.databasemigration.getProject({
name: "example-dbms-project",
resourceGroupName: "example-rg",
serviceName: "example-dbms",
});
export const name = example.then(example => example.name);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.databasemigration.get_project(name="example-dbms-project",
resource_group_name="example-rg",
service_name="example-dbms")
pulumi.export("name", example.name)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DatabaseMigration.GetProject.Invoke(new()
{
Name = "example-dbms-project",
ResourceGroupName = "example-rg",
ServiceName = "example-dbms",
});
return new Dictionary<string, object?>
{
["name"] = example.Apply(getProjectResult => getProjectResult.Name),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databasemigration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := databasemigration.LookupProject(ctx, &databasemigration.LookupProjectArgs{
Name: "example-dbms-project",
ResourceGroupName: "example-rg",
ServiceName: "example-dbms",
}, nil)
if err != nil {
return err
}
ctx.Export("name", example.Name)
return nil
})
}
Content copied to clipboard
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.name());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:databasemigration:getProject
arguments:
name: example-dbms-project
resourceGroupName: example-rg
serviceName: example-dbms
outputs:
name: ${example.name}
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.DataMigration
: 2021-06-30
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.
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.
See also
Return
A collection of values returned by getProject.
Parameters
argument
Builder for com.pulumi.azure.databasemigration.kotlin.inputs.GetProjectPlainArgs.