Skip to content

File objects stored in network workspace buckets.

GET/infra/connections/{connection}/networks/{network}/files

List files

Returns files of the given type owned by the given team in the specified network workspace bucket. The caller must be a member of the team.

Parameters

fileTypestringrequired
fileType*

The kind of file to list. Scopes the listing to a single file-type location in the workspace bucket.

Type
string
Required
Valid values
"pythonJob""pythonLibrary""pythonRequirements"
teamIdstringrequired
teamId*

The owning team whose files to list. The caller must be a member of this team; only that team's files are returned.

Type
string
Required
Example"A1B2C3D4E5"
Min Length
1
Max Length
20
Pattern
"^[A-Z0-9]{1,20}$"
limitinteger
limit

The maximum number of items to list.

Type
integer
Format
"int32"
Minimum
0
Maximum
100
Default
100
markerstring
marker

The pagination token returned from the previous list operation.

Type
string
Responses

Responses

List of files

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"key": "scripts/example.py",
  
  
  
"uri": "s3://lakesail-conn-net-ws/scripts/example.py",
  
  
  
"size": 0,
  
  
  
"lastModified": "string"
  
  
}
  
],
  
"marker": "string"
}
POST/infra/connections/{connection}/networks/{network}/files/uploads

Create a file upload

Returns a short-lived authorization for uploading a file directly to the specified network workspace storage.

Request Body

application/json
JSON
{
  
"fileName": "string",
  
"fileType": "string",
  
"teamId": "A1B2C3D4E5"
}
Responses

Responses

A short-lived file upload authorization for the selected network workspace.

application/json
JSON
{
  
"provider": "string",
  
"params": {
  
  
"url": "string",
  
  
"fields": {
  
  
  
"additionalProperties": "string"
  
  
}
  
},
  
"uri": "string",
  
"expiresAt": "string"
}
POST/infra/connections/{connection}/networks/{network}/files/downloads

Create a file download

Returns a short-lived authorization for downloading a file directly from the specified network workspace storage. The caller must be a member of the team that owns the file.

Request Body

application/json
JSON
{
  
"key": "string"
}
Responses

Responses

A short-lived file download authorization for the selected network workspace.

application/json
JSON
{
  
"provider": "string",
  
"params": {
  
  
"url": "string"
  
},
  
"expiresAt": "string"
}

Can't find the answer here? Email us: support@lakesail.com