List Objects For S3
Backs S3 ListObjectsV2 for a bucket: a flat recursive listing, or directory mode (delimiter "/") with common prefixes interleaved in lexicographic key order. max_keys of 0 or above 1000 falls back to 1000; continuation_token is the last key of the previous page. Requires a live, enabled verified_access_key_id that covers the bucket; otherwise, or for an unknown bucket, the response carries denied. Any delimiter other than "" or "/" is rejected with InvalidArgument. Virtual-file folder contents are omitted.
Access: internal only — the portal worker, authenticated by the shared X-Upl-Internal-Token header matching S3_CREDENTIALS_INTERNAL_TOKEN (FailedPrecondition when unset, Unauthenticated on mismatch). No user authentication.
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Required: only SigV4-verified access keys may list. The api recomputes the key's authority over the bucket.
1 <= lengthS3 key prefix filter (no leading slash). Empty = whole bucket.
length <= 1024"" (flat/recursive) or "/" (directory mode: immediate children + common prefixes). Other delimiters are not supported.
length <= 11-1000; defaults to 1000.
int320 <= value <= 1000Opaque keyset cursor from a previous page's next_continuation_token.
length <= 2048Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPortalService/ListObjectsForS3" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"denied": {
"reason": "REASON_UNSPECIFIED"
},
"objects": [
{
"key": "string",
"sizeBytes": "string",
"updatedAt": "2023-01-15T01:30:15.01Z",
"uploadId": "string"
}
],
"commonPrefixes": [
"string"
],
"isTruncated": true,
"nextContinuationToken": "string"
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}