Get Add IP Options
GET/backend/api/openstack/instances/:instance_id/add_ip_options
Host: https://core.ocplanet.cloud
Retrieve options for adding an IP to the specified instance. No ports found for instance
Request
Responses
- 200
- 404
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
networks object[]required
id stringrequired
extra objectrequired
availability_zones arrayrequired
subnets object[]required
id stringrequired
name stringrequired
cidr stringrequired
ip_version integerrequired
gateway_ip stringrequired
project_id stringrequired
enable_dhcp booleanrequired
extra stringrequired
allocation_pools stringrequired
has_edit_permission booleanrequired
has_delete_permission booleanrequired
allowed_actions string[]required
name stringrequired
description stringrequired
shared booleanrequired
router_external booleanrequired
is_default booleanrequired
status stringrequired
admin_state_up booleanrequired
created_at stringrequired
updated_at stringrequired
region stringrequired
project stringrequired
ports object[]required
id stringrequired
fixed_ips object[]required
subnet_id stringrequired
ip_address stringrequired
created_at stringrequired
name stringrequired
description stringrequired
admin_state_up booleanrequired
device_id stringrequired
device_owner stringrequired
mac_address stringrequired
security_groups stringrequired
port_security_enabled booleanrequired
extra stringrequired
status stringrequired
network stringrequired
project stringrequired
{
"networks": [
{
"id": "string",
"extra": {
"availability_zones": [
null
]
},
"subnets": [
{
"id": "string",
"name": "string",
"cidr": "string",
"ip_version": 0,
"gateway_ip": "string",
"project_id": "string",
"enable_dhcp": true,
"extra": "string",
"allocation_pools": "string",
"has_edit_permission": true,
"has_delete_permission": true
}
],
"allowed_actions": [
"string"
],
"name": "string",
"description": "string",
"shared": true,
"router_external": true,
"is_default": true,
"status": "string",
"admin_state_up": true,
"created_at": "string",
"updated_at": "string",
"region": "string",
"project": "string"
}
],
"ports": [
{
"id": "string",
"fixed_ips": [
{
"subnet_id": "string",
"ip_address": "string"
}
],
"created_at": "string",
"name": "string",
"description": "string",
"admin_state_up": true,
"device_id": "string",
"device_owner": "string",
"mac_address": "string",
"security_groups": "string",
"port_security_enabled": true,
"extra": "string",
"status": "string",
"network": "string",
"project": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail stringrequired
{
"detail": "string"
}
{
"detail": "No ports found for instance"
}
Loading...