Help Center> Graph Engine Service> devg> Using the Management Plane SDK> Querying the Backup List of a Graph
Updated on 2022-09-14 GMT+08:00

Querying the Backup List of a Graph

You can use a specific API provided by GES to query backups of a graph of the current tenant. The sample code is as follows:

  private static void listBackupsByGraphId(GesClient client, String graphId) throws GesSdkException
    {
        GesBackUpList gesBackUpList = client.queryBackupById(graphId);
        if (null == gesBackUpList.getBackupList())
        {
            System.out.println("backup is null");
        }
        else
        {
            for(GesBackUp backUp: gesBackUpList.getBackupList())
            {
                System.out.println(backUp);
            }
        }
    }