Ports

Network port management operations

List ports

get

Lists ports to which the project has access.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Query parameters
admin_state_upbooleanOptional

Filter the list result by the administrative state of the resource.

idstringOptional

Filter the list result by the ID of the resource.

namestringOptional

Filter the list result by the human-readable name of the resource.

network_idstringOptional

Filter the list result by the network ID.

project_idstringOptional

Filter the list result by the ID of the project that owns the resource.

tenant_idstringOptional

Filter the list result by the ID of the project that owns the resource.

device_idstringOptional

Filter ports by device ID.

device_ownerstringOptional

Filter ports by device owner.

statusstring · enumOptional

Filter the list result by status.

Possible values:
fieldsstringOptional

The fields that you want the server to return. If no fields are specified, all fields are returned.

sort_dirstring · enumOptional

Sort direction. A valid value is asc (ascending) or desc (descending).

Possible values:
sort_keystringOptional

Sorts by a resource attribute.

tagsstringOptional

A list of tags to filter the list result by. Resources that match all tags in this list will be returned.

tags-anystringOptional

A list of tags to filter the list result by. Resources that match any tag in this list will be returned.

not-tagsstringOptional

A list of tags to filter the list result by. Resources that match all tags in this list will be excluded.

not-tags-anystringOptional

A list of tags to filter the list result by. Resources that match any tag in this list will be excluded.

Responses
200

Successful operation

application/json
get
/v2.0/ports

Create port

post

Creates a port.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Body
Responses
post
/v2.0/ports

Show port details

get

Shows details for a port.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
port_idstring · uuidRequired

The ID of the port.

Query parameters
fieldsstringOptional

The fields that you want the server to return. If no fields are specified, all fields are returned.

Responses
200

Successful operation

application/json
get
/v2.0/ports/{port_id}

Update port

put

Updates a port.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
port_idstring · uuidRequired

The ID of the port.

Body
Responses
200

Port updated successfully

application/json
put
/v2.0/ports/{port_id}

Delete port

delete

Deletes a port.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
port_idstring · uuidRequired

The ID of the port.

Responses
delete
/v2.0/ports/{port_id}

No content

Last updated

Was this helpful?