List contents of a directory
Lists the contents of a directory and its subdirectories.
With the GET HTTP Body/{VirtualPath} method, you can list the contents of a directory and subdirectories, if any, in any connected applications such as Sterling B2B Integrator or Sterling File Gateway.
Method | Resource | URI | Description |
---|---|---|---|
GET |
HTTP Body |
[http/https]://[ip address of the machine]:[port]/[Receiver URI]/[Virtual Path]/ |
Displays the contents of a directory and subdirectories in JSON format. |
List contents of a directory example
The following example shows a successful request and response.
HTTP list contents request
GET http://9.109.114.193:31231/httpreceiver/path1
HTTP list contents response
HTTP body with the contents of the directory in JSON format