Add Port Options
GET/backend/api/openstack/instances/:instance_id/add_port_options
Host: https://core.ocplanet.cloud
Retrieve options for adding a port to the specified instance.
Request
Responses
- 200
- application/json
- Schema
- Example (from schema)
- Example
Schema
- 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
project_id 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"
}
],
"project_id": "string"
}
{
"networks": [
{
"id": "5820370d-c55b-40d4-a172-089e457fb611",
"extra": {
"availability_zones": [
"nova"
]
},
"subnets": [
{
"id": "96ba4fff-f76c-4498-83cb-b4f4502c3cad",
"name": "subnet21175",
"cidr": "10.0.1.0/24",
"ip_version": 4,
"gateway_ip": "10.0.1.1",
"project_id": "50caa053ebc847c39b9c3149c746f0fa",
"enable_dhcp": true,
"extra": "{'ipv6_address_mode': None, 'ipv6_ra_mode': None, 'host_routes': [], 'dns_nameservers': []}",
"allocation_pools": "[]",
"has_edit_permission": true,
"has_delete_permission": true
}
],
"allowed_actions": [
"update",
"delete",
"add_subnet",
"add_router"
],
"name": "network95065dd",
"description": "",
"shared": false,
"router_external": false,
"is_default": false,
"status": "ACTIVE",
"admin_state_up": true,
"created_at": "2024-03-15T12:51:49Z",
"updated_at": "2024-03-18T13:55:06Z",
"region": "ua-central-1",
"project": "50caa053ebc847c39b9c3149c746f0fa"
},
{
"id": "d76c58ea-98ca-4abe-a9b9-0a04f1740a71",
"extra": {
"provider:physical_network": null,
"provider:network_type": "vxlan",
"provider:segmentation_id": 720,
"availability_zones": [
"nova"
]
},
"subnets": [
{
"id": "04830e34-ee2b-4257-8c25-fddcd3c3eeba",
"name": "subnet90308",
"cidr": "10.0.1.0/24",
"ip_version": 4,
"gateway_ip": "10.0.1.1",
"project_id": "50caa053ebc847c39b9c3149c746f0fa",
"enable_dhcp": true,
"extra": "{'ipv6_address_mode': None, 'ipv6_ra_mode': None, 'host_routes': [], 'dns_nameservers': []}",
"allocation_pools": "[{'start': '10.0.1.2', 'end': '10.0.1.254'}]",
"has_edit_permission": true,
"has_delete_permission": true
}
],
"allowed_actions": [
"update",
"delete",
"add_subnet",
"add_router"
],
"name": "network94532",
"description": "",
"shared": false,
"router_external": false,
"is_default": false,
"status": "ACTIVE",
"admin_state_up": true,
"created_at": "2024-03-14T07:36:57Z",
"updated_at": "2024-03-14T07:36:58Z",
"region": "ua-central-1",
"project": "50caa053ebc847c39b9c3149c746f0fa"
}
],
"project_id": "50caa053ebc847c39b9c3149c746f0fa"
}
Loading...