Openstack Ports
Operations Summary
Core CRUD
List Openstack Ports
Retrieve
Create
HTTPie Python TypeScript Request Body (required) Responses
http \
POST \
https://api.example.com/api/openstack-ports/ \
Authorization:"Token YOUR_API_TOKEN" \
name = "my-awesome-openstack-port"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.open_stack_port_request import OpenStackPortRequest # (1)
from waldur_api_client.api.openstack_ports import openstack_ports_create # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = OpenStackPortRequest (
name = "my-awesome-openstack-port"
)
response = openstack_ports_create . sync (
client = client ,
body = body_data
)
print ( response )
Model Source: OpenStackPortRequest
API Source: openstack_ports_create
1
2
3
4
5
6
7
8
9
10
11
12
13 import { openstackPortsCreate } from 'waldur-js-client' ;
try {
const response = await openstackPortsCreate ({
auth : "Token YOUR_API_TOKEN" ,
body : {
"name" : "my-awesome-openstack-port"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Field
Type
Required
Description
name
string
✓
description
string
fixed_ips
array of objects
fixed_ips.ip_address
any
✓
IP address to assign to the port
fixed_ips.subnet_id
string
✓
ID of the subnet in which to assign the IP address
mac_address
string
MAC address of the port
allowed_address_pairs
array of objects
allowed_address_pairs.ip_address
string
Constraints: write-only, default: 192.168.42.0/24
allowed_address_pairs.mac_address
string
target_tenant
string (uri)
Target tenant for shared network port creation. If not specified, defaults to network's tenant.Constraints: write-only
network
string (uri)
Network to which this port belongs
port_security_enabled
boolean
If True, security groups and rules will be applied to this port
security_groups
array of objects
security_groups.name
string
✓
201 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
name
string
description
string
service_name
string
service_settings
string (uri)
service_settings_uuid
string (uuid)
service_settings_state
string
service_settings_error_message
string
project
string (uri)
project_name
string
project_uuid
string (uuid)
customer
string (uri)
customer_uuid
string (uuid)
customer_name
string
customer_native_name
string
customer_abbreviation
string
error_message
string
error_traceback
string
resource_type
string
state
any
created
string (date-time)
modified
string (date-time)
backend_id
string
Port ID in OpenStack
access_url
string
fixed_ips
array of objects
fixed_ips.ip_address
any
IP address to assign to the port
fixed_ips.subnet_id
string
ID of the subnet in which to assign the IP address
mac_address
string
MAC address of the port
allowed_address_pairs
array of objects
allowed_address_pairs.mac_address
string
tenant
string (uri)
OpenStack tenant this port belongs to
tenant_name
string
tenant_uuid
string (uuid)
network
string (uri)
Network to which this port belongs
network_name
string
network_uuid
string (uuid)
floating_ips
array of string (uri)s
device_id
string
ID of device (instance, router etc) to which this port is connected
device_owner
string
Entity that uses this port (e.g. network:router_interface)
port_security_enabled
boolean
If True, security groups and rules will be applied to this port
security_groups
array of objects
security_groups.uuid
string (uuid)
security_groups.name
string
security_groups.url
string (uri)
admin_state_up
boolean
Administrative state of the port. If down, port does not forward packets
status
string
Port status in OpenStack (e.g. ACTIVE, DOWN)
marketplace_offering_uuid
string
marketplace_offering_name
string
marketplace_offering_plugin_options
object (free-form)
marketplace_category_uuid
string
marketplace_category_name
string
marketplace_resource_uuid
string
marketplace_plan_uuid
string
marketplace_resource_state
string
is_usage_based
boolean
is_limit_based
boolean
Synchronize resource state
Schedule an asynchronous pull operation to synchronize resource state from the backend. Returns 202 if the pull was scheduled successfully, or 409 if the pull operation is not implemented for this resource type.
Unlink resource
Delete resource from the database without scheduling operations on backend
and without checking current state of the resource. It is intended to be used
for removing resource stuck in transitioning state.
Update port IP address
Update port IP address.
Update security groups of the port
Update security groups of the port
Update
HTTPie Python TypeScript Path Parameters Request Body (required) Responses
http \
PUT \
https://api.example.com/api/openstack-ports/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
name = "my-awesome-openstack-port"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.open_stack_port_request import OpenStackPortRequest # (1)
from waldur_api_client.api.openstack_ports import openstack_ports_update # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = OpenStackPortRequest (
name = "my-awesome-openstack-port"
)
response = openstack_ports_update . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: OpenStackPortRequest
API Source: openstack_ports_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 import { openstackPortsUpdate } from 'waldur-js-client' ;
try {
const response = await openstackPortsUpdate ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body : {
"name" : "my-awesome-openstack-port"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
Description
name
string
✓
description
string
fixed_ips
array of objects
fixed_ips.ip_address
any
✓
IP address to assign to the port
fixed_ips.subnet_id
string
✓
ID of the subnet in which to assign the IP address
mac_address
string
MAC address of the port
allowed_address_pairs
array of objects
allowed_address_pairs.ip_address
string
Constraints: write-only, default: 192.168.42.0/24
allowed_address_pairs.mac_address
string
target_tenant
string (uri)
Target tenant for shared network port creation. If not specified, defaults to network's tenant.Constraints: write-only
network
string (uri)
Network to which this port belongs
port_security_enabled
boolean
If True, security groups and rules will be applied to this port
security_groups
array of objects
security_groups.name
string
✓
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
name
string
description
string
service_name
string
service_settings
string (uri)
service_settings_uuid
string (uuid)
service_settings_state
string
service_settings_error_message
string
project
string (uri)
project_name
string
project_uuid
string (uuid)
customer
string (uri)
customer_uuid
string (uuid)
customer_name
string
customer_native_name
string
customer_abbreviation
string
error_message
string
error_traceback
string
resource_type
string
state
any
created
string (date-time)
modified
string (date-time)
backend_id
string
Port ID in OpenStack
access_url
string
fixed_ips
array of objects
fixed_ips.ip_address
any
IP address to assign to the port
fixed_ips.subnet_id
string
ID of the subnet in which to assign the IP address
mac_address
string
MAC address of the port
allowed_address_pairs
array of objects
allowed_address_pairs.mac_address
string
tenant
string (uri)
OpenStack tenant this port belongs to
tenant_name
string
tenant_uuid
string (uuid)
network
string (uri)
Network to which this port belongs
network_name
string
network_uuid
string (uuid)
floating_ips
array of string (uri)s
device_id
string
ID of device (instance, router etc) to which this port is connected
device_owner
string
Entity that uses this port (e.g. network:router_interface)
port_security_enabled
boolean
If True, security groups and rules will be applied to this port
security_groups
array of objects
security_groups.uuid
string (uuid)
security_groups.name
string
security_groups.url
string (uri)
admin_state_up
boolean
Administrative state of the port. If down, port does not forward packets
status
string
Port status in OpenStack (e.g. ACTIVE, DOWN)
marketplace_offering_uuid
string
marketplace_offering_name
string
marketplace_offering_plugin_options
object (free-form)
marketplace_category_uuid
string
marketplace_category_name
string
marketplace_resource_uuid
string
marketplace_plan_uuid
string
marketplace_resource_state
string
is_usage_based
boolean
is_limit_based
boolean
Partial Update
HTTPie Python TypeScript Path Parameters Request Body Responses
http \
PATCH \
https://api.example.com/api/openstack-ports/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_open_stack_port_request import PatchedOpenStackPortRequest # (1)
from waldur_api_client.api.openstack_ports import openstack_ports_partial_update # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = PatchedOpenStackPortRequest ()
response = openstack_ports_partial_update . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: PatchedOpenStackPortRequest
API Source: openstack_ports_partial_update
1
2
3
4
5
6
7
8
9
10
11
12
13 import { openstackPortsPartialUpdate } from 'waldur-js-client' ;
try {
const response = await openstackPortsPartialUpdate ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
Description
name
string
description
string
target_tenant
string (uri)
Target tenant for shared network port creation. If not specified, defaults to network's tenant.Constraints: write-only
security_groups
array of objects
security_groups.name
string
✓
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
name
string
description
string
service_name
string
service_settings
string (uri)
service_settings_uuid
string (uuid)
service_settings_state
string
service_settings_error_message
string
project
string (uri)
project_name
string
project_uuid
string (uuid)
customer
string (uri)
customer_uuid
string (uuid)
customer_name
string
customer_native_name
string
customer_abbreviation
string
error_message
string
error_traceback
string
resource_type
string
state
any
created
string (date-time)
modified
string (date-time)
backend_id
string
Port ID in OpenStack
access_url
string
fixed_ips
array of objects
fixed_ips.ip_address
any
IP address to assign to the port
fixed_ips.subnet_id
string
ID of the subnet in which to assign the IP address
mac_address
string
MAC address of the port
allowed_address_pairs
array of objects
allowed_address_pairs.mac_address
string
tenant
string (uri)
OpenStack tenant this port belongs to
tenant_name
string
tenant_uuid
string (uuid)
network
string (uri)
Network to which this port belongs
network_name
string
network_uuid
string (uuid)
floating_ips
array of string (uri)s
device_id
string
ID of device (instance, router etc) to which this port is connected
device_owner
string
Entity that uses this port (e.g. network:router_interface)
port_security_enabled
boolean
If True, security groups and rules will be applied to this port
security_groups
array of objects
security_groups.uuid
string (uuid)
security_groups.name
string
security_groups.url
string (uri)
admin_state_up
boolean
Administrative state of the port. If down, port does not forward packets
status
string
Port status in OpenStack (e.g. ACTIVE, DOWN)
marketplace_offering_uuid
string
marketplace_offering_name
string
marketplace_offering_plugin_options
object (free-form)
marketplace_category_uuid
string
marketplace_category_name
string
marketplace_resource_uuid
string
marketplace_plan_uuid
string
marketplace_resource_state
string
is_usage_based
boolean
is_limit_based
boolean
Delete
Other Actions
Disable port
Disable port.
Disable port security for the port
Disable port security for the port
Enable port
Enable port.
Enable port security for the port
Enable port security for the port