You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But having global/networks/ is not necessarily true in all GCP setups. My organization has it setup as this - https://www.googleapis.com/compute/v1/projects/**project-name**/regions/us-central1/subnetworks/local-us-central1-net01
Because of this, I am never able to setup a VM instance through the function. Below is the error snippet that I get
2020-12-14 23:47:06> Creating template VM
i 2020-12-14 23:47:07 > Request Status Code: 404
Error: API returned: The resource 'projects/**project-name**/global/networks/regions/us-central1/subnetworks/local-us-central1-net01' was not found
Solution
Modification in the source code to remove /global/networks/ as default keywords. Users can put them as and when required.
The current
gce_vm()
function fetches and appends the project and network parameters as followsBut having
global/networks/
is not necessarily true in all GCP setups. My organization has it setup as this -https://www.googleapis.com/compute/v1/projects/**project-name**/regions/us-central1/subnetworks/local-us-central1-net01
Because of this, I am never able to setup a VM instance through the function. Below is the error snippet that I get
Solution
Modification in the source code to remove
/global/networks/
as default keywords. Users can put them as and when required.https://github.com/cloudyr/googleComputeEngineR/blob/master/R/networks.R
The text was updated successfully, but these errors were encountered: