- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - Try it!
 
Returns the contents of a given Workspace directory.
HTTP request
GET https://dataform.googleapis.com/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
workspace | 
                
                   
 Required. The workspace's name. Authorization requires the following IAM permission on the specified resource  
  | 
              
Query parameters
| Parameters | |
|---|---|
path | 
                
                   
 Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.  | 
              
pageSize | 
                
                   
 Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.  | 
              
pageToken | 
                
                   
 Optional. Page token received from a previous  When paginating, all other parameters provided to   | 
              
Request body
The request body must be empty.
Response body
workspaces.queryDirectoryContents response message.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "directoryEntries": [
    {
      object ( | 
                  
| Fields | |
|---|---|
directoryEntries[] | 
                    
                       
 List of entries in the directory.  | 
                  
nextPageToken | 
                    
                       
 A token, which can be sent as   | 
                  
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/bigquery
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the workspace resource:
dataform.workspaces.queryDirectoryContents
For more information, see the IAM documentation.