Search code examples
google-cloud-platformgoogle-cloud-functionspermalinks

Google Cloud Function Permalink


I am using a Google Cloud Function as a URI in a blockchain contract. As such the URI can never be changed. So I am wondering if there is any reason the trigger (http address) for the function might ever be changed or if this is a guaranteed permalink?

If not then I'll setup a domain name and direct it there, but I would rather not have to do that if the link is guaranteed permanent. Any information in this regard would be super helpful.

I imagine they wouldn't change this just for fun since many services depend on those links, but of course an app can always be updated and unfortunately a smart contract cannot :(


Solution

  • The URLs don't change unless you change the function name or region. In fact, you get to know the URL even before creating the function. They follow the same pattern:

    https://[FN_REGION]-[PROJECT_ID].cloudfunctions.net/[FN_NAME]
    

    enter image description here