All URIs are relative to https://virtserver.swaggerhub.com/SDX-LC/2.0.0
Method | HTTP request | Description |
---|---|---|
add_link | POST /link | add a new link to the topology |
delete_link | DELETE /link | Deletes a link |
get_link | GET /link | get an existing link |
update_link | PUT /link | Update an existing link |
add_link(body)
add a new link to 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.LinkApi()
body = sdx_lc_client.Link() # Link | link object that needs to be sent to the SDX LC
try:
# add a new link to the topology
api_instance.add_link(body)
except ApiException as e:
print("Exception when calling LinkApi->add_link: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Link | link 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]
delete_link(node_id)
Deletes a 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.LinkApi()
node_id = 789 # int | ID of link to delete
try:
# Deletes a link
api_instance.delete_link(node_id)
except ApiException as e:
print("Exception when calling LinkApi->delete_link: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
node_id | int | ID of link 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]
get_link()
get an existing link
ID of the 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.LinkApi()
try:
# get an existing link
api_instance.get_link()
except ApiException as e:
print("Exception when calling LinkApi->get_link: %s\n" % e)
This endpoint does not need any parameter.
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]
update_link(body)
Update an existing link
ID of link that needs to be updated.
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.LinkApi()
body = sdx_lc_client.Link() # Link | link object that needs to be sent to the SDX LC
try:
# Update an existing link
api_instance.update_link(body)
except ApiException as e:
print("Exception when calling LinkApi->update_link: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Link | link 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]