{"id":2229,"date":"2023-01-20T16:27:56","date_gmt":"2023-01-20T15:27:56","guid":{"rendered":"https:\/\/blog.kodono.info\/wordpress\/?p=2229"},"modified":"2023-01-20T16:27:56","modified_gmt":"2023-01-20T15:27:56","slug":"mount-a-smb-network-drive-with-pivotal-cloud-foundry-pcf-and-access-it-using-nodejs","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2023\/01\/20\/mount-a-smb-network-drive-with-pivotal-cloud-foundry-pcf-and-access-it-using-nodejs\/","title":{"rendered":"Mount a SMB Network Drive with Pivotal Cloud Foundry (pcf) and access it using NodeJS"},"content":{"rendered":"<p>Connect to the Apps Manager and navigate to the space where you want to mount the drive. Look at the members, and make sure your user has the correct roles:<br \/>\n<a href=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space-1024x278.png\" alt=\"\" width=\"1024\" height=\"278\" class=\"aligncenter size-large wp-image-2230\" srcset=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space-1024x278.png 1024w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space-300x82.png 300w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space-768x209.png 768w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space-1536x417.png 1536w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2023\/01\/pcf-app-manager-space.png 1549w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Then in a console, connect and log into the pcf space (something like <code>cf login<\/code> and <code>cf -s APPNAME<\/code>).<\/p>\n<p>Next, try the command <code>cf create-service smb Existing Files_Share -c '{\\\"share\\\":\\\"\/\/server.name.domain.com\/Files_Share\\\"}'<\/code> (the backslashes are important if you&#8217;re on Windows).<\/p>\n<p>Now you can bind the service with <code>cf bind-service APPNAME Files_Share -c '{\\\"username\\\":\\\"username_without_domain\\\",\\\"password\\\":\\\"network_password\\\",\\\"mount\\\":\\\"\/mnt\/Files_Share\\\"}'<\/code><\/p>\n<p>For more info, see <a href=\"https:\/\/docs.cloudfoundry.org\/devguide\/services\/using-vol-services.html#smb\">https:\/\/docs.cloudfoundry.org\/devguide\/services\/using-vol-services.html#smb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connect to the Apps Manager and navigate to the space where you want to mount the drive. Look at the members, and make sure your user has the correct roles: Then in a console, connect and log into the pcf space (something like cf login and cf -s APPNAME). Next, try the command cf create-service [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2229","post","type-post","status-publish","format-standard","hentry","category-divers"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=2229"}],"version-history":[{"count":2,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2229\/revisions"}],"predecessor-version":[{"id":2232,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2229\/revisions\/2232"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}