Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

xml in vCO

$
0
0

Hi,

  I need help on how to deal with xml in vCO.

 

How can I get the 'name' and corresponding 'objectId' of each 'virtualWire' from the xml below?

 

    <?xml version="1.0" encoding="UTF-8"?>

    <virtualWires>

    <dataPage>

      <pagingInfo>

        <pageSize>20</pageSize>

        <startIndex>0</startIndex>

        <totalCount>27</totalCount>

        <sortOrderAscending>true</sortOrderAscending>

      </pagingInfo>

      <virtualWire>

        <objectId>virtualwire-5</objectId>

        <objectTypeName>VirtualWire</objectTypeName>

        <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

        <revision>2</revision>

        <type>

          <typeName>VirtualWire</typeName>

        </type>

        <name>EG01</name>

        <description>

        </description>

        <clientHandle>

        </clientHandle>

        <extendedAttributes/>

        <tenantId>virtual wire tenant</tenantId>

        <vdnScopeId>vdnscope-2</vdnScopeId>

        <vdsContextWithBacking>

          <switch>

            <objectId>dvs-473</objectId>

            <objectTypeName>VmwareDistributedVirtualSwitch</objectTypeName>

            <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

            <revision>166</revision>

            <type>

              <typeName>VmwareDistributedVirtualSwitch</typeName>

            </type>

            <name>vdsEDGE</name>

            <scope>

              <id>group-n464</id>

              <objectTypeName>Folder</objectTypeName>

              <name>EDGE</name>

            </scope>

            <clientHandle>

            </clientHandle>

            <extendedAttributes/>

          </switch>

          <mtu>9000</mtu>

          <promiscuousMode>false</promiscuousMode>

          <backingType>portgroup</backingType>

          <backingValue>dvportgroup-4838</backingValue>

        </vdsContextWithBacking>

        <vdsContextWithBacking>

          <switch>

            <objectId>dvs-476</objectId>

            <objectTypeName>VmwareDistributedVirtualSwitch</objectTypeName>

            <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

            <revision>169</revision>

            <type>

              <typeName>VmwareDistributedVirtualSwitch</typeName>

            </type>

            <name>vdsNUA</name>

            <scope>

              <id>group-n466</id>

              <objectTypeName>Folder</objectTypeName>

              <name>NUA</name>

            </scope>

            <clientHandle>

            </clientHandle>

            <extendedAttributes/>

          </switch>

          <mtu>9000</mtu>

          <promiscuousMode>false</promiscuousMode>

          <backingType>portgroup</backingType>

          <backingValue>dvportgroup-4837</backingValue>

        </vdsContextWithBacking>

        <vdnId>5002</vdnId>

        <multicastAddr>239.196.0.101</multicastAddr>

        <guestVlanAllowed>false</guestVlanAllowed>

        <controlPlaneMode>MULTICAST_MODE</controlPlaneMode>

      </virtualWire>

      <virtualWire>

        <objectId>virtualwire-6</objectId>

        <objectTypeName>VirtualWire</objectTypeName>

        <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

        <revision>2</revision>

        <type>

          <typeName>VirtualWire</typeName>

        </type>

        <name>EG02</name>

        <description>

        </description>

        <clientHandle>

        </clientHandle>

        <extendedAttributes/>

        <tenantId>e7aee317-824f-4277-b323-7751974da420</tenantId>

        <vdnScopeId>vdnscope-2</vdnScopeId>

        <vdsContextWithBacking>

          <switch>

            <objectId>dvs-473</objectId>

            <objectTypeName>VmwareDistributedVirtualSwitch</objectTypeName>

            <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

            <revision>166</revision>

            <type>

              <typeName>VmwareDistributedVirtualSwitch</typeName>

            </type>

            <name>vdsEDGE</name>

            <scope>

              <id>group-n464</id>

              <objectTypeName>Folder</objectTypeName>

              <name>EDGE</name>

            </scope>

            <clientHandle>

            </clientHandle>

            <extendedAttributes/>

          </switch>

          <mtu>9000</mtu>

          <promiscuousMode>false</promiscuousMode>

          <backingType>portgroup</backingType>

          <backingValue>dvportgroup-5202</backingValue>

        </vdsContextWithBacking>

        <vdsContextWithBacking>

          <switch>

            <objectId>dvs-476</objectId>

            <objectTypeName>VmwareDistributedVirtualSwitch</objectTypeName>

            <vsmUuid>420B229E-9DC2-8FE9-8AA1-DE7ADCCFB0</vsmUuid>

            <revision>169</revision>

            <type>

              <typeName>VmwareDistributedVirtualSwitch</typeName>

            </type>

            <name>vdsNUA</name>

            <scope>

              <id>group-n466</id>

              <objectTypeName>Folder</objectTypeName>

              <name>NUA</name>

            </scope>

            <clientHandle>

            </clientHandle>

            <extendedAttributes/>

          </switch>

          <mtu>9000</mtu>

          <promiscuousMode>false</promiscuousMode>

          <backingType>portgroup</backingType>

          <backingValue>dvportgroup-5201</backingValue>

        </vdsContextWithBacking>

        <vdnId>5003</vdnId>

        <multicastAddr>239.196.0.100</multicastAddr>

        <guestVlanAllowed>false</guestVlanAllowed>

        <controlPlaneMode>MULTICAST_MODE</controlPlaneMode>

      </virtualWire>

    </dataPage>

    </virtualWires>

 

Thanks


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>