open-nomad/website/source/docs/http/client-fs-cat.html.md
2016-06-14 03:00:53 +02:00

1.1 KiB

layout page_title sidebar_current description
http HTTP API: /v1/client/fs/cat docs-http-client-fs-cat The '/v1/client/fs/cat` endpoint is used to read the contents of a file in an allocation directory.

/v1/client/fs/cat

The /fs/cat endpoint is used to read the contents of a file in an allocation directory. This API endpoint is hosted by the Nomad client and requests have to be made to the Nomad client where the particular allocation was placed.

GET

Description
Read contents of a file in an allocation directory.
Method
GET
URL
`/v1/client/fs/cat/`
Parameters
  • path required The path relative to the root of the allocation directory. It defaults to `/`
Returns
```
2016/03/15 15:40:56 [DEBUG] sylog-server: launching syslog server on addr:
/tmp/plugin096499590

```