All URIs are relative to https://virtserver.swaggerhub.com/SDX-LC/2.0.0
Method | HTTP request | Description |
---|---|---|
add_topology | POST /topology | Send a new topology to SDX-LC |
delete_topology | DELETE /topology | Deletes a topology |
delete_topology_version | DELETE /topology/{version} | Deletes a topology version |
get_topology | GET /topology | get an existing topology |
get_topologyby_version | GET /topology/{version} | Find topology by version |
topology_version | GET /topology/version | Finds topology version |
update_topology | PUT /topology | Update an existing topology |
upload_file | POST /topology/{topology_id}/uploadImage | uploads an topology image |
Topology add_topology(body)
Send a new topology to SDX-LC
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
body = sdx_lc_client.Topology() # Topology | placed for adding a new topology
try:
# Send a new topology to SDX-LC
api_response = api_instance.add_topology(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling TopologyApi->add_topology: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Topology | placed for adding a new topology |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_topology(topology_id)
Deletes a topology
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
topology_id = 789 # int | ID of topology to delete
try:
# Deletes a topology
api_instance.delete_topology(topology_id)
except ApiException as e:
print("Exception when calling TopologyApi->delete_topology: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_id | int | ID of topology to delete |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_topology_version(topology_id, version)
Deletes a topology version
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
topology_id = 789 # int | ID of topology to return
version = 789 # int | topology version to delete
try:
# Deletes a topology version
api_instance.delete_topology_version(topology_id, version)
except ApiException as e:
print("Exception when calling TopologyApi->delete_topology_version: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_id | int | ID of topology to return | |
version | int | topology version to delete |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_topology()
get an existing topology
ID of the topology
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
try:
# get an existing topology
api_response = api_instance.get_topology()
pprint(api_response)
except ApiException as e:
print("Exception when calling TopologyApi->get_topology: %s\n" % e)
This endpoint does not need any parameter.
str
No authorization required
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Topology get_topologyby_version(topology_id, version)
Find topology by version
Returns a single topology
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
topology_id = 789 # int | ID of topology to return
version = 789 # int | version of topology to return
try:
# Find topology by version
api_response = api_instance.get_topologyby_version(topology_id, version)
pprint(api_response)
except ApiException as e:
print("Exception when calling TopologyApi->get_topologyby_version: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_id | int | ID of topology to return | |
version | int | version of topology to return |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Topology topology_version(topology_id)
Finds topology version
Topology version
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
topology_id = 'topology_id_example' # str | topology id
try:
# Finds topology version
api_response = api_instance.topology_version(topology_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TopologyApi->topology_version: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_id | str | topology id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_topology(body)
Update an existing topology
ID of topology that needs to be updated. \\ The topology update only updates the addition or deletion \\ of node, port, link.
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
body = sdx_lc_client.Topology() # Topology | topology object that needs to be sent to the SDX LC
try:
# Update an existing topology
api_instance.update_topology(body)
except ApiException as e:
print("Exception when calling TopologyApi->update_topology: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Topology | topology object that needs to be sent to the SDX LC |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiResponse upload_file(topology_id, body=body)
uploads an topology image
from __future__ import print_function
import time
import sdx_lc_client
from sdx_lc_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = sdx_lc_client.TopologyApi()
topology_id = 789 # int | ID of topology to update
body = sdx_lc_client.Object() # Object | (optional)
try:
# uploads an topology image
api_response = api_instance.upload_file(topology_id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling TopologyApi->upload_file: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
topology_id | int | ID of topology to update | |
body | Object | [optional] |
No authorization required
- Content-Type: application/octet-stream
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]