System Administration >
Configuration
>
Fabric
>
Nodes
>
File Store
Create directory in remote file server
Create a directory on the remote remote server. Supports only SFTP.
You must provide the remote server's SSH fingerprint. See the
NSX Administration Guide
for information and instructions
about finding the SSH fingerprint.
Request:
Method:
POST
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/file-store?action=create_remote_directory
/api/v1/cluster/{cluster-node-id}/node/file-store?action=create_remote_directory
/api/v1/node/file-store?action=create_remote_directory
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
CreateRemoteDirectoryProperties
+
CreateRemoteDirectoryProperties
(
schema
)
Name
Description
Type
Notes
port
Server port
integer
Minimum: 1
Maximum: 65535
protocol
Protocol to use to copy file
SftpProtocol
Required
server
Remote server hostname or IP address
string
Required
Pattern: "^.+$"
uri
URI of file to copy
string
Required
Example Request:
POST https://<nsx-mgr>/api/v1/node/file-store?action=create_remote_directory { "port" : 22, "server": "192.168.120.151", "uri" : "/tmp/folder", "protocol" : { "name" : "sftp", "ssh_fingerprint" : "b5:08:df:c6:55:62:e4:6e:95:70:7c:25:ba:f2:46:f1" , "authentication_scheme" : { "scheme_name" : "password", "username" : "root" , "password" : "s4druMuJEw" } } }
Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a
Required Permissions:
read
Feature:
system_administration
Additional Errors:
404 Not Found
504 Gateway Timeout
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable