Resolve function name for invocation
Changed onResolves a DNS-safe function name to its function ID and invocation URL within the caller's project.
SDKs use this endpoint internally to invoke by function name while routing by function ID. Invoke the returned invoke_url as-is. It does not share a domain with the API, so a host built from the API URL will not reach the function. When the deployment serves no public invocation domain, as in local development, invoke_url is omitted and callers invoke through POST /functions/{functionId}/invoke.
With Service Key:
- Allowed
With Auth User Token:
- Allowed for authenticated and public functions
- A private function answers 404, exactly as a missing one
With Anon Key:
- Requires anon key permission: functions.invoke
- Function must have visibility: public; any other answers 404
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
Query parameters
DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)
Response
Function resolved successfully
DNS-safe function name
Canonical function ID used for invocation routing
Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead.
Suggested SDK cache TTL for this name-to-ID mapping
Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
14 more changes in this revision
- breaking