Forum Discussion

jwitko's avatar
jwitko
Icon for Nimbostratus rankNimbostratus
May 04, 2015

Setting virtual server type via iControlREST

Hi,

 

Can someone please help me with setting a virtual server type under General Properties via iControlREST? I can not for the life of me figure out how to set the type to "Message Routing" for my virtual server handling SIP.

 

5 Replies

  • i never setup mrf virtual server. anyway, can you create the virtual server using either gui or tmsh and then get its properties?

     curl -sk -u admin:admin https://localhost/mgmt/tm/ltm/virtual | /var/tmp/jq .
    
  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    Can try this?

    curl -k -u admin:admin -H "Content-Type: application/json" -X POST -d \
    '{"name":"vs_sip","destination": "10.10.10.10:443","mask": "255.255.255.255", "profiles": [{ "name":"sipsession"},{"name":"siprouter"},{"name":"tcp"}]}'  \
    https://mgmtIP/mgmt/tm/ltm/virtual
    
    • jwitko's avatar
      jwitko
      Icon for Nimbostratus rankNimbostratus
      So I believe you are spot on here. 'Message Routing' virtual server type is simply a container of a set of profiles.
  • Can try this?

    curl -k -u admin:admin -H "Content-Type: application/json" -X POST -d \
    '{"name":"vs_sip","destination": "10.10.10.10:443","mask": "255.255.255.255", "profiles": [{ "name":"sipsession"},{"name":"siprouter"},{"name":"tcp"}]}'  \
    https://mgmtIP/mgmt/tm/ltm/virtual
    
    • jwitko's avatar
      jwitko
      Icon for Nimbostratus rankNimbostratus
      So I believe you are spot on here. 'Message Routing' virtual server type is simply a container of a set of profiles.