Vultr Storage Gateway (an NFS Gateway for Vultr File System) allows scalable NFS access to VFS volumes. You can update a gateway’s label to better organize your infrastructure, enforce naming conventions, or reflect project changes.
Follow this guide to update a Vultr Storage Gateway using the Vultr API.
Send a GET
request to the List Storage Gateways endpoint and copy the ID of the gateway you want to update.
$ curl "https://api.vultr.com/v2/storage-gateways" \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Storage Gateway endpoint using the copied ID. The only supported field for updates is the label.
$ curl "https://api.vultr.com/v2/storage-gateways/<storage-gateway-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"label": "<your-new-storage-gateway-label>"
}'
Send a GET
request to the Storage Gateway endpoint using the Storage Gateway ID to confirm the updated label.
$ curl "https://api.vultr.com/v2/storage-gateways/<storage-gateway-id>" \
-H "Authorization: Bearer ${VULTR_API_KEY}"