Get directory contents

get/sessions/{sessionId}/filerefs/{fileref}/content
Internal-Use Only

Returns a directory listing when a fileref refers to a directory. A collection of directory members is returned.

Request Samples

1

Response Samples

1{
2 "accept": "application/vnd.sas.compute.fileref.directory.member",
3 "count": 1,
4 "items": [
5 {
6 "id": "myfile.txt",
7 "links": [
8 {
9 "href": "/compute/sessions/RKEY-ses0000/filerefs/mydir?member=myfile.txt",
10 "method": "GET",
11 "rel": "self",
12 "type": "application/vnd.sas.compute.fileref.directory.member",
13 "uri": "/compute/sessions/RKEY-ses0000/filerefs/mydir?member=myfile.txt"
14 },
15 {
16 "href": "/compute/sessions/RKEY-ses0000/filerefs?parent=mydir",
17 "method": "POST",
18 "rel": "assign",
19 "responseType": "application/vnd.sas.compute.fileref",
20 "type": "application/vnd.sas.compute.fileref.request",
21 "uri": "/compute/sessions/RKEY-ses0000/filerefs?parent=mydir"
22 }
23 ],
24 "name": "myfile.txt"
25 }
26 ],
27 "limit": 1,
28 "links": [
29 {
30 "href": "/compute/sessions/RKEY-ses0000/filerefs/mydir/content?start=0&limit=1",
31 "itemType": "application/vnd.sas.compute.fileref.directory.member",
32 "method": "GET",
33 "rel": "self",
34 "type": "application/vnd.sas.collection",
35 "uri": "/compute/sessions/RKEY-ses0000/filerefs/mydir/content?start=0&limit=1"
36 },
37 {
38 "href": "/compute/sessions/RKEY-ses0000/filerefs/mydir/content",
39 "itemType": "application/vnd.sas.compute.fileref.directory.member",
40 "method": "GET",
41 "rel": "collection",
42 "type": "application/vnd.sas.collection",
43 "uri": "/compute/sessions/RKEY-ses0000/filerefs/mydir/content"
44 }
45 ],
46 "name": "Fileref Members",
47 "start": 0,
48 "version": 2
49}

Path Parameters

NameTypeRequiredDescription
fileref
string
true

Specifies the fileref name. The name must be eight or fewer characters.

sessionId
string<object-id>
true

Specifies the ID of the session.

Query Parameters

NameTypeRequiredDescription
limit
integer
false

Specifies the maximum number of members to return. The default value is "10".

start
integer
false

Specifies the offset of the first directory member to return. The default value is "0".

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path.Schema