<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Advanced Load Balancer Macro API method in VMware NSX Documents</title>
    <link>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/ta-p/2918161</link>
    <description>&lt;DIV class="lia-message-template-question-zone"&gt;&lt;H2&gt;Question&lt;/H2&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I want to provide to application responsibles an easy way to manage their Virtual Servers.&lt;BR /&gt;I have spent few hours to try virtualservice model of ALB macro API method but this latter is not well documented.&lt;BR /&gt;Until now, I have only configured successfully virtual servers and all its related components in the default cloud in the admin tenant.&lt;BR /&gt;Unfortunately, it is not my use case and I still receive the response below as soon I try to specify another cloud.&lt;BR /&gt;{&lt;BR /&gt;"error": "Error in creating VirtualService test1_vs: Error in creating VirtualService test1_vs: tier1_lr not configured"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I use AVI 21.1.4 version and here is the body I use.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"model_name": "VirtualService",&lt;BR /&gt;"data": {&lt;BR /&gt;"name": "test1_vs",&lt;BR /&gt;"vrf_context_ref":"/api/vrfcontext?name=sirveglabnsxt1t11",&lt;BR /&gt;"tenant_ref": "/api/tenant?name=admin",&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"se_group_ref": "/api/serviceenginegroup?name=lab_alw_seg1",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11",&lt;BR /&gt;"services": [&lt;BR /&gt;{&lt;BR /&gt;"port": 80&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"vsvip_ref_data": {&lt;BR /&gt;"name": "test1_vsvip",&lt;BR /&gt;"vip": [&lt;BR /&gt;{&lt;BR /&gt;"ip_address": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.222.162"&lt;BR /&gt;},&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"vrf_context_ref":"/api/vrfcontext?name=sirveglabnsxt1t11",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"application_profile_ref": "/api/applicationprofile?name=http_application_profile",&lt;BR /&gt;"pool_ref_data": {&lt;BR /&gt;"name": "test1_pool",&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11",&lt;BR /&gt;"servers": [&lt;BR /&gt;{&lt;BR /&gt;"ip": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.221.45"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"ip": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.221.46"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"health_monitor_ref": "/api/healthmonitor?name=monitor_http_standard"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thank in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-template-answer-zone"&gt;&lt;H2&gt;Answer&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 11 Jul 2022 10:07:46 GMT</pubDate>
    <dc:creator>paco94</dc:creator>
    <dc:date>2022-07-11T10:07:46Z</dc:date>
    <item>
      <title>Advanced Load Balancer Macro API method</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/ta-p/2918161</link>
      <description>&lt;DIV class="lia-message-template-question-zone"&gt;&lt;H2&gt;Question&lt;/H2&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I want to provide to application responsibles an easy way to manage their Virtual Servers.&lt;BR /&gt;I have spent few hours to try virtualservice model of ALB macro API method but this latter is not well documented.&lt;BR /&gt;Until now, I have only configured successfully virtual servers and all its related components in the default cloud in the admin tenant.&lt;BR /&gt;Unfortunately, it is not my use case and I still receive the response below as soon I try to specify another cloud.&lt;BR /&gt;{&lt;BR /&gt;"error": "Error in creating VirtualService test1_vs: Error in creating VirtualService test1_vs: tier1_lr not configured"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I use AVI 21.1.4 version and here is the body I use.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"model_name": "VirtualService",&lt;BR /&gt;"data": {&lt;BR /&gt;"name": "test1_vs",&lt;BR /&gt;"vrf_context_ref":"/api/vrfcontext?name=sirveglabnsxt1t11",&lt;BR /&gt;"tenant_ref": "/api/tenant?name=admin",&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"se_group_ref": "/api/serviceenginegroup?name=lab_alw_seg1",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11",&lt;BR /&gt;"services": [&lt;BR /&gt;{&lt;BR /&gt;"port": 80&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"vsvip_ref_data": {&lt;BR /&gt;"name": "test1_vsvip",&lt;BR /&gt;"vip": [&lt;BR /&gt;{&lt;BR /&gt;"ip_address": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.222.162"&lt;BR /&gt;},&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"vrf_context_ref":"/api/vrfcontext?name=sirveglabnsxt1t11",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;"application_profile_ref": "/api/applicationprofile?name=http_application_profile",&lt;BR /&gt;"pool_ref_data": {&lt;BR /&gt;"name": "test1_pool",&lt;BR /&gt;"cloud_ref": "/api/cloud?name=POD_lab_alw",&lt;BR /&gt;"tier1_lr": "/infra/tier-1s/sirveglabnsxt1t11",&lt;BR /&gt;"servers": [&lt;BR /&gt;{&lt;BR /&gt;"ip": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.221.45"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"ip": {&lt;BR /&gt;"type": "V4",&lt;BR /&gt;"addr": "10.253.221.46"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"health_monitor_ref": "/api/healthmonitor?name=monitor_http_standard"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thank in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-template-answer-zone"&gt;&lt;H2&gt;Answer&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Jul 2022 10:07:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/ta-p/2918161</guid>
      <dc:creator>paco94</dc:creator>
      <dc:date>2022-07-11T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Load Balancer Macro API method</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/tac-p/2918185#M367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you can try to do:&lt;BR /&gt;Use web developer in your browser.(Network tab)&lt;BR /&gt;Create the VS by hand and when you press save, checkout the POST to /api/marco&lt;BR /&gt;From there you can reconstruct to use in your own API call.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 12:36:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/tac-p/2918185#M367</guid>
      <dc:creator>p0wertje</dc:creator>
      <dc:date>2022-07-11T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Load Balancer Macro API method</title>
      <link>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/tac-p/2918418#M368</link>
      <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/927260"&gt;@p0wertje&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this tips.&lt;BR /&gt;It helped me to spot the misplace of tier1_lr key in the vsvip part.&lt;/P&gt;&lt;P&gt;From now, I know how to set up a vs with all its elements (vsvip and pool).&lt;/P&gt;&lt;P&gt;So I have made a step beyond.&lt;/P&gt;&lt;P&gt;Next step, modifying this vs.&lt;/P&gt;&lt;P&gt;The short piece of available documentation says "Additionally, the same API (macro) can be used to modify any of the objects using PUT"&lt;/P&gt;&lt;P&gt;So I was hoping of a kind of declarative API but it seems not that simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 17:32:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-NSX-Documents/Advanced-Load-Balancer-Macro-API-method/tac-p/2918418#M368</guid>
      <dc:creator>paco94</dc:creator>
      <dc:date>2022-07-12T17:32:47Z</dc:date>
    </item>
  </channel>
</rss>

