Toggle navigation
Sample Scripts
APIs
User Guides
Tutorials
About
ixNetwork
RestPy.pdf
webEditon_newFeatures.pdf
referenceGuides
ixNetworkApiServerBringup
webEdition_tutorialVideo
concurrentSessions
ixosTclServerBringUp
connectionMgr
restApi
postman
overview
linuxApiServer
chassisInstallation
postmanSample
overview
apiKey
usingLegacyApi
version8.40
beyond8.40
apiBrowser
tutorialVideo
loadConfig
assignPorts
configureNgpfMultivalue
addTrafficItemPacketHeader
overview
dockers
IxNetwork_docker_installation.pdf
apiServer
jsonConfigFile
overview
sampleL2L3JsonConfig
pythonRobotFramework
gettingStarted
sample
lowLevelApi
gettingStarted
sampleScripts
3InitialStepsToGetStarted
highLevelApi
gettingStarted
sampleScripts
ixLoad
IxLoad_Automation.pdf
userMgmtForApiKey
5G
5G_Setup
webUI
webUI
apiBrowser
overview
restApi
automatingIxLoad.pdf
loadConfigFile
getStatNames
fromScriptgenForLegacyApi
fromApiBrowserForRestApi
Python
windowsSetup
VSCode
keystrokes
restClient_IxLoad
restClient_IxNetwork
vsCodeSetup
Windows
sshOnWindows
restClient_IxLoad
Using VSCode as a ReST Client to send ReST APIs.
This sample connect to an IxLoad API server.
# Set some variables @apiServerIp = http://192.168.70.3:8080 ### POST {{apiServerIp}}/api/v0/sessions content-type: application/json {"ixLoadVersion": "8.40.0.277"} ### POST {{apiServerIp}}/api/v0/sessions/0/operations/start content-type: application/json {} ### PATCH: {{apiServerIp}}/api/v0/sessions/0/ixLoad/preferences content-type: application/json {"licenseServer": "192.168.70.3", "licenseModel": "Subscription Mode"} ### POST {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/operations/loadTest/ content-type: application/json {"fullPath": "C:\\Results\\att.rxf"} ### Wait for config to finish loading GET: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/operations/loadTest/0 ### GET: {{apiServerIp}}/api/v0/sessions/0/ixLoad/chassisChain/chassisList ### Assign ports GET: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/activeTest/communityList ### POST: {{apiServerIp}}/api/v0/sessions/0/ixload/chassischain/chassisList/1/operations/refreshConnection content-type: application/json ### Wait for refresh to complete GET: {{apiServerIp}}/api/v0/sessions/0/ixload/chassischain/chassisList/1/operations/refreshConnection/0 ### POST: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/activeTest/communityList/0/network/portList content-type: application/json {"chassisId": 2, "cardId": 1, "portId": 1} ### POST: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/activeTest/communityList/1/network/portList content-type: application/json {"chassisId": 2, "cardId": 2, "portId": 1} ### PATCH: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/activeTest content-type: application/json {"enableForceOwnership": True} ### POST: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/operations/runTest content-type: application/json ### Wait for test to run GET: {{apiServerIp}}/api/v0/sessions/0/ixLoad/test/operations/runTest/0 ### DELETE: {{apiServerIp}}/api/v0/sessions/0 content-type: application/json