Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse
astra.getAstraDatabase
Explore with Pulumi AI
astra.Database
provides a datasource for Astra an Astra database. This can be used to select an existing database within your Astra Organization.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Astra = Pulumi.Astra;
return await Deployment.RunAsync(() =>
{
var db = Astra.GetAstraDatabase.Invoke(new()
{
DatabaseId = "8d356587-73b3-430a-9c0e-d780332e2afb",
});
});
package main
import (
"github.com/pulumi/pulumi-astra/sdk/go/astra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-astra/sdk/go/astra"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := astra.GetAstraDatabase(ctx, &GetAstraDatabaseArgs{
DatabaseId: "8d356587-73b3-430a-9c0e-d780332e2afb",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.astra.AstraFunctions;
import com.pulumi.astra.inputs.GetAstraDatabaseArgs;
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 db = AstraFunctions.getAstraDatabase(GetAstraDatabaseArgs.builder()
.databaseId("8d356587-73b3-430a-9c0e-d780332e2afb")
.build());
}
}
import pulumi
import pulumi_astra as astra
db = astra.get_astra_database(database_id="8d356587-73b3-430a-9c0e-d780332e2afb")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";
const db = pulumi.output(astra.getAstraDatabase({
databaseId: "8d356587-73b3-430a-9c0e-d780332e2afb",
}));
variables:
db:
Fn::Invoke:
Function: astra:getAstraDatabase
Arguments:
databaseId: 8d356587-73b3-430a-9c0e-d780332e2afb
Using getAstraDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAstraDatabase(args: GetAstraDatabaseArgs, opts?: InvokeOptions): Promise<GetAstraDatabaseResult>
function getAstraDatabaseOutput(args: GetAstraDatabaseOutputArgs, opts?: InvokeOptions): Output<GetAstraDatabaseResult>
def get_astra_database(database_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAstraDatabaseResult
def get_astra_database_output(database_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAstraDatabaseResult]
func GetAstraDatabase(ctx *Context, args *GetAstraDatabaseArgs, opts ...InvokeOption) (*GetAstraDatabaseResult, error)
func GetAstraDatabaseOutput(ctx *Context, args *GetAstraDatabaseOutputArgs, opts ...InvokeOption) GetAstraDatabaseResultOutput
> Note: This function is named GetAstraDatabase
in the Go SDK.
public static class GetAstraDatabase
{
public static Task<GetAstraDatabaseResult> InvokeAsync(GetAstraDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetAstraDatabaseResult> Invoke(GetAstraDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAstraDatabaseResult> getAstraDatabase(GetAstraDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: astra:index/getAstraDatabase:getAstraDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string - Astra Database ID (system generated)
- Database
Id string - Astra Database ID (system generated)
- database
Id String - Astra Database ID (system generated)
- database
Id string - Astra Database ID (system generated)
- database_
id str - Astra Database ID (system generated)
- database
Id String - Astra Database ID (system generated)
getAstraDatabase Result
The following output properties are available:
- Additional
Keyspaces List<string> - Additional keyspaces
- Cloud
Provider string - Cloud provider (AWS, GCP, AZURE)
- Cqlsh
Url string - URL for cqlsh web
- Data
Endpoint stringUrl - REST API URL
- Database
Id string - Astra Database ID (system generated)
- Datacenters Dictionary<string, string>
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- Grafana
Url string - URL for the grafana dashboard for this database
- Graphql
Url string - Graphql URL
- Id string
- The provider-assigned unique ID for this managed resource.
- Keyspace string
- Initial keyspace
- Name string
- Database name (user provided)
- Node
Count int - Node count (not relevant for serverless databases)
- Organization
Id string - Ordg id (system generated)
- Owner
Id string - Owner id (system generated)
- Regions List<string>
- Cloud provider region. Get list of supported regions from regions data-source
- Replication
Factor int - Replication Factor (not relevant for serverless databases)
- Status string
- Database status
- Total
Storage int - Storage Capacity (not relevant for serverelss databases)
- Additional
Keyspaces []string - Additional keyspaces
- Cloud
Provider string - Cloud provider (AWS, GCP, AZURE)
- Cqlsh
Url string - URL for cqlsh web
- Data
Endpoint stringUrl - REST API URL
- Database
Id string - Astra Database ID (system generated)
- Datacenters map[string]string
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- Grafana
Url string - URL for the grafana dashboard for this database
- Graphql
Url string - Graphql URL
- Id string
- The provider-assigned unique ID for this managed resource.
- Keyspace string
- Initial keyspace
- Name string
- Database name (user provided)
- Node
Count int - Node count (not relevant for serverless databases)
- Organization
Id string - Ordg id (system generated)
- Owner
Id string - Owner id (system generated)
- Regions []string
- Cloud provider region. Get list of supported regions from regions data-source
- Replication
Factor int - Replication Factor (not relevant for serverless databases)
- Status string
- Database status
- Total
Storage int - Storage Capacity (not relevant for serverelss databases)
- additional
Keyspaces List<String> - Additional keyspaces
- cloud
Provider String - Cloud provider (AWS, GCP, AZURE)
- cqlsh
Url String - URL for cqlsh web
- data
Endpoint StringUrl - REST API URL
- database
Id String - Astra Database ID (system generated)
- datacenters Map<String,String>
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- grafana
Url String - URL for the grafana dashboard for this database
- graphql
Url String - Graphql URL
- id String
- The provider-assigned unique ID for this managed resource.
- keyspace String
- Initial keyspace
- name String
- Database name (user provided)
- node
Count Integer - Node count (not relevant for serverless databases)
- organization
Id String - Ordg id (system generated)
- owner
Id String - Owner id (system generated)
- regions List<String>
- Cloud provider region. Get list of supported regions from regions data-source
- replication
Factor Integer - Replication Factor (not relevant for serverless databases)
- status String
- Database status
- total
Storage Integer - Storage Capacity (not relevant for serverelss databases)
- additional
Keyspaces string[] - Additional keyspaces
- cloud
Provider string - Cloud provider (AWS, GCP, AZURE)
- cqlsh
Url string - URL for cqlsh web
- data
Endpoint stringUrl - REST API URL
- database
Id string - Astra Database ID (system generated)
- datacenters {[key: string]: string}
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- grafana
Url string - URL for the grafana dashboard for this database
- graphql
Url string - Graphql URL
- id string
- The provider-assigned unique ID for this managed resource.
- keyspace string
- Initial keyspace
- name string
- Database name (user provided)
- node
Count number - Node count (not relevant for serverless databases)
- organization
Id string - Ordg id (system generated)
- owner
Id string - Owner id (system generated)
- regions string[]
- Cloud provider region. Get list of supported regions from regions data-source
- replication
Factor number - Replication Factor (not relevant for serverless databases)
- status string
- Database status
- total
Storage number - Storage Capacity (not relevant for serverelss databases)
- additional_
keyspaces Sequence[str] - Additional keyspaces
- cloud_
provider str - Cloud provider (AWS, GCP, AZURE)
- cqlsh_
url str - URL for cqlsh web
- data_
endpoint_ strurl - REST API URL
- database_
id str - Astra Database ID (system generated)
- datacenters Mapping[str, str]
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- grafana_
url str - URL for the grafana dashboard for this database
- graphql_
url str - Graphql URL
- id str
- The provider-assigned unique ID for this managed resource.
- keyspace str
- Initial keyspace
- name str
- Database name (user provided)
- node_
count int - Node count (not relevant for serverless databases)
- organization_
id str - Ordg id (system generated)
- owner_
id str - Owner id (system generated)
- regions Sequence[str]
- Cloud provider region. Get list of supported regions from regions data-source
- replication_
factor int - Replication Factor (not relevant for serverless databases)
- status str
- Database status
- total_
storage int - Storage Capacity (not relevant for serverelss databases)
- additional
Keyspaces List<String> - Additional keyspaces
- cloud
Provider String - Cloud provider (AWS, GCP, AZURE)
- cqlsh
Url String - URL for cqlsh web
- data
Endpoint StringUrl - REST API URL
- database
Id String - Astra Database ID (system generated)
- datacenters Map<String>
- Map of Datacenter IDs. The map key is "cloud_provider.region". Example: "GCP.us-east4".
- grafana
Url String - URL for the grafana dashboard for this database
- graphql
Url String - Graphql URL
- id String
- The provider-assigned unique ID for this managed resource.
- keyspace String
- Initial keyspace
- name String
- Database name (user provided)
- node
Count Number - Node count (not relevant for serverless databases)
- organization
Id String - Ordg id (system generated)
- owner
Id String - Owner id (system generated)
- regions List<String>
- Cloud provider region. Get list of supported regions from regions data-source
- replication
Factor Number - Replication Factor (not relevant for serverless databases)
- status String
- Database status
- total
Storage Number - Storage Capacity (not relevant for serverelss databases)
Package Details
- Repository
- astra pulumiverse/pulumi-astra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
astra
Terraform Provider.