Alias operation

The alias can be a short string to facilitate identification and access of the corresponding space.

Usually the alias will replace the name of the Space to facilitate business switching and other scenarios.

http://${VEARCH_URL} represents the vearch service, $db_name is the name of the created database, $space_name is the name of the created space

Create space alias

  1. curl -XPOST http://${VEARCH_URL}/alias/$alias_name/dbs/$db_name/spaces/$space_name

Update space alias

  1. curl -XPUT http://${VEARCH_URL}/alias/$alias_name/dbs/$db_name/spaces/$space_name

Get alias details

  1. curl -XGET http://${VEARCH_URL}/alias/$alias_name

Delete space alias

  1. curl -XDELETE http://${VEARCH_URL}/alias/$alias_name