get Service
Use this data source to access information about an existing Database Migration Service.
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.GetServiceArgs;
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.getService(GetServiceArgs.builder()
.name("example-dms")
.resourceGroupName("example-rg")
.build());
ctx.export("azurermDmsId", example.applyValue(getServiceResult -> getServiceResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getService.
Parameters
argument
A collection of arguments for invoking getService.
Return
A collection of values returned by getService.
See also
Parameters
name
Specify the name of the database migration service.
resource Group Name
Specifies the Name of the Resource Group within which the database migration service exists
Return
A collection of values returned by getService.
See also
Parameters
argument
Builder for com.pulumi.azure.databasemigration.kotlin.inputs.GetServicePlainArgs.