System Administration > Configuration > Fabric > Nodes > File Store

Upload a file to the file store

When you issue this API, the client must specify:
- HTTP header Content-Type:application/octet-stream.
- Request body with the contents of the file in the filestore.
In the CLI, you can view the filestore with the get files command.

Request:

Method:
POST
URI Path(s):
/api/v1/node/file-store/<file-name>
/api/v1/transport-nodes/<transport-node-id>/node/file-store/<file-name>
/api/v1/cluster/<cluster-node-id>/node/file-store/<file-name>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

POST https://<nsx-mgr>/api/v1/node/file-store/test.txt This is a sentence that is added to the file test.txt.

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
FileProperties+

Example Response:

{ "_schema": "FileProperties", "_self": "/node/file-store/test.txt", "created_epoch_ms": 1457048560936, "modified_epoch_ms": 1457048560936, "name": "test.txt", "size": 54 }

Required Permissions:

crud

Feature:

system_administration

Additional Errors: