cURL
curl --request POST \ --url https://api.gcore.com/cloud/v1/file_shares/{project_id}/{region_id}/check_limits \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "size": 5 }'
{ "sfs_count_limit": 10, "sfs_count_requested": 1, "sfs_count_usage": 1, "sfs_size_limit": 100, "sfs_size_requested": 50, "sfs_size_usage": 90 }
Check if regional quota is exceeded, if yes the number of additional quotas needed to create the specified File Share will be calculated
x >= 1
Was this page helpful?