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
- POSTCreate bare metal GPU cluster
- DELDelete bare metal GPU server from cluster
- POSTRebuild one or more bare metal GPU cluster servers
- POSTResize bare metal GPU cluster
- POSTCheck quotas for bare metal GPU cluster creation
- GETList network interfaces for a bare metal GPU cluster
- GETList network ports for a bare metal GPU cluster
- POSTAttach interface to bare metal GPU cluster server
- POSTDetach interface from bare metal GPU cluster server
- GETGet bare metal GPU cluster server console URL
- POSTPowercycle one bare metal GPU cluster server
- POSTReboot one bare metal GPU cluster server
- GETDeprecated. List bare metal GPU flavorsdeprecated
- GETDeprecated. List bare metal GPU imagesdeprecated
- GETList regions with GPU cluster support
- POSTPreview GPU cluster price
- GETGet GPU cluster price
- GETList bare metal GPU clusters
- GETGet bare metal GPU cluster
- DELDelete bare metal GPU cluster
- POSTPowercycle all bare metal GPU cluster servers
- POSTReboot all bare metal GPU cluster servers
- POSTCheck quotas for bare metal GPU cluster creation
- GETList bare metal GPU clusters
- GETGet bare metal GPU cluster
- GETList bare metal GPU cluster servers
- GETList bare metal GPU flavors
- GETList bare metal GPU images
- POSTUpload new bare metal GPU image
- GETGet bare metal GPU image by ID
- DELDelete bare metal GPU image by ID
- POSTCheck quotas for virtual GPU cluster creation
- GETList virtual GPU clusters
- POSTCreate virtual GPU cluster
- GETGet info about a single virtual GPU cluster
- DELDelete virtual GPU cluster
- PATCHRename virtual GPU cluster
- POSTPerform a specific action on the virtual GPU cluster
- GETList network interfaces for virtual GPU cluster
- GETList virtual GPU cluster servers
- DELDelete virtual GPU server from cluster
- GETList volumes attached to servers in the virtual GPU cluster
- GETList virtual GPU flavors
- GETList virtual GPU images
- POSTUpload new virtual GPU image
- GETGet virtual GPU image by ID
- DELDelete virtual GPU image by ID
- POST
- 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
GPU Cloud
List network interfaces for a bare metal GPU cluster
Returns the network interfaces attached to the servers in the cluster.
GET
/
cloud
/
v1
/
ai
/
clusters
/
{project_id}
/
{region_id}
/
{cluster_id}
/
interfaces
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
)
network_interface_list = client.cloud.gpu_baremetal_clusters.interfaces.list(
cluster_id="cluster_id",
project_id=0,
region_id=0,
)
print(network_interface_list.count)
Copy
Ask AI
{
"count": 1,
"results": [
{
"allowed_address_pairs": [
{
"ip_address": "<string>",
"mac_address": "<string>"
}
],
"floatingip_details": [
{
"created_at": "2019-06-13T13:58:12+0000",
"creator_task_id": "d1e1500b-e2be-40aa-9a4b-cc493fa1af30",
"dns_domain": "string",
"dns_name": "string",
"fixed_ip_address": "192.168.10.15",
"floating_ip_address": "172.24.4.34",
"id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
"status": "ACTIVE",
"subnet_id": null,
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "a4eb4b29-048e-42f6-a5e1-2c18bc001c45",
"updated_at": "2019-06-13T13:58:12+0000"
}
],
"interface_name": "my-interface",
"ip_assignments": [
{
"ip_address": "192.168.123.20",
"subnet_id": "351b0dd7-ca09-431c-be53-935db3785067"
},
{
"ip_address": "192.168.120.16",
"subnet_id": "0a641ef8-62dc-4146-91e5-6ab4b464df6d"
}
],
"mac_address": "00:16:3e:f2:87:16",
"network_details": {
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "fd50fdd1-0482-4c9b-b847-fc9924665af6",
"default": true,
"external": true,
"id": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"mtu": 1500,
"name": "public",
"port_security_enabled": true,
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"segmentation_id": 9,
"shared": false,
"subnets": [
{
"available_ips": 65432,
"cidr": "10.0.0.0/16",
"created_at": "2019-07-18T12:07:00+0000",
"description": "example description",
"enable_dhcp": true,
"has_router": false,
"id": "80bfcb8e-1709-4bb2-99d4-3fa1332571de",
"ip_version": 4,
"name": "test 2",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 65536,
"updated_at": "2019-07-22T10:55:45+0000"
},
{
"available_ips": 232,
"cidr": "192.168.192.0/24",
"created_at": "2019-07-22T15:15:05+0000",
"description": "{\"`task_id`\": \"cc9a5445-189e-48de-a01f-5e10641a6915\"}",
"enable_dhcp": true,
"has_router": false,
"id": "94196a6a-c2ce-4f0d-8dc7-d9e0e722aea0",
"ip_version": 4,
"name": "string",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 256,
"updated_at": "2019-07-22T15:15:05+0000"
}
],
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": null,
"type": "vlan",
"updated_at": "2019-06-18T11:57:00+0000"
},
"network_id": "bc688791-f1b0-44eb-97d4-07697294b1e1",
"port_id": "1f0ca628-a73b-42c0-bdac-7b10d023e097",
"port_security_enabled": true,
"sub_ports": [
{
"allowed_address_pairs": [
{
"ip_address": "<string>",
"mac_address": "<string>"
}
],
"floatingip_details": [
{
"created_at": "2019-06-13T13:58:12+0000",
"creator_task_id": "d1e1500b-e2be-40aa-9a4b-cc493fa1af30",
"dns_domain": "string",
"dns_name": "string",
"fixed_ip_address": "192.168.10.15",
"floating_ip_address": "172.24.4.34",
"id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
"status": "ACTIVE",
"subnet_id": null,
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "a4eb4b29-048e-42f6-a5e1-2c18bc001c45",
"updated_at": "2019-06-13T13:58:12+0000"
}
],
"interface_name": "my-interface",
"ip_assignments": [
{
"ip_address": "192.168.123.20",
"subnet_id": "351b0dd7-ca09-431c-be53-935db3785067"
},
{
"ip_address": "192.168.120.16",
"subnet_id": "0a641ef8-62dc-4146-91e5-6ab4b464df6d"
}
],
"mac_address": "00:16:3e:f2:87:16",
"network_details": {
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "fd50fdd1-0482-4c9b-b847-fc9924665af6",
"default": true,
"external": true,
"id": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"mtu": 1500,
"name": "public",
"port_security_enabled": true,
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"segmentation_id": 9,
"shared": false,
"subnets": [
{
"available_ips": 65432,
"cidr": "10.0.0.0/16",
"created_at": "2019-07-18T12:07:00+0000",
"description": "example description",
"enable_dhcp": true,
"has_router": false,
"id": "80bfcb8e-1709-4bb2-99d4-3fa1332571de",
"ip_version": 4,
"name": "test 2",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 65536,
"updated_at": "2019-07-22T10:55:45+0000"
},
{
"available_ips": 232,
"cidr": "192.168.192.0/24",
"created_at": "2019-07-22T15:15:05+0000",
"description": "{\"`task_id`\": \"cc9a5445-189e-48de-a01f-5e10641a6915\"}",
"enable_dhcp": true,
"has_router": false,
"id": "94196a6a-c2ce-4f0d-8dc7-d9e0e722aea0",
"ip_version": 4,
"name": "string",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 256,
"updated_at": "2019-07-22T15:15:05+0000"
}
],
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": null,
"type": "vlan",
"updated_at": "2019-06-18T11:57:00+0000"
},
"network_id": "bc688791-f1b0-44eb-97d4-07697294b1e1",
"port_id": "1f0ca628-a73b-42c0-bdac-7b10d023e097",
"port_security_enabled": true,
"segmentation_id": 3990,
"segmentation_type": "vlan"
}
]
}
]
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Region ID
Cluster ID
Response
200 - application/json
List of network interfaces
The response is of type object
.
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
)
network_interface_list = client.cloud.gpu_baremetal_clusters.interfaces.list(
cluster_id="cluster_id",
project_id=0,
region_id=0,
)
print(network_interface_list.count)
Copy
Ask AI
{
"count": 1,
"results": [
{
"allowed_address_pairs": [
{
"ip_address": "<string>",
"mac_address": "<string>"
}
],
"floatingip_details": [
{
"created_at": "2019-06-13T13:58:12+0000",
"creator_task_id": "d1e1500b-e2be-40aa-9a4b-cc493fa1af30",
"dns_domain": "string",
"dns_name": "string",
"fixed_ip_address": "192.168.10.15",
"floating_ip_address": "172.24.4.34",
"id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
"status": "ACTIVE",
"subnet_id": null,
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "a4eb4b29-048e-42f6-a5e1-2c18bc001c45",
"updated_at": "2019-06-13T13:58:12+0000"
}
],
"interface_name": "my-interface",
"ip_assignments": [
{
"ip_address": "192.168.123.20",
"subnet_id": "351b0dd7-ca09-431c-be53-935db3785067"
},
{
"ip_address": "192.168.120.16",
"subnet_id": "0a641ef8-62dc-4146-91e5-6ab4b464df6d"
}
],
"mac_address": "00:16:3e:f2:87:16",
"network_details": {
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "fd50fdd1-0482-4c9b-b847-fc9924665af6",
"default": true,
"external": true,
"id": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"mtu": 1500,
"name": "public",
"port_security_enabled": true,
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"segmentation_id": 9,
"shared": false,
"subnets": [
{
"available_ips": 65432,
"cidr": "10.0.0.0/16",
"created_at": "2019-07-18T12:07:00+0000",
"description": "example description",
"enable_dhcp": true,
"has_router": false,
"id": "80bfcb8e-1709-4bb2-99d4-3fa1332571de",
"ip_version": 4,
"name": "test 2",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 65536,
"updated_at": "2019-07-22T10:55:45+0000"
},
{
"available_ips": 232,
"cidr": "192.168.192.0/24",
"created_at": "2019-07-22T15:15:05+0000",
"description": "{\"`task_id`\": \"cc9a5445-189e-48de-a01f-5e10641a6915\"}",
"enable_dhcp": true,
"has_router": false,
"id": "94196a6a-c2ce-4f0d-8dc7-d9e0e722aea0",
"ip_version": 4,
"name": "string",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 256,
"updated_at": "2019-07-22T15:15:05+0000"
}
],
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": null,
"type": "vlan",
"updated_at": "2019-06-18T11:57:00+0000"
},
"network_id": "bc688791-f1b0-44eb-97d4-07697294b1e1",
"port_id": "1f0ca628-a73b-42c0-bdac-7b10d023e097",
"port_security_enabled": true,
"sub_ports": [
{
"allowed_address_pairs": [
{
"ip_address": "<string>",
"mac_address": "<string>"
}
],
"floatingip_details": [
{
"created_at": "2019-06-13T13:58:12+0000",
"creator_task_id": "d1e1500b-e2be-40aa-9a4b-cc493fa1af30",
"dns_domain": "string",
"dns_name": "string",
"fixed_ip_address": "192.168.10.15",
"floating_ip_address": "172.24.4.34",
"id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
"port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
"status": "ACTIVE",
"subnet_id": null,
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": "a4eb4b29-048e-42f6-a5e1-2c18bc001c45",
"updated_at": "2019-06-13T13:58:12+0000"
}
],
"interface_name": "my-interface",
"ip_assignments": [
{
"ip_address": "192.168.123.20",
"subnet_id": "351b0dd7-ca09-431c-be53-935db3785067"
},
{
"ip_address": "192.168.120.16",
"subnet_id": "0a641ef8-62dc-4146-91e5-6ab4b464df6d"
}
],
"mac_address": "00:16:3e:f2:87:16",
"network_details": {
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "fd50fdd1-0482-4c9b-b847-fc9924665af6",
"default": true,
"external": true,
"id": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"mtu": 1500,
"name": "public",
"port_security_enabled": true,
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"segmentation_id": 9,
"shared": false,
"subnets": [
{
"available_ips": 65432,
"cidr": "10.0.0.0/16",
"created_at": "2019-07-18T12:07:00+0000",
"description": "example description",
"enable_dhcp": true,
"has_router": false,
"id": "80bfcb8e-1709-4bb2-99d4-3fa1332571de",
"ip_version": 4,
"name": "test 2",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 65536,
"updated_at": "2019-07-22T10:55:45+0000"
},
{
"available_ips": 232,
"cidr": "192.168.192.0/24",
"created_at": "2019-07-22T15:15:05+0000",
"description": "{\"`task_id`\": \"cc9a5445-189e-48de-a01f-5e10641a6915\"}",
"enable_dhcp": true,
"has_router": false,
"id": "94196a6a-c2ce-4f0d-8dc7-d9e0e722aea0",
"ip_version": 4,
"name": "string",
"network_id": "162091db-33cc-45d5-a375-964509af4813",
"project_id": 1,
"region": "Luxembourg 1",
"region_id": 1,
"tags": [
{
"key": "key1",
"read_only": false,
"value": "value1"
}
],
"total_ips": 256,
"updated_at": "2019-07-22T15:15:05+0000"
}
],
"tags": [
{
"key": "my-tag",
"read_only": false,
"value": "my-tag-value"
}
],
"task_id": null,
"type": "vlan",
"updated_at": "2019-06-18T11:57:00+0000"
},
"network_id": "bc688791-f1b0-44eb-97d4-07697294b1e1",
"port_id": "1f0ca628-a73b-42c0-bdac-7b10d023e097",
"port_security_enabled": true,
"segmentation_id": 3990,
"segmentation_type": "vlan"
}
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.