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
- GETGet bare metal capacity
- GETList bare metal flavors
- GETList bare metal flavors from default project
- GETList bare metal servers
- POSTCreate bare metal server
- POSTList suitalbe flavors for bare metal server creation
- POSTCheck quota for bare metal server creation
- POSTRebuild bare metal server
- GETGet bare metal capacity from default project
- GET
- Container as a Service
- Cost Reports
- DDOS Protection
- File Shares
- Firewalls
- Floating IPs
- Function as a Service
- 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
Bare Metal
List suitalbe flavors for bare metal server creation
POST
/
cloud
/
v1
/
bminstances
/
{project_id}
/
{region_id}
/
available_flavors
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
baremetal_flavor_list = client.cloud.baremetal.flavors.list_suitable(
project_id=0,
region_id=0,
)
print(baremetal_flavor_list.count)
Copy
Ask AI
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"currency_code": "USD",
"disabled": false,
"flavor_id": "g2-standard-32-64",
"flavor_name": "g2-standard-32-64",
"hardware_description": {},
"os_type": "linux",
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"ram": 2048,
"reserved_in_stock": 1,
"resource_class": "bm1-ai-small",
"vcpus": 1
}
]
}
Authorizations
API key for authentication.
Query Parameters
Set to true if flavor listing should include flavor prices
Body
application/json
Available bare metal flavors for specified image
Response
200 - application/json
List of available flavors
The response is of type object
.
Was this page helpful?
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
baremetal_flavor_list = client.cloud.baremetal.flavors.list_suitable(
project_id=0,
region_id=0,
)
print(baremetal_flavor_list.count)
Copy
Ask AI
{
"count": 1,
"results": [
{
"architecture": "x86_64",
"capacity": 1,
"currency_code": "USD",
"disabled": false,
"flavor_id": "g2-standard-32-64",
"flavor_name": "g2-standard-32-64",
"hardware_description": {},
"os_type": "linux",
"price_per_hour": 1,
"price_per_month": 720,
"price_status": "show",
"ram": 2048,
"reserved_in_stock": 1,
"resource_class": "bm1-ai-small",
"vcpus": 1
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.