Creates a database from a share.

POST {{baseUrl}}/api/v2/databases/{{name}}:from_share?createMode=errorIfExists&share=<string>

Creates a database from a given share.

Request Params

KeyDatatypeRequiredDescription
createModestringQuery parameter allowing support for different modes of resource creation. Possible values include:
  • errorIfExists: Throws an error if you try to create a resource that already exists.
  • orReplace: Automatically replaces the existing resource with the current one.
  • ifNotExists: Creates a new resource when an alter is requested for a non-existent resource. | | share | string | | ID of the share from which to create the database, in the form "<provider_account>.<share_name>". |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cstring\u003e&quot;}