Subnets

Network subnet management operations

List subnets

get

Lists subnets to which the project has access.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Query parameters
network_idstringOptional

Filter the list result by the network ID.

idstringOptional

Filter the list result by the ID of the resource.

namestringOptional

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

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.

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/subnets

Create subnet

post

Creates a subnet.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Body
Responses
post
/v2.0/subnets

Show subnet details

get

Shows details for a subnet.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
subnet_idstring · uuidRequired

The ID of the subnet.

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/subnets/{subnet_id}

Update subnet

put

Updates a subnet.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
subnet_idstring · uuidRequired

The ID of the subnet.

Body
Responses
200

Subnet updated successfully

application/json
put
/v2.0/subnets/{subnet_id}

Delete subnet

delete

Deletes a subnet.

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
subnet_idstring · uuidRequired

The ID of the subnet.

Responses
delete
/v2.0/subnets/{subnet_id}

No content

Last updated

Was this helpful?