api.dc.network
¶
/dc/(dc)/network¶
-
api.dc.network.views.
dc_network_list
(*args, **kwargs)¶ List (
GET
) available networks in current datacenter.-
GET
/dc/
(dc)/network
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- data.full (boolean) – Return list of objects with all network details (default: false)
- data.order_by (string) – Available fields for sorting:
name
(default:name
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found
-
/dc/(dc)/network/(name)¶
-
api.dc.network.views.
dc_network
(*args, **kwargs)¶ Show (
GET
), create (POST
) or delete (DELETE
) a network (name) association with a datacenter (dc).-
GET
/dc/
(dc)/network/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Network name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Network not found
-
POST
/dc/
(dc)/network/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Network name
Status Codes: - 201 Created – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Network not found
- 406 Not Acceptable – Network already exists
-
DELETE
/dc/
(dc)/network/
(name)¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Network name
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Network not found
- 428 – Network is used by some VMs
-
/dc/(dc)/network/(name)/ip¶
-
api.dc.network.views.
dc_network_ip_list
(*args, **kwargs)¶ List (
GET
) IP addresses in a network (name) used by all servers in a datacenter (dc).-
GET
/dc/
(dc)/network/
(name)/ip
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - request.dc (string) – required - Datacenter name
- name (string) – required - Network name
- data.full (boolean) – Return list of objects with all network IP address details (default: false)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Datacenter not found / Network not found
-