Skip to content

Instantly share code, notes, and snippets.

@Geremie
Created April 13, 2022 18:59
Show Gist options
  • Save Geremie/8c77b7075341f4615bbbda5358fa3288 to your computer and use it in GitHub Desktop.
Save Geremie/8c77b7075341f4615bbbda5358fa3288 to your computer and use it in GitHub Desktop.
Manage your Private Python Packages with Artifact Registry (Part 1)
# Get the function url
function_url=$(gcloud functions describe <your_function_name> --region <your_function_location> --format="get(httpsTrigger.url)")
# Call the function to compute the haversine distance
curl -X POST -d '{"x1": 1, "y1": 2, "x2": 3, "y2": 4}' $function_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment