GetProject

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.DatabaseMigration.GetProject.InvokeAsync(new Azure.DatabaseMigration.GetProjectArgs
        {
            Name = "example-dbms-project",
            ResourceGroupName = "example-rg",
            ServiceName = "example-dbms",
        }));
        this.Name = example.Apply(example => example.Name);
    }

    [Output("name")]
    public Output<string> Name { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/databasemigration"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
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)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.databasemigration.getProject({
    name: "example-dbms-project",
    resourceGroupName: "example-rg",
    serviceName: "example-dbms",
}, { async: true }));

export const name = example.name;

Using GetProject

function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function  get_project(name=None, resource_group_name=None, service_name=None, opts=None)
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)

Note: This function is named LookupProject in the Go SDK.

public static class GetProject {
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Name of the database migration project.

ResourceGroupName string

Name of the resource group where resource belongs to.

ServiceName string

Name of the database migration service where resource belongs to.

Name string

Name of the database migration project.

ResourceGroupName string

Name of the resource group where resource belongs to.

ServiceName string

Name of the database migration service where resource belongs to.

name string

Name of the database migration project.

resourceGroupName string

Name of the resource group where resource belongs to.

serviceName string

Name of the database migration service where resource belongs to.

name str

Name of the database migration project.

resource_group_name str

Name of the resource group where resource belongs to.

service_name str

Name of the database migration service where resource belongs to.

GetProject Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Location string

Azure location where the resource exists.

Name string
ResourceGroupName string
ServiceName string
SourcePlatform string

The platform type of the migration source.

Tags Dictionary<string, string>

A mapping of tags to assigned to the resource.

TargetPlatform string

The platform type of the migration target.

Id string

The provider-assigned unique ID for this managed resource.

Location string

Azure location where the resource exists.

Name string
ResourceGroupName string
ServiceName string
SourcePlatform string

The platform type of the migration source.

Tags map[string]string

A mapping of tags to assigned to the resource.

TargetPlatform string

The platform type of the migration target.

id string

The provider-assigned unique ID for this managed resource.

location string

Azure location where the resource exists.

name string
resourceGroupName string
serviceName string
sourcePlatform string

The platform type of the migration source.

tags {[key: string]: string}

A mapping of tags to assigned to the resource.

targetPlatform string

The platform type of the migration target.

id str

The provider-assigned unique ID for this managed resource.

location str

Azure location where the resource exists.

name str
resource_group_name str
service_name str
source_platform str

The platform type of the migration source.

tags Dict[str, str]

A mapping of tags to assigned to the resource.

target_platform str

The platform type of the migration target.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.