1. Packages
  2. Qdrant-Cloud Provider
  3. API Docs
  4. AccountsAuthKey
qdrant-cloud 1.3.1 published on Friday, Mar 7, 2025 by qdrant

qdrant-cloud.AccountsAuthKey

Explore with Pulumi AI

Account AuthKey Resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as qdrant_cloud from "@pulumi/qdrant-cloud";

// Create a cluster (for the sake of having an ID, see below)
const example = new qdrant_cloud.AccountsCluster("example", {
    cloudProvider: "gcp",
    cloudRegion: "us-east4",
    configuration: {
        numberOfNodes: 1,
        nodeConfiguration: {
            packageId: "39b48a76-2a60-4ee0-9266-6d1e0f91ea14",
        },
    },
});
// Create an Auth Key, which refers to the cluster provided above
const example_key = new qdrant_cloud.AccountsAuthKey("example-key", {clusterIds: [example.id]});
export const token = example_key.token;
Copy
import pulumi
import pulumi_qdrant_cloud as qdrant_cloud

# Create a cluster (for the sake of having an ID, see below)
example = qdrant_cloud.AccountsCluster("example",
    cloud_provider="gcp",
    cloud_region="us-east4",
    configuration={
        "number_of_nodes": 1,
        "node_configuration": {
            "package_id": "39b48a76-2a60-4ee0-9266-6d1e0f91ea14",
        },
    })
# Create an Auth Key, which refers to the cluster provided above
example_key = qdrant_cloud.AccountsAuthKey("example-key", cluster_ids=[example.id])
pulumi.export("token", example_key.token)
Copy
package main

import (
	qdrantcloud "github.com/pulumi/pulumi-terraform-provider/sdks/go/qdrant-cloud/qdrant-cloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create a cluster (for the sake of having an ID, see below)
		example, err := qdrantcloud.NewAccountsCluster(ctx, "example", &qdrantcloud.AccountsClusterArgs{
			CloudProvider: pulumi.String("gcp"),
			CloudRegion:   pulumi.String("us-east4"),
			Configuration: &qdrantcloud.AccountsClusterConfigurationArgs{
				NumberOfNodes: pulumi.Float64(1),
				NodeConfiguration: &qdrantcloud.AccountsClusterConfigurationNodeConfigurationArgs{
					PackageId: pulumi.String("39b48a76-2a60-4ee0-9266-6d1e0f91ea14"),
				},
			},
		})
		if err != nil {
			return err
		}
		// Create an Auth Key, which refers to the cluster provided above
		_, err = qdrantcloud.NewAccountsAuthKey(ctx, "example-key", &qdrantcloud.AccountsAuthKeyArgs{
			ClusterIds: pulumi.StringArray{
				example.ID(),
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("token", example_key.Token)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using QdrantCloud = Pulumi.QdrantCloud;

return await Deployment.RunAsync(() => 
{
    // Create a cluster (for the sake of having an ID, see below)
    var example = new QdrantCloud.AccountsCluster("example", new()
    {
        CloudProvider = "gcp",
        CloudRegion = "us-east4",
        Configuration = new QdrantCloud.Inputs.AccountsClusterConfigurationArgs
        {
            NumberOfNodes = 1,
            NodeConfiguration = new QdrantCloud.Inputs.AccountsClusterConfigurationNodeConfigurationArgs
            {
                PackageId = "39b48a76-2a60-4ee0-9266-6d1e0f91ea14",
            },
        },
    });

    // Create an Auth Key, which refers to the cluster provided above
    var example_key = new QdrantCloud.AccountsAuthKey("example-key", new()
    {
        ClusterIds = new[]
        {
            example.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["token"] = example_key.Token,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qdrantcloud.AccountsCluster;
import com.pulumi.qdrantcloud.AccountsClusterArgs;
import com.pulumi.qdrantcloud.inputs.AccountsClusterConfigurationArgs;
import com.pulumi.qdrantcloud.inputs.AccountsClusterConfigurationNodeConfigurationArgs;
import com.pulumi.qdrantcloud.AccountsAuthKey;
import com.pulumi.qdrantcloud.AccountsAuthKeyArgs;
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) {
        // Create a cluster (for the sake of having an ID, see below)
        var example = new AccountsCluster("example", AccountsClusterArgs.builder()
            .cloudProvider("gcp")
            .cloudRegion("us-east4")
            .configuration(AccountsClusterConfigurationArgs.builder()
                .numberOfNodes(1)
                .nodeConfiguration(AccountsClusterConfigurationNodeConfigurationArgs.builder()
                    .packageId("39b48a76-2a60-4ee0-9266-6d1e0f91ea14")
                    .build())
                .build())
            .build());

        // Create an Auth Key, which refers to the cluster provided above
        var example_key = new AccountsAuthKey("example-key", AccountsAuthKeyArgs.builder()
            .clusterIds(example.id())
            .build());

        ctx.export("token", example_key.token());
    }
}
Copy
resources:
  # Create a cluster (for the sake of having an ID, see below)
  example:
    type: qdrant-cloud:AccountsCluster
    properties:
      cloudProvider: gcp
      cloudRegion: us-east4
      configuration:
        numberOfNodes: 1
        nodeConfiguration:
          packageId: 39b48a76-2a60-4ee0-9266-6d1e0f91ea14
  # Create an Auth Key, which refers to the cluster provided above
  example-key:
    type: qdrant-cloud:AccountsAuthKey
    properties:
      clusterIds:
        - ${example.id}
outputs:
  # Output the token (which can be used to access the database cluster)
  token: ${["example-key"].token}
Copy

Create AccountsAuthKey Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AccountsAuthKey(name: string, args: AccountsAuthKeyArgs, opts?: CustomResourceOptions);
@overload
def AccountsAuthKey(resource_name: str,
                    args: AccountsAuthKeyArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def AccountsAuthKey(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    cluster_ids: Optional[Sequence[str]] = None)
func NewAccountsAuthKey(ctx *Context, name string, args AccountsAuthKeyArgs, opts ...ResourceOption) (*AccountsAuthKey, error)
public AccountsAuthKey(string name, AccountsAuthKeyArgs args, CustomResourceOptions? opts = null)
public AccountsAuthKey(String name, AccountsAuthKeyArgs args)
public AccountsAuthKey(String name, AccountsAuthKeyArgs args, CustomResourceOptions options)
type: qdrant-cloud:AccountsAuthKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccountsAuthKeyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccountsAuthKeyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccountsAuthKeyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccountsAuthKeyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountsAuthKeyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var accountsAuthKeyResource = new QdrantCloud.AccountsAuthKey("accountsAuthKeyResource", new()
{
    ClusterIds = new[]
    {
        "string",
    },
});
Copy
example, err := qdrantcloud.NewAccountsAuthKey(ctx, "accountsAuthKeyResource", &qdrantcloud.AccountsAuthKeyArgs{
ClusterIds: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var accountsAuthKeyResource = new AccountsAuthKey("accountsAuthKeyResource", AccountsAuthKeyArgs.builder()
    .clusterIds("string")
    .build());
Copy
accounts_auth_key_resource = qdrant_cloud.AccountsAuthKey("accountsAuthKeyResource", cluster_ids=["string"])
Copy
const accountsAuthKeyResource = new qdrant_cloud.AccountsAuthKey("accountsAuthKeyResource", {clusterIds: ["string"]});
Copy
type: qdrant-cloud:AccountsAuthKey
properties:
    clusterIds:
        - string
Copy

AccountsAuthKey Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AccountsAuthKey resource accepts the following input properties:

ClusterIds This property is required. List<string>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
ClusterIds This property is required. []string
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
clusterIds This property is required. List<String>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
clusterIds This property is required. string[]
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
cluster_ids This property is required. Sequence[str]
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
clusterIds This property is required. List<String>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field

Outputs

All input properties are implicitly available as output properties. Additionally, the AccountsAuthKey resource produces the following output properties:

CreatedAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
Id string
The provider-assigned unique ID for this managed resource.
Prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
Token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
CreatedAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
Id string
The provider-assigned unique ID for this managed resource.
Prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
Token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
createdAt String
Auth Keys Keys Schema Timestamp when the Auth Key is created field
id String
The provider-assigned unique ID for this managed resource.
prefix String
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token String
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
createdAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
id string
The provider-assigned unique ID for this managed resource.
prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
created_at str
Auth Keys Keys Schema Timestamp when the Auth Key is created field
id str
The provider-assigned unique ID for this managed resource.
prefix str
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token str
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
createdAt String
Auth Keys Keys Schema Timestamp when the Auth Key is created field
id String
The provider-assigned unique ID for this managed resource.
prefix String
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token String
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field

Look up Existing AccountsAuthKey Resource

Get an existing AccountsAuthKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountsAuthKeyState, opts?: CustomResourceOptions): AccountsAuthKey
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_ids: Optional[Sequence[str]] = None,
        created_at: Optional[str] = None,
        prefix: Optional[str] = None,
        token: Optional[str] = None) -> AccountsAuthKey
func GetAccountsAuthKey(ctx *Context, name string, id IDInput, state *AccountsAuthKeyState, opts ...ResourceOption) (*AccountsAuthKey, error)
public static AccountsAuthKey Get(string name, Input<string> id, AccountsAuthKeyState? state, CustomResourceOptions? opts = null)
public static AccountsAuthKey get(String name, Output<String> id, AccountsAuthKeyState state, CustomResourceOptions options)
resources:  _:    type: qdrant-cloud:AccountsAuthKey    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ClusterIds List<string>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
CreatedAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
Prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
Token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
ClusterIds []string
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
CreatedAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
Prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
Token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
clusterIds List<String>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
createdAt String
Auth Keys Keys Schema Timestamp when the Auth Key is created field
prefix String
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token String
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
clusterIds string[]
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
createdAt string
Auth Keys Keys Schema Timestamp when the Auth Key is created field
prefix string
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token string
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
cluster_ids Sequence[str]
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
created_at str
Auth Keys Keys Schema Timestamp when the Auth Key is created field
prefix str
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token str
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field
clusterIds List<String>
Auth Keys Keys Schema Cluster Identifiers for which this Auth Key is attached field
createdAt String
Auth Keys Keys Schema Timestamp when the Auth Key is created field
prefix String
Auth Keys Keys Schema Prefix of the Auth Key (the first few bytes from the token) field
token String
Auth Keys Keys Schema Secret token for this Auth Key (handle with care!) field

Package Details

Repository
qdrant-cloud qdrant/terraform-provider-qdrant-cloud
License
Notes
This Pulumi package is based on the qdrant-cloud Terraform Provider.