curl --request GET \
--url https://api.gcore.com/cloud/v2/inference/deployments \
--header 'Authorization: <api-key>'{
"count": 1,
"results": [
{
"containers": [
{
"deploy_status": {
"ready": 123,
"total": 123
},
"region_id": 123,
"scale": {
"max": 123,
"min": 1,
"cooldown_period": 60,
"triggers": {
"cpu": {
"threshold": 75
}
}
},
"error_message": "Failed to pull image"
}
],
"flavor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": "<string>",
"listening_port": 123,
"name": "<string>",
"status": "ACTIVE",
"address": "https://example.com",
"api_key_ids": [],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"created_at": "2023-08-22T11:21:00Z",
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
}
},
"timeout": 120
}
]
}curl --request GET \
--url https://api.gcore.com/cloud/v2/inference/deployments \
--header 'Authorization: <api-key>'{
"count": 1,
"results": [
{
"containers": [
{
"deploy_status": {
"ready": 123,
"total": 123
},
"region_id": 123,
"scale": {
"max": 123,
"min": 1,
"cooldown_period": 60,
"triggers": {
"cpu": {
"threshold": 75
}
}
},
"error_message": "Failed to pull image"
}
],
"flavor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image": "<string>",
"listening_port": 123,
"name": "<string>",
"status": "ACTIVE",
"address": "https://example.com",
"api_key_ids": [],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"created_at": "2023-08-22T11:21:00Z",
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"<string>"
]
},
"failure_threshold": 3,
"http_get": {
"port": 32768,
"headers": {},
"host": "127.0.0.1",
"path": "/",
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 10,
"success_threshold": 1,
"tcp_socket": {
"port": 32768
},
"timeout_seconds": 3
}
}
},
"timeout": 120
}
]
}API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Limit the number of returned instances. Limited by max limit value of 1000
Offset value is used to exclude the first set of records from the result
Order instances by transmitted fields and directions (name.asc)
Project ID
Was this page helpful?