get Sql Database
Use this data source to access information about an existing CosmosDB SQL Database.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cosmosdb.CosmosdbFunctions;
import com.pulumi.azure.cosmosdb.inputs.GetSqlDatabaseArgs;
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 = CosmosdbFunctions.getSqlDatabase(GetSqlDatabaseArgs.builder()
.accountName("tfex-cosmosdb-sql-database-account-name")
.name("tfex-cosmosdb-sql-database")
.resourceGroupName("tfex-cosmosdb-sql-database-rg")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getSqlDatabase.
Parameters
argument
A collection of arguments for invoking getSqlDatabase.
suspend fun getSqlDatabase(accountName: String, name: String, resourceGroupName: String): GetSqlDatabaseResult
Return
A collection of values returned by getSqlDatabase.
See also
Parameters
account Name
The name of the Cosmos DB SQL Database to create the table within.
name
Specifies the name of the Cosmos DB SQL Database.
resource Group Name
The name of the resource group in which the Cosmos DB SQL Database is created.
suspend fun getSqlDatabase(argument: suspend GetSqlDatabasePlainArgsBuilder.() -> Unit): GetSqlDatabaseResult
Return
A collection of values returned by getSqlDatabase.
See also
Parameters
argument
Builder for com.pulumi.azure.cosmosdb.kotlin.inputs.GetSqlDatabasePlainArgs.