Get the information about a file in a file set

get/fileSets/{fileSetId}/files/{fileName}
Internal-Use Only

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

Request Samples

1

Response Samples

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": 1
34}

Path Parameters

NameTypeRequiredDescription
fileName
string
true

The name of the file.

fileSetId
string
true

The ID of the file set.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
304Not ModifiedThe caller has the most current resource.Headers
404Not FoundThe specified file in the file set is not found.Schema
406Not AcceptableThe requested response type is not acceptable. See the returned error response for more information and acceptable response types.Schema