H2ODriveService

Uploads a file from the sandbox filesystem to H2O Drive.

Reads a file from the sandbox filesystem and stores it in the remote storage at the specified path. If the file already exists in H2O Drive, it will be overwritten. The caller must have write permissions for the specified workspace.

Authorization: Only the creator of the parent SandboxEngine is allowed to call this method.

post/v1/{name}/h2oDrive:uploadFile

Request

Path parameters

namestring required

Required. The name of the sandbox engine. Format: workspaces/{workspace}/sandboxEngines/{sandbox_engine}

Request body

workspacestring

Optional. The workspace resource name. Format: workspaces/{workspace} If not specified, the default workspace in which the sandbox engine is running will be used.

localPathstring required

Required. The absolute path in the sandbox filesystem to read the file from. Must start with a forward slash (e.g., "/home/sandbox/output/results.json").

remotePathstring required

Response

A successful response.

bytesUploadedstring int64

Output only. The number of bytes read from the local filesystem and uploaded.

Changes

No recorded changes to this operation across all 1 revision of this API.