Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi
Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi
Provides information on a DigitalOcean vector database resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getVectorDatabase({
name: "example-vector-db",
});
export const vectorDbHttpEndpoint = example.then(example => example.endpoints?.[0]?.http);
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_vector_database(name="example-vector-db")
pulumi.export("vectorDbHttpEndpoint", example.endpoints[0].http)
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := digitalocean.GetVectorDatabase(ctx, &digitalocean.LookupVectorDatabaseArgs{
Name: pulumi.StringRef("example-vector-db"),
}, nil)
if err != nil {
return err
}
ctx.Export("vectorDbHttpEndpoint", example.Endpoints[0].Http)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var example = DigitalOcean.GetVectorDatabase.Invoke(new()
{
Name = "example-vector-db",
});
return new Dictionary<string, object?>
{
["vectorDbHttpEndpoint"] = example.Apply(getVectorDatabaseResult => getVectorDatabaseResult.Endpoints[0]?.Http),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetVectorDatabaseArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 = DigitaloceanFunctions.getVectorDatabase(GetVectorDatabaseArgs.builder()
.name("example-vector-db")
.build());
ctx.export("vectorDbHttpEndpoint", example.endpoints()[0].http());
}
}
variables:
example:
fn::invoke:
function: digitalocean:getVectorDatabase
arguments:
name: example-vector-db
outputs:
vectorDbHttpEndpoint: ${example.endpoints[0].http}
pulumi {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
data "digitalocean_getvectordatabase" "example" {
name = "example-vector-db"
}
output "vectorDbHttpEndpoint" {
value = data.digitalocean_getvectordatabase.example.endpoints[0].http
}
A vector database may also be looked up by its id:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const example = digitalocean.getVectorDatabase({
id: "245bcfd0-7f31-4ce6-a2bc-475a116cca97",
});
import pulumi
import pulumi_digitalocean as digitalocean
example = digitalocean.get_vector_database(id="245bcfd0-7f31-4ce6-a2bc-475a116cca97")
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := digitalocean.GetVectorDatabase(ctx, &digitalocean.LookupVectorDatabaseArgs{
Id: pulumi.StringRef("245bcfd0-7f31-4ce6-a2bc-475a116cca97"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var example = DigitalOcean.GetVectorDatabase.Invoke(new()
{
Id = "245bcfd0-7f31-4ce6-a2bc-475a116cca97",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetVectorDatabaseArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 = DigitaloceanFunctions.getVectorDatabase(GetVectorDatabaseArgs.builder()
.id("245bcfd0-7f31-4ce6-a2bc-475a116cca97")
.build());
}
}
variables:
example:
fn::invoke:
function: digitalocean:getVectorDatabase
arguments:
id: 245bcfd0-7f31-4ce6-a2bc-475a116cca97
pulumi {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
data "digitalocean_getvectordatabase" "example" {
id = "245bcfd0-7f31-4ce6-a2bc-475a116cca97"
}
Using getVectorDatabase
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 getVectorDatabase(args: GetVectorDatabaseArgs, opts?: InvokeOptions): Promise<GetVectorDatabaseResult>
function getVectorDatabaseOutput(args: GetVectorDatabaseOutputArgs, opts?: InvokeOptions): Output<GetVectorDatabaseResult>def get_vector_database(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVectorDatabaseResult
def get_vector_database_output(id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVectorDatabaseResult]func LookupVectorDatabase(ctx *Context, args *LookupVectorDatabaseArgs, opts ...InvokeOption) (*LookupVectorDatabaseResult, error)
func LookupVectorDatabaseOutput(ctx *Context, args *LookupVectorDatabaseOutputArgs, opts ...InvokeOption) LookupVectorDatabaseResultOutput> Note: This function is named LookupVectorDatabase in the Go SDK.
public static class GetVectorDatabase
{
public static Task<GetVectorDatabaseResult> InvokeAsync(GetVectorDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetVectorDatabaseResult> Invoke(GetVectorDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVectorDatabaseResult> getVectorDatabase(GetVectorDatabaseArgs args, InvokeOptions options)
public static Output<GetVectorDatabaseResult> getVectorDatabase(GetVectorDatabaseArgs args, InvokeOptions options)
fn::invoke:
function: digitalocean:index/getVectorDatabase:getVectorDatabase
arguments:
# arguments dictionarydata "digitalocean_getvectordatabase" "name" {
# arguments
}The following arguments are supported:
getVectorDatabase Result
The following output properties are available:
- Configs
List<Pulumi.
Digital Ocean. Outputs. Get Vector Database Config> - Advanced configuration for the vector database. The structure is documented below.
- Created
At string - The date and time when the vector database was created.
- Endpoints
List<Pulumi.
Digital Ocean. Outputs. Get Vector Database Endpoint> - The connection endpoints for the vector database. The structure is documented below.
- Id string
- The ID of the vector database.
- Name string
- The name of the vector database.
- Owner
Uuid string - The UUID of the account that owns the vector database.
- Region string
- The slug identifier for the region where the vector database is located.
- Size string
- The slug identifier representing the size of the vector database.
- Status string
- The current status of the vector database (ex.
active). - List<string>
- A list of tag names applied to the vector database.
- Updated
At string - The date and time when the vector database was last updated.
- Configs
[]Get
Vector Database Config - Advanced configuration for the vector database. The structure is documented below.
- Created
At string - The date and time when the vector database was created.
- Endpoints
[]Get
Vector Database Endpoint - The connection endpoints for the vector database. The structure is documented below.
- Id string
- The ID of the vector database.
- Name string
- The name of the vector database.
- Owner
Uuid string - The UUID of the account that owns the vector database.
- Region string
- The slug identifier for the region where the vector database is located.
- Size string
- The slug identifier representing the size of the vector database.
- Status string
- The current status of the vector database (ex.
active). - []string
- A list of tag names applied to the vector database.
- Updated
At string - The date and time when the vector database was last updated.
- configs list(object)
- Advanced configuration for the vector database. The structure is documented below.
- created_
at string - The date and time when the vector database was created.
- endpoints list(object)
- The connection endpoints for the vector database. The structure is documented below.
- id string
- The ID of the vector database.
- name string
- The name of the vector database.
- owner_
uuid string - The UUID of the account that owns the vector database.
- region string
- The slug identifier for the region where the vector database is located.
- size string
- The slug identifier representing the size of the vector database.
- status string
- The current status of the vector database (ex.
active). - list(string)
- A list of tag names applied to the vector database.
- updated_
at string - The date and time when the vector database was last updated.
- configs
List<Get
Vector Database Config> - Advanced configuration for the vector database. The structure is documented below.
- created
At String - The date and time when the vector database was created.
- endpoints
List<Get
Vector Database Endpoint> - The connection endpoints for the vector database. The structure is documented below.
- id String
- The ID of the vector database.
- name String
- The name of the vector database.
- owner
Uuid String - The UUID of the account that owns the vector database.
- region String
- The slug identifier for the region where the vector database is located.
- size String
- The slug identifier representing the size of the vector database.
- status String
- The current status of the vector database (ex.
active). - List<String>
- A list of tag names applied to the vector database.
- updated
At String - The date and time when the vector database was last updated.
- configs
Get
Vector Database Config[] - Advanced configuration for the vector database. The structure is documented below.
- created
At string - The date and time when the vector database was created.
- endpoints
Get
Vector Database Endpoint[] - The connection endpoints for the vector database. The structure is documented below.
- id string
- The ID of the vector database.
- name string
- The name of the vector database.
- owner
Uuid string - The UUID of the account that owns the vector database.
- region string
- The slug identifier for the region where the vector database is located.
- size string
- The slug identifier representing the size of the vector database.
- status string
- The current status of the vector database (ex.
active). - string[]
- A list of tag names applied to the vector database.
- updated
At string - The date and time when the vector database was last updated.
- configs
Sequence[Get
Vector Database Config] - Advanced configuration for the vector database. The structure is documented below.
- created_
at str - The date and time when the vector database was created.
- endpoints
Sequence[Get
Vector Database Endpoint] - The connection endpoints for the vector database. The structure is documented below.
- id str
- The ID of the vector database.
- name str
- The name of the vector database.
- owner_
uuid str - The UUID of the account that owns the vector database.
- region str
- The slug identifier for the region where the vector database is located.
- size str
- The slug identifier representing the size of the vector database.
- status str
- The current status of the vector database (ex.
active). - Sequence[str]
- A list of tag names applied to the vector database.
- updated_
at str - The date and time when the vector database was last updated.
- configs List<Property Map>
- Advanced configuration for the vector database. The structure is documented below.
- created
At String - The date and time when the vector database was created.
- endpoints List<Property Map>
- The connection endpoints for the vector database. The structure is documented below.
- id String
- The ID of the vector database.
- name String
- The name of the vector database.
- owner
Uuid String - The UUID of the account that owns the vector database.
- region String
- The slug identifier for the region where the vector database is located.
- size String
- The slug identifier representing the size of the vector database.
- status String
- The current status of the vector database (ex.
active). - List<String>
- A list of tag names applied to the vector database.
- updated
At String - The date and time when the vector database was last updated.
Supporting Types
GetVectorDatabaseConfig
- Default
Quantization string - The default vector quantization method applied to new collections.
- Enable
Auto boolSchema - Whether Weaviate's auto-schema feature is enabled.
- Weaviate
Version string - The Weaviate engine version used by the vector database.
- Default
Quantization string - The default vector quantization method applied to new collections.
- Enable
Auto boolSchema - Whether Weaviate's auto-schema feature is enabled.
- Weaviate
Version string - The Weaviate engine version used by the vector database.
- default_
quantization string - The default vector quantization method applied to new collections.
- enable_
auto_ boolschema - Whether Weaviate's auto-schema feature is enabled.
- weaviate_
version string - The Weaviate engine version used by the vector database.
- default
Quantization String - The default vector quantization method applied to new collections.
- enable
Auto BooleanSchema - Whether Weaviate's auto-schema feature is enabled.
- weaviate
Version String - The Weaviate engine version used by the vector database.
- default
Quantization string - The default vector quantization method applied to new collections.
- enable
Auto booleanSchema - Whether Weaviate's auto-schema feature is enabled.
- weaviate
Version string - The Weaviate engine version used by the vector database.
- default_
quantization str - The default vector quantization method applied to new collections.
- enable_
auto_ boolschema - Whether Weaviate's auto-schema feature is enabled.
- weaviate_
version str - The Weaviate engine version used by the vector database.
- default
Quantization String - The default vector quantization method applied to new collections.
- enable
Auto BooleanSchema - Whether Weaviate's auto-schema feature is enabled.
- weaviate
Version String - The Weaviate engine version used by the vector database.
GetVectorDatabaseEndpoint
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.
Viewing docs for DigitalOcean v4.73.0
published on Friday, Jul 3, 2026 by Pulumi
published on Friday, Jul 3, 2026 by Pulumi