Get the information about a file in a file set
get/fileSets/{fileSetId}/files/{fileName}
Gets the metadata attached to a file in a file set. application/octet-stream headers returns the information and content of the specified file from the specified file set. application/vnd.sas.batch.file.set.file+json and application/json returns information about the specified file from the specified file set
1{2 "creationTimeStamp": "2022-06-14T15:00:47.243Z",3 "createdBy": "someuser",4 "modifiedTimeStamp": "2022-06-14T15:00:47.243Z",5 "modifiedBy": "someuser",6 "fileSetId": "JOB_20220614_150046_039_1",7 "name": "testEnvVars.sas",8 "size": 544,9 "links": [10 {11 "method": "GET",12 "rel": "self",13 "href": "/batch/fileSets/JOB_20220614_150046_039_1/files/testEnvVars.sas",14 "uri": "/batch/fileSets/JOB_20220614_150046_039_1/files/testEnvVars.sas",15 "type": "application/vnd.sas.batch.file.set.file"16 },17 {18 "method": "PUT",19 "rel": "update",20 "href": "/batch/fileSets/JOB_20220614_150046_039_1/files/testEnvVars.sas",21 "uri": "/batch/fileSets/JOB_20220614_150046_039_1/files/testEnvVars.sas",22 "type": "application/vnd.sas.batch.file.set.file"23 },24 {25 "method": "GET",26 "rel": "up",27 "href": "/batch/fileSets/JOB_20220614_150046_039_1/files",28 "uri": "/batch/fileSets/JOB_20220614_150046_039_1/files",29 "type": "application/vnd.sas.collection",30 "itemType": "application/vnd.sas.batch.file.set.file"31 }32 ],33 "version": 134}
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
304 | Not Modified | The caller has the most current resource. | Headers | |
404 | Not Found | The specified file in the file set is not found. | Schema | |
406 | Not Acceptable | The requested response type is not acceptable. See the returned error response for more information and acceptable response types. | Schema |