get Elastic Pool
Use this data source to access information about an existing SQL elastic pool.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mssql.MssqlFunctions;
import com.pulumi.azure.mssql.inputs.GetElasticPoolArgs;
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 = MssqlFunctions.getElasticPool(GetElasticPoolArgs.builder()
.name("mssqlelasticpoolname")
.resourceGroupName("example-resources")
.serverName("example-sql-server")
.build());
ctx.export("elasticpoolId", example.applyValue(getElasticPoolResult -> getElasticPoolResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getElasticPool.
Parameters
argument
A collection of arguments for invoking getElasticPool.
suspend fun getElasticPool(name: String, resourceGroupName: String, serverName: String): GetElasticPoolResult
Return
A collection of values returned by getElasticPool.
See also
Parameters
name
The name of the elastic pool.
resource Group Name
The name of the resource group which contains the elastic pool.
server Name
The name of the SQL Server which contains the elastic pool.
suspend fun getElasticPool(argument: suspend GetElasticPoolPlainArgsBuilder.() -> Unit): GetElasticPoolResult
Return
A collection of values returned by getElasticPool.
See also
Parameters
argument
Builder for com.pulumi.azure.mssql.kotlin.inputs.GetElasticPoolPlainArgs.