Skip to main content

Hi

I am trying to browse VM protected file systems which can be browsed from the CC and Java GUI with:

{
    "opType": 0,
    "queries": s
        {
        "type": 1,
        "queryId": "countQuery",
        "aggrParam": {
            "field": 0,
            "aggrType": 4
        }
    }, 
    {
        "type": 0,
        "queryId": "dataQuery",
        "dataParam": {
            "sortParam": {
                "ascending": true,
                "sortBy":
                    38,
                    0 
                ]
            },
            "paging": {
                "firstNode": 0,
                "pageSize": 15,
                "skipNode": 0
            }
        }
    }
    ],
    "mode": {
        "mode": 2
    },
    "paths": i
        {
        "path": "\\"
    }
    ],
    "options": {
        "showDeletedFiles": true,
        "restoreIndex": false,
        "vsDiskBrowse": false,
        "vsFileBrowse": true,
        "skipIndexRestore": true,
        "hideUserHidden": false,
        "useExactIndex": false
        
    },
    "entity": {
        "subclientId": 12731,
        "applicationId": 106,
        "clientName": "gbw25105578",
        "backupsetId": 12364,
        "instanceId": 2,
        "clientId": 6253
    }
}

 

but do not get the file list and only a single path info out of the C and D disk.

 

How could I get the file list for both drives back.

Hi,

The browse api returns the file list under the path you provide it. In the request you sent you have just browsed the root level. You’ll need to provide a child path to list the contents further below it.

If you know the child path to the folder / file you want you can go directly to it but if you don’t know then you can walk the tree listing each level to see the next available folders / files below. 

  1. Browse the root … "path": "\\" like you have already
  2. Browse the next level "path": "\\500e0f32… " returned in the result … in your case above I think this is the instance uuid for the VM. I haven’t looked in a while but expect the response from browsing that path returned in the result will include the disks which you can then continue to add to the path to browse further etc

There is some documentation here: REST API - POST Browse (commvault.com)

Take note of the browse sessionId parameter… this can help with performance


Thank you for the response. 

After specifying the path as "path": "\\500e0f32…\\C " and so on I was able to get information back. 

I had previously specified "path": "\\C" as per the example which returned null information.

Kind Regards

Nick


The other issue I am struggling with is to specify the Copy Precedence. I have read the documentation but it is not clear how it would be specified here to avoid browsing the snap shot.

 

Kind Regards

Nick


You can add another object to your request for that. Try this...

 

, “advOptions”: {

                        “CopyPrecedence”: 2

   } 

 

If it errors then try putting the copy precedence number as a string eg “2”

 


Reply