NSX-T Data Center REST API
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>
              
            /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+
  