Layer7 API Management

Expand all | Collapse all

CLUSTER_PROPERTY updation through RESTMAN is not working

Jump to Best Answer
  • 1.  CLUSTER_PROPERTY updation through RESTMAN is not working

    Posted 03-19-2020 01:15 AM
    Hi,

    I am trying to update cluster-wide property from policy using rest man URL. It is giving below error.

    "Error processing management request: Exception encountered processing a rest message: javax.ws.rs.ProcessingException: Resource Java method invocation error. Caused by: argument type mismatch".

    URL:  https://localhost:8443/restman/1.0/clusterProperties/74be0227b74977421e03548edc253231
    Content-Type: application/xml
    Payload:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <l7:Item xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Name>CLUSTER_PROPERTY Template</l7:Name>
    <l7:Type>CLUSTER_PROPERTY</l7:Type>
    <l7:TimeStamp>2014-04-24T16:44:56.440-07:00</l7:TimeStamp>
    <l7:Link rel="self" uri="https://umse02lx0592.dev.sdt.ericsson.se:8443/restman/1.0/clusterProperties/template"/>
    <l7:Link rel="list" uri="https://umse02lx0592.dev.sdt.ericsson.se:8443/restman/1.0/clusterProperties"/>
    <l7:Resource>
    <l7:ClusterProperty>
    <l7:Name>oneFM.resyncStatusFlag</l7:Name>
    <l7:Value>InProgress</l7:Value>
    </l7:ClusterProperty>
    </l7:Resource>
    </l7:Item>

    Can you please suggest me how can I resolve this issue.

    Thanks in Advance.



    ------------------------------
    Regards,
    Saidawali.
    ------------------------------


  • 2.  RE: CLUSTER_PROPERTY updation through RESTMAN is not working
    Best Answer

    Posted 03-20-2020 03:41 AM
    Hello Saidawali,

    Can you try this?

    URL:  https://localhost:8443/restman/1.0/clusterProperties/74be0227b74977421e03548edc253231
    Content-Type: application/xml
    Method : PUT
    Payload:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <l7:ClusterProperty xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Name>oneFM.resyncStatusFlag</l7:Name>
    <l7:Value>InProgress</l7:Value>
    </l7:ClusterProperty>


  • 3.  RE: CLUSTER_PROPERTY updation through RESTMAN is not working

    Posted 03-20-2020 07:11 AM
    Thanks a lot Adarsh. It is working fine for me.