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
- GPU Cloud
- IP Ranges
- Images
- Inference Instances
- POSTDeprecated. Preview inference deployment pricedeprecated
- GETDeprecated. List API Keysdeprecated
- POSTDeprecated. Create API Keydeprecated
- GETDeprecated. Get API Keydeprecated
- DELDeprecated. Delete API Keydeprecated
- PATCHDeprecated. Update API Keydeprecated
- GETDeprecated. Get Capacity for regionsdeprecated
- GETDeprecated. List Inference Instancesdeprecated
- POSTDeprecated. Create Inference Instancedeprecated
- GETDeprecated. Get Inference Instancedeprecated
- PUTDeprecated. Update Inference Instancedeprecated
- DELDeprecated. Delete Inference Instancedeprecated
- GETDeprecated. Get Inference Instance Logsdeprecated
- GETDeprecated. Get Inference Instance Logs by Regiondeprecated
- POSTDeprecated. Start Inference Instancedeprecated
- POSTDeprecated. Stop Inference Instancedeprecated
- GETDeprecated. List inference instance flavorsdeprecated
- GETDeprecated. Get inference instance flavor Detailsdeprecated
- GETList ML Model Catalogdeprecated
- GETGet ML Model Catalog Details
- GETDeprecated. List Registriesdeprecated
- POSTDeprecated. Create Registrydeprecated
- GETDeprecated. Get Registrydeprecated
- DELDeprecated. Delete Registrydeprecated
- PATCHDeprecated. Update Registrydeprecated
- POSTPreview inference deployment price
- GETGet inference capacity by region
- GETList inference flavors
- GETGet inference flavor
- GETList models from catalog
- GETGet model from catalog
- GETList inference deployments
- POSTCreate inference deployment
- GETGet inference deployment
- DELDelete inference deployment
- PATCHUpdate inference deployment
- GETGet inference deployment API key
- GETGet inference deployment logs
- POSTStart inference deployment
- POSTStop inference deployment
- GETList inference registry credentials
- POSTCreate inference registry credential
- GETGet inference registry credential
- PUTUpdate inference registry credential
- DELDelete inference registry credential
- GETList Secrets for Inference
- POSTCreate Inference Secret
- GETGet Inference Secret
- PUTUpdate Inference Secret
- DELDelete Inference Secret
- POST
- 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
Inference Instances
Deprecated. Create Inference Instance
deprecated
POST
/
cloud
/
v2
/
inference
/
deployments
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v2/inference/deployments \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"api_key_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"containers": [
{
"region_id": 7,
"scale": {
"cooldown_period": 60,
"max": 3,
"min": 1,
"triggers": {
"cpu": {
"threshold": 80
},
"memory": {
"threshold": 70
}
}
}
}
],
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"flavor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "nginx:latest",
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"listening_port": 8080,
"name": "my-instance",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
}
},
"project_id": 1,
"timeout": 120
}'
Copy
Ask AI
{
"address": "https://example.com",
"api_key_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"containers": [],
"created_at": "2023-08-22T11:21:00Z",
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"flavor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "nginx:latest",
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"listening_port": 8080,
"name": "my-instance",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
}
},
"status": "ACTIVE",
"timeout": 120
}
Authorizations
API key for authentication.
Body
application/json
Response
200
application/json
Inference instance
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v2/inference/deployments \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"api_key_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"containers": [
{
"region_id": 7,
"scale": {
"cooldown_period": 60,
"max": 3,
"min": 1,
"triggers": {
"cpu": {
"threshold": 80
},
"memory": {
"threshold": 70
}
}
}
}
],
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"flavor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "nginx:latest",
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"listening_port": 8080,
"name": "my-instance",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
}
},
"project_id": 1,
"timeout": 120
}'
Copy
Ask AI
{
"address": "https://example.com",
"api_key_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"auth_enabled": false,
"command": [
"nginx",
"-g",
"daemon off;"
],
"containers": [],
"created_at": "2023-08-22T11:21:00Z",
"description": "My first instance",
"envs": {
"DEBUG_MODE": "False",
"KEY": "12345"
},
"flavor_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"image": "nginx:latest",
"image_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"listening_port": 8080,
"name": "my-instance",
"probes": {
"liveness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"readiness_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
},
"startup_probe": {
"enabled": true,
"probe": {
"exec": {
"command": [
"ls",
"-l"
]
},
"failure_threshold": 3,
"http_get": {
"headers": {
"Authorization": "Bearer token 123"
},
"host": "127.0.0.1",
"path": "/healthz",
"port": 80,
"schema": "HTTP"
},
"initial_delay_seconds": 0,
"period_seconds": 5,
"success_threshold": 1,
"tcp_socket": {
"port": 80
},
"timeout_seconds": 1
}
}
},
"status": "ACTIVE",
"timeout": 120
}
Assistant
Responses are generated using AI and may contain mistakes.