NSX-T Data Center REST API
Delete directory in remote file server
Delete a directory or file on the remote server.When remote directory is specified for deletion,
it removes all of files and sub-directories residing
within the specified remote directory for deletion.
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:
DELETE
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/file-store?action=delete_remote_directory
/api/v1/cluster/{cluster-node-id}/node/file-store?action=delete_remote_directory
/api/v1/node/file-store?action=delete_remote_directory
/api/v1/cluster/{cluster-node-id}/node/file-store?action=delete_remote_directory
/api/v1/node/file-store?action=delete_remote_directory
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DeleteRemoteDirectoryProperties+
Example Request:
{ "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