DX NetOps

Expand all | Collapse all

Get value of attribute by Restful

  • 1.  Get value of attribute by Restful

    Posted 03-19-2019 11:37 PM

    Hello,

    In OneClick I see some tables in "Cisco Enviroment Monitor Information".

    How I can export data of this table by Restful (or mayby Corba),

    For example, value of temperature and Fan status.



  • 2.  Re: Get value of attribute by Restful

    Posted 03-20-2019 07:51 AM

    You could use the XML that we ship as an example and edit from there (choose attribute IDs).

     

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

    <!--

     

     

       CA Technologies, Inc.

       One CA Plaza

       Islandia, NY 11749 USA

     

       Copyright (c) 2012 CA Technologies, Inc.

       All rights reserved.

     

       IN NO EVENT SHALL CA TECHNOLOGIES INCORPORATED BE LIABLE FOR

       ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES

       WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT

       OF OR RELATED TO THIS SOFTWARE, EVEN IF CA TECHNOLOGIES INCORPORATED

       HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE POSSIBILITY OF

       SUCH DAMAGES.

     

     

    -->

     

    <rs:model-request throttlesize="5"

      xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">

     

        <rs:target-models>

          <rs:models-search>

            <rs:search-criteria

                 xmlns="http://www.ca.com/spectrum/restful/schema/filter">

              <filtered-models>

                <is-derived-from>

                  <attribute id="AttributeID.MTYPE_HANDLE">

                    <value>0x21000c</value> <!-- RTR_Cisco -->

                  </attribute>

                </is-derived-from>

              </filtered-models>

            </rs:search-criteria>

          </rs:models-search>

        </rs:target-models>

     

        <rs:requested-attribute id="0x1006e" />

        <rs:requested-attribute id="0x10000" />

        <rs:requested-attribute id="0x10032" />

        <rs:requested-attribute id="0x12de2" />

     

    </rs:model-request>



  • 3.  Re: Get value of attribute by Restful

    Posted 03-21-2019 02:44 AM

    Thank you, Matthew!