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
- Instances
- Load Balancers
- Logging
- Managed Kubernetes
- Managed PostgreSQL
- Networks
- Placement Groups
- Projects
- Quotas
- Regions
- Registry
- Reservations
- Reserved IPs
- POSTPreview reserved fixed IP price
- GETList reserved fixed IPs
- POSTCreate reserved fixed IP
- GETGet reserved fixed IP
- DELDelete reserved fixed ip
- PATCHSwitch VIP status of reserved fixed IP
- GETList instance ports that are available for connecting to VIP
- GETList instance ports that share VIP
- PUTReplace ports that share VIP
- PATCHAdd ports that share VIP
- POST
- 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
Reserved IPs
Get reserved fixed IP
GET
/
cloud
/
v1
/
reserved_fixed_ips
/
{project_id}
/
{region_id}
/
{port_id}
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
)
reserved_fixed_ip = client.cloud.reserved_fixed_ips.get(
port_id="port_id",
project_id=0,
region_id=0,
)
print(reserved_fixed_ip.network_id)
Copy
Ask AI
{
"allowed_address_pairs": [
{
"ip_address": "192.168.123.20",
"mac_address": "00:16:3e:f2:87:16"
},
{
"ip_address": "192.168.0.2",
"mac_address": "00:16:3e:f2:87:89"
}
],
"attachments": [
{
"resource_id": "e3c6ee77-48cb-416b-b204-11b492cc776e3",
"resource_type": "instance"
},
{
"resource_id": "e73a4dbd-da04-4b6e-8ef9-07e8742001b7",
"resource_type": "ai_cluster"
}
],
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "30378aea-9343-4ff6-be38-9756094e05da",
"fixed_ip_address": "10.100.179.44",
"fixed_ipv6_address": null,
"is_external": false,
"is_vip": false,
"name": "Reserved fixed ip 10.100.179.44",
"network": {
"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": [
"f00624ab-41bc-4d54-a723-1673ce32d997",
"41e0f698-4d39-483b-b77a-18eb070e4c09"
],
"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": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"port_id": "817c8a3d-bb67-4b88-a0d1-aec980318ff1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"reservation": {
"resource_id": "83ed4ea6-bcae-4100-9e4d-36e541ff919b",
"resource_type": "instance",
"status": "attached"
},
"status": "DOWN",
"subnet_id": "747db04a-2aac-4fda-9492-d9b85a798c09",
"subnet_v6_id": null,
"task_id": null,
"updated_at": "2019-06-18T11:57:00+0000"
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Region ID
Port ID
Response
200 - application/json
Reserved fixed IP
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
)
reserved_fixed_ip = client.cloud.reserved_fixed_ips.get(
port_id="port_id",
project_id=0,
region_id=0,
)
print(reserved_fixed_ip.network_id)
Copy
Ask AI
{
"allowed_address_pairs": [
{
"ip_address": "192.168.123.20",
"mac_address": "00:16:3e:f2:87:16"
},
{
"ip_address": "192.168.0.2",
"mac_address": "00:16:3e:f2:87:89"
}
],
"attachments": [
{
"resource_id": "e3c6ee77-48cb-416b-b204-11b492cc776e3",
"resource_type": "instance"
},
{
"resource_id": "e73a4dbd-da04-4b6e-8ef9-07e8742001b7",
"resource_type": "ai_cluster"
}
],
"created_at": "2019-06-18T11:56:16+0000",
"creator_task_id": "30378aea-9343-4ff6-be38-9756094e05da",
"fixed_ip_address": "10.100.179.44",
"fixed_ipv6_address": null,
"is_external": false,
"is_vip": false,
"name": "Reserved fixed ip 10.100.179.44",
"network": {
"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": [
"f00624ab-41bc-4d54-a723-1673ce32d997",
"41e0f698-4d39-483b-b77a-18eb070e4c09"
],
"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": "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
"port_id": "817c8a3d-bb67-4b88-a0d1-aec980318ff1",
"project_id": 1337,
"region": "Luxembourg 1",
"region_id": 7,
"reservation": {
"resource_id": "83ed4ea6-bcae-4100-9e4d-36e541ff919b",
"resource_type": "instance",
"status": "attached"
},
"status": "DOWN",
"subnet_id": "747db04a-2aac-4fda-9492-d9b85a798c09",
"subnet_v6_id": null,
"task_id": null,
"updated_at": "2019-06-18T11:57:00+0000"
}
Assistant
Responses are generated using AI and may contain mistakes.