Get directory contents
get/sessions/{sessionId}/filerefs/{fileref}/content
Returns a directory listing when a fileref refers to a directory. A collection of directory members is returned.
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": 249}
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No resource exists at the requested path. | Schema |