dgraph live
.
gRPC endpoint
of your Dgraph Cloud backend and a valid
Client API key
.
An administrator gets those information with the following steps:
Admin
section of the Dgraph Cloud console, go to Settings
and
copy the value of the gRPC Endpoint
from the General
tab.
API Keys
tab to generate an Client API Key
.
GraphQL endpoint
. The gRPC
endpoint looks like <domain>:443
-f, --files
option is a directory, then all files
ending in .rdf, .rdf.gz, .json, and .json.gz will be loaded. Be sure that your
schema file has another extension (.txt or .schema for example).Administrator
you can export data from a Dgraph Cloud shared instance or
dedicated instance. On a dedicated instance with multi-tenancy feature enabled
you can export data across the cluster, or a specific namespace depending on the
type of administrative privileges you have.
Admin
section of the Dgraph Cloud console, go to Settings
.Exports
tab, click Create Export
.New export
dialog, select the format you want to export.Create
.Overview
in the
Dgraph Cloud console. Replace /graphql
with /admin/slash
in the GraphQL
endpoint to get the <ADMIN_ENDPOINT>
.
admin
API requests by adding the <APIKEY>
as the
Dg-Auth
header to every HTTP request.
<ADMIN_ENDPOINT>
.
<FORMAT>
using this mutation:
<EXPORT_ID>
and the <TASK_ID>
.
curl -O <SIGNED_URL>
to download the
files to the current directory. accessJWT
for the specific user in the X-Dgraph-AccessToken
header.accessJWT
token for the Guardian of Galaxy user. Send the
following GraphQL mutation to the /admin
endpoint:
accessJWT
token you need to pass it in
X-Dgraph-AccessToken
Header and only then you can send the following
GraphQL mutation to /admin/slash
endpoint:
signedUrls
from where you can download your export files:
-1
to the namespace you want to export. It is
important that you get the accessJWT
token for the Guardian of Galaxy user
and pass it in the X-Dgraph-AccessToken
header.
For example, if you want to export the namespace 0x123
your GraphQL request
sent to the /admin/slash
endpoint would look like:
accessJWT
token for the Guardian of Namespace user and pass it
in the X-Dgraph-AccessToken
header.
The GraphQL request sent to the /admin/slash
endpoint would be: