Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
280 views

UCMDB Tip: Example of executeTopologyQueryByNameWithParameters web service query

Hello All,

 

We have got a recently published  article that provides an interesting example of executeTopologyQueryByNameWithParameters web service query with definitions:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:quer="http://schemas.hp.com/ucmdb/1/params/query"

xmlns:typ="http://schemas.hp.com/ucmdb/1/types"

xmlns:prop="http://schemas.hp.com/ucmdb/1/types/props">   

     <soapenv:Header/>   

     <soapenv:Body>      

         <quer:executeTopologyQueryByNameWithParameters>         

              <quer:cmdbContext>            

                   <typ:callerApplication>SOAPUI </typ:callerApplication>         

                </quer:cmdbContext>         

                <quer:queryName>view_test </quer:queryName>         

                <quer:parameterizedNodes>            

                    <typ:parameters>                            

                        <typ:strProps>                  

                            <typ:strProp>                     

                                <typ:name>description</typ:name>                                  

                                <typ:value>testing%</typ:value>                  

                             </typ:strProp>               

                         </typ:strProps>                         

                     </typ:parameters>            

                     <typ:nodeLabel>RunningSoftware</typ:nodeLabel>         

                </quer:parameterizedNodes>             

           </quer:executeTopologyQueryByNameWithParameters>   

      </soapenv:Body>

</soapenv:Envelope>

 

view_test - denotes the name of the parameterized query

description - the name of the parameter(it does not necessarily have to be the same as the attribute name)

testing% - will return all the CIs having a description attribute value starting with testing

RunningSoftware - The CIType display name on which we have added the parameter 

 

Please use this artilce for future reference http://support.openview.hp.com/selfsolve/document/KM00654392.

 

regards,

Irina

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
Labels (1)
Tags (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.