indexes
Creates, updates, deletes, gets or lists a indexes
resource.
Overview
Name | indexes |
Type | Resource |
Id | digitalocean.databases.indexes |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
databases_list_opeasearch_indexes | SELECT | database_cluster_uuid | To list all of a OpenSearch cluster's indexes, send a GET request to /v2/databases/$DATABASE_ID/indexes . The result will be a JSON object with a indexes key. |
databases_delete_opensearch_index | DELETE | database_cluster_uuid, index_name | To delete a single index within OpenSearch cluster, send a DELETE request to /v2/databases/$DATABASE_ID/indexes/$INDEX_NAME . A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. |
SELECT
examples
To list all of a OpenSearch cluster's indexes, send a GET request to /v2/databases/$DATABASE_ID/indexes
. The result will be a JSON object with a indexes
key.
SELECT
column_anon
FROM digitalocean.databases.indexes
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}';
DELETE
example
Deletes the specified indexes
resource.
/*+ delete */
DELETE FROM digitalocean.databases.indexes
WHERE database_cluster_uuid = '{{ database_cluster_uuid }}'
AND index_name = '{{ index_name }}';