cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1053
Views
2
Helpful
4
Replies

what is API call for upgrade vEdge device in multitenancy environment

rohitspostowl
Level 1
Level 1

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.

 

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

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.

View solution in original post

4 Replies 4

Dan Frey
Cisco Employee
Cisco Employee

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.

Thanks a lot Dan, 

 

Can you please help to share the same  API doc, link here.

The API doc is built directly in the mutli tenant vmanage.   Access by going to https://<vmanageIp>/apidocs

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

<html><head><title>Error</title></head><body>Conflict</body></html>