curl --request GET \
--url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name} \
--header 'Authorization: <api-key>'
{
"created_at": "2023-08-22T11:21:00Z",
"description": "This is a sample namespace.",
"envs": {
"ENV_VAR": "value"
},
"functions": [
{
"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
}
],
"functions_deploy_status": {
"deployed": 1
},
"name": "namespace-name",
"status": "Active"
}
Retrieve detailed information about a specific namespace. Includes all functions associated with the namespace.
curl --request GET \
--url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name} \
--header 'Authorization: <api-key>'
{
"created_at": "2023-08-22T11:21:00Z",
"description": "This is a sample namespace.",
"envs": {
"ENV_VAR": "value"
},
"functions": [
{
"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
}
],
"functions_deploy_status": {
"deployed": 1
},
"name": "namespace-name",
"status": "Active"
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
1
Region ID
1
Namespace name
"namespace-name"
OK
The response is of type object
.
Was this page helpful?