CA Service Management

  • 1.  Get Time to Violation - SOAP

    Posted Jun 24, 2015 10:45 AM

    Hello Everyone,

     

    Anybody knows how to get the Time to Violation value using SOAP doSelect API?

     

    I tried to use mistime as attribute, but nothing is retrieved.

     

    Thanks a lot.

     

    Andrade.



  • 2.  Re: Get Time to Violation - SOAP
    Best Answer

    Posted Jun 24, 2015 11:23 AM

    The following query should help you:

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
      <soapenv:Header/>
      <soapenv:Body>
          <ser:doSelect>
            <sid>894355008</sid>
            <objectType>attached_sla</objectType>
            <whereClause>_mapped_cr = 'cr:400251'</whereClause>
            <maxRows>10</maxRows>
            <attributes>
                <!--1 or more repetitions:-->
                <string>id</string>
                <string>time_to_violation</string>
            </attributes>
          </ser:doSelect>
      </soapenv:Body>
    </soapenv:Envelope>
    


  • 3.  Re: Get Time to Violation - SOAP

    Posted Jun 24, 2015 12:20 PM

    Hello Gutis,

     

    It works! I'll use attached_sla instead of cr objectType.

     

    Thank you a lot.