04-20-2023 01:46 AM
what is the right API call to upgrade the vEdge device in a multitenant SD wan environment?
because the wan edge device visibility is restricted to tenant mode.
Solved! Go to Solution.
04-20-2023 06:53 PM
It is the same API call as single tenant but you will need to add metadata to the http header. Run /dataservice/tenant to get the list of tenants and select a tenantId. Once you have selected the tenantId execute /dataservice/tenant/<tenantId>/switch api and this will respond with Jsession ID and vsessionId. Use the Jessionid and VsessionID in the http header in subsequent api calls for that tenant.
headers = {'Content-Type': "application/json", 'Cookie': jsessionid, 'X-XSRF-TOKEN': token, 'VSessionId':vsessionId}
These APIs are documented in the swagger interface in a multi-tenant enabled vmanage.
04-20-2023 06:53 PM
It is the same API call as single tenant but you will need to add metadata to the http header. Run /dataservice/tenant to get the list of tenants and select a tenantId. Once you have selected the tenantId execute /dataservice/tenant/<tenantId>/switch api and this will respond with Jsession ID and vsessionId. Use the Jessionid and VsessionID in the http header in subsequent api calls for that tenant.
headers = {'Content-Type': "application/json", 'Cookie': jsessionid, 'X-XSRF-TOKEN': token, 'VSessionId':vsessionId}
These APIs are documented in the swagger interface in a multi-tenant enabled vmanage.
04-20-2023 07:42 PM
Thanks a lot Dan,
Can you please help to share the same API doc, link here.
04-20-2023 07:51 PM
The API doc is built directly in the mutli tenant vmanage. Access by going to https://<vmanageIp>/apidocs
04-20-2023 08:11 PM
curl --location --request POST 'https://{{IP}}:{{PORT-NO}}/dataservice/dataservice/device/action/software' \
--header 'Authorization: Basic ENCODED-ID-PASS' \
--header 'Cookie: JSESSIONID=JSON-ID'
--header 'VSessionId: VSESSIOn_ID'
===
This curl call gives me 409
09-30-2024 01:27 AM
I faced same issue, the issue is fixed after correct vSessionId token
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide