Skip to content

IndexResource

IndexResource · Type

indexResource.configure(pod_type: string, replicas: int) → Result

Change this index’s pod type and number of replicas.

indexResource.createPod(dimension: int, metric?: string, environment?: string, replicas?: int, pod_type?: string, pods?: int, shards?: int, metadataConfig?: array, sourceCollection?: string) → Result

Create a pod-based index with this name.

indexResource.createServerless(dimension: int, metric?: string, cloud?: string, region?: string) → Result

Create a serverless index with this name.

indexResource.delete() → Result

Delete this index.

indexResource.describe() → Result

Describe this index.

indexResource.list() → Result

List the indexes.