System Administration >
Configuration
>
Fabric
>
Nodes
>
File Store
Replace file contents
Request:
Method:
PUT
URI Path(s):
/api/v1/cluster/<cluster-node-id>/node/file-store/<file-name>/data
/api/v1/transport-nodes/<transport-node-id>/node/file-store/<file-name>/data
/api/v1/node/file-store/<file-name>/data
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a
Example Request:
PUT https://<nsx-mgr>/api/v1/node/file-store/test1.txt/data This is updated content that overwrites the former content.
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
FileProperties
+
FileProperties
(
schema
)
Name
Description
Type
Notes
_links
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST.
array of
ResourceLink
Readonly
_schema
Schema for this resource
string
Readonly
_self
Link to this resource
SelfResourceLink
Readonly
created_epoch_ms
File creation time in epoch milliseconds
integer
Required
modified_epoch_ms
File modification time in epoch milliseconds
integer
Required
name
File name
string
Required
Pattern: "^[^/]+$"
size
Size of the file in bytes
integer
Required
Example Response:
{ "_schema": "FileProperties", "_self": "/node/file-store/test2.txt", "created_epoch_ms": 1457116797106, "modified_epoch_ms": 1457116797106, "name": "test2.txt", "size": 59 }
Required Permissions:
crud
Feature:
system_administration
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable