younifyd
Menu

Create an index from a backup

Create an index from a backup

POST/backups/{backup_id}/create-index

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Create an index from a backup action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{createAnIndexFromABackup.response.data}}.

Request

Path parameters

backup_idstringrequired

The ID of the backup to create an index from.

Request body

Enter the body as JSON in the step's Body field.

namestringrequired

The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

read_capacityoneOf

By default the index will be created with read capacity mode `OnDemand`, for managed and BYOC indexes alike. If you prefer to allocate dedicated read nodes for your workload, you must specify mode `Dedicated` and additional configurations for `node_type` and `scaling`.

deploymentoneOf

Where to create the index. Defaults to the cloud and region, or the BYOC environment, the backup was taken in. - `managed`: A serverless index in the given cloud and region. The cloud must match the backup's cloud. - `byoc`: A BYOC index. The environment must be the one the backup was taken in.

json
{
  "name": "example-index",
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  },
  "deletion_protection": "disabled",
  "read_capacity": null,
  "deployment": null
}

Response

Returns 202 with an object. Read it in later steps with {{createAnIndexFromABackup.response.data.<field>}}.

restore_job_idstring

The ID of the restore job that was created.

index_idstring

The ID of the index that was created from the backup.

json
{
  "restore_job_id": "670e8400-e29b-41d4-a716-446655440000",
  "index_id": "123e4567-e89b-12d3-a456-426614174000"
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.