v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1352131166.0 KB
projects

Returns the contents of a given Workspace directory.

get/v1/{+workspace}:queryDirectoryContents

Path parameters

workspacestring required

Required. The workspace's name.

Query parameters

pageSizeinteger

Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.

pageTokenstring

Optional. Page token received from a previous QueryDirectoryContents call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to QueryDirectoryContents, with the exception of page_size, must match the call that provided the page token.

pathstring

Optional. The directory's full path including directory name, relative to the workspace root. If left unset, the workspace root is used.

view'DIRECTORY_CONTENTS_VIEW_UNSPECIFIED' | 'DIRECTORY_CONTENTS_VIEW_BASIC' | 'DIRECTORY_CONTENTS_VIEW_METADATA'

Optional. Specifies the metadata to return for each directory entry. If unspecified, the default is DIRECTORY_CONTENTS_VIEW_BASIC. Currently the DIRECTORY_CONTENTS_VIEW_METADATA view is not supported by CMEK-protected workspaces.

Response

Successful response