Backend
We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.
List backends
List backends that you have access to.
This API requires authentication, please see Authentication for instructions on issuing and passing a JWT token to the API.
Cloud endpoint
API command
Example
<cerebro-jwt>
is the JWT returned from Authentication.<lambda-token>
is a base64 string that’s non-empty if you have saved Lambdas on your backend
/admin
or /admin/slash
requests to
https://<deployment.url>
, you must use the <deployment-jwt>
in the X-Auth-Token
header. The Cerebro JWT is only used in the
Authorization
header for requests to https://cerebro.cloud.dgraph.io/graphql
. Deploy backend
Launch a new backend.
This API requires authentication, please see Authentication for instructions on issuing and passing a JWT to the API.
Cloud endpoint
API command
Arguments
newDeployment
: parameter object for new deploymentnewDeployment.name
: name of the deploymentnewDeployment.zone
: region to launchnewDeployment.deploymentType
: type of deployment(free|shared|dedicated)
Example
<cerebro-jwt>
is the JWT returned from Authentication.
Update Backend
Update backend.
This API requires authentication, please see Authentication for instructions on issuing and passing a JWT token to the API.
Cloud Endpoint
API Command
Arguments
updateDeploymentInput
: parameter object for update deploymentupdateDeploymentInput.uid
(required): deploymentuid
Example
<cerebro-jwt>
is the JWT returned from Authentication.<deployment-uid>
is the UID returned from List Backends.
Destroy Backend
Destroy (i.e., delete) a backend by id.
This API requires authentication, please see Authentication for instructions on issuing and passing a JWT token to the API.
Cloud Endpoint
API Command
Arguments
deploymentID
(required): deploymentuid
returned from a List Backends request
Example
<cerebro-jwt>
is the JWT returned from Authentication.
Restore Backends
Restore into a backend by source backend ID.
Cloud Endpoint
API Command
Arguments
uid
(required): the deploymentuid
from List BackendsbackupFolder
(required): TODObackupNum
(required): TODO
Example
Restore Backend Status
Retrieve the status of a restore operation.
Cloud Endpoint
API Command
Arguments
restoreId
(required): the id of the restore operation returned from Restore Backends request
Example
Drop
Drop (i.e., delete) all data in your backend.
Cloud Endpoint
API Command
Drop Data
Drop Schema
Drop Types
Arguments
types
: string array containing type Names
Drop Fields
Arguments
fields
: string array containing field Names
Example
Was this page helpful?