Command gcloud functions describe <function_name>
throws 404
but function is deployed correctly.
I've checked the gcloud profile is pointing at the same region and project of the function. I've also checked through the console and the function is displayed under the correct project.
# gcloud functions list
NAME STATE TRIGGER REGION ENVIRONMENT
screenwriter ACTIVE HTTP Trigger us-central1 2nd gen
# gcloud functions describe screenwriter
ERROR: (gcloud.functions.describe) ResponseError: status=[404], code=[Ok], message=[Function screenwriter in region us-central1 in project personal-xyz does not exist]
# gcloud config list
[compute]
region = us-central1
[core]
account = mypersonal@email.com
project = personal-xyz
In accordance with @DazWilkin, I agree that the --gen2
flag is required. When describing a function the --gen2
flag is still required for the 2nd gen function. Please see release notes for more details regarding cloud functions.
To describe the 2nd gen function use below command:
gcloud functions describe FUNC_NAME --region=REGION --gen2
or
gcloud functions describe FUNC_NAME --gen2