-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# vscode | ||
*.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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://master_server represents the master service, $db_name is the name of the created database, $space_name is the name of the created space | ||
|
||
Create space alias | ||
-------------------------------- | ||
:: | ||
curl -XPOST http://master_server/alias/$alias_name/dbs/$db_name/spaces/$space_name | ||
|
||
|
||
Update space alias | ||
-------------------------------- | ||
:: | ||
curl -XPUT http://master_server/alias/$alias_name/dbs/$db_name/spaces/$space_name | ||
|
||
|
||
Get alias details | ||
-------------------------------- | ||
:: | ||
curl -XGET http://master_server/alias/$alias_name | ||
|
||
Delete space alias | ||
-------------------------------- | ||
:: | ||
curl -XDELETE http://master_server/alias/$alias_name |