Overview
IAM
- Account
- Users
- API Tokens
CDN
- IP addresses list
- CDN service
- Origins
- CDN resources
- CDN activity logs
- Log forwarding
- Log viewer
- Logs uploader
- Tools
- Rules
- Rule templates
- Purge history
- SSL certificates
- CA certificates
- CDN Statistics
- Advanced analytics
- Origin shielding
- Let's Encrypt certificates
Managed DNS
- Analyze
- Locations
- Lookup
- Metrics
- Pickers
- DNS Clients
- Zones
- DNSSEC
- RRsets
Cloud
- Bare Metal
- Container as a Service
- Cost Reports
- DDOS Protection
- File Shares
- Firewalls
- Floating IPs
- Function as a Service
- GETGet FaaS flavors
- GETList api keys
- POSTCreate api key
- GETGet api key
- DELDelete api key
- PATCHChange api key
- GETList namespaces
- POSTCreate namespace
- GETGet namespace
- DELDelete namespace
- PATCHChange namespace
- GETList functions
- POSTCreate function
- GETGet function
- DELDelete function
- PATCHChange function
- GETGet function logs
- GETGet FaaS runtimes
- POSTPreview function price
- GET
- GPU Cloud
- IP Ranges
- Images
- Inference Instances
- Instances
- Load Balancers
- Logging
- Managed Kubernetes
- Managed PostgreSQL
- Networks
- Placement Groups
- Projects
- Quotas
- Regions
- Registry
- Reservations
- Reserved IPs
- Routers
- SSH Keys
- Secrets
- Service Endpoints
- Snapshot Schedules
- Snapshots
- Tasks
- User Actions
- User Role Assignments
- Volumes
Security
- Event Logs
- BGP announces
- Security Templates
- Profiles
FastEdge
- Apps
- Binaries
- FastEdge Clients
- FastEdge Secrets
- Stats
- FastEdge Templates
WAAP
- WAAP Service
- Domains
- Policies
- Analytics
- Custom Page Sets
- Custom Rules
- Firewall Rules
- Advanced Rules
- Tags
- Network Organizations
- API Discovery
- IP Spotlight
- Security Insights
Web Security
- Billing Statistics
- Resources
Video Streaming
- Streams
- Overlays
- Broadcasts
- Restreams
- Videos
- Subtitles
- Directories
- Playlists
- QualitySets
- Players
- AI
- Streaming Statistics
Object Storage
- Notifications
- Key
- Location
- Storage
- Storage Statistics
Function as a Service
Get function
GET
/
cloud
/
v1
/
faas
/
namespaces
/
{project_id}
/
{region_id}
/
{namespace_name}
/
functions
/
{function_name}
Copy
Ask AI
curl --request GET \
--url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name} \
--header 'APIKey: <api-key>'
Copy
Ask AI
{
"autoscaling": {
"max_instances": 2,
"min_instances": 1
},
"build_message": "Building",
"build_status": "Building",
"code_text": "def main():\n return 'Hello World'",
"created_at": "2023-08-22T11:21:00Z",
"dependencies": "numpy==1.21.0\npandas==1.3.0",
"deploy_status": {
"deployed": 1
},
"description": "This is a sample function.",
"enable_api_key": true,
"endpoint": "https://example.com/function-name",
"envs": {
"ENV_VAR": "value"
},
"flavor": "64m-64MB",
"id": "c8a920ad-b5a4-47d5-b8b9-0e6c35cd800f",
"main_method": "run",
"name": "function-name",
"runtime": "python3.7.12",
"status": "Running",
"timeout": 5
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Examples:
1
Region ID
Examples:
1
Namespace name
Examples:
"namespace-name"
Function name
Examples:
"function-name"
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request GET \
--url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name} \
--header 'APIKey: <api-key>'
Copy
Ask AI
{
"autoscaling": {
"max_instances": 2,
"min_instances": 1
},
"build_message": "Building",
"build_status": "Building",
"code_text": "def main():\n return 'Hello World'",
"created_at": "2023-08-22T11:21:00Z",
"dependencies": "numpy==1.21.0\npandas==1.3.0",
"deploy_status": {
"deployed": 1
},
"description": "This is a sample function.",
"enable_api_key": true,
"endpoint": "https://example.com/function-name",
"envs": {
"ENV_VAR": "value"
},
"flavor": "64m-64MB",
"id": "c8a920ad-b5a4-47d5-b8b9-0e6c35cd800f",
"main_method": "run",
"name": "function-name",
"runtime": "python3.7.12",
"status": "Running",
"timeout": 5
}
Assistant
Responses are generated using AI and may contain mistakes.