Layer7 API Management

  • 1.  Create User using REST management API

    Posted Apr 16, 2019 05:54 AM

    sample body which needs to be passed for creating user, as on documentation its just mentioned 

    Elementl7:User

    whats the content of <l7:user> Element ?



  • 2.  Re: Create User using REST management API

    Broadcom Employee
    Posted Apr 16, 2019 06:56 PM

    a sample payload to create user via /restman

    ###create user
    POST https://<your gateway>:9443/restman/1.0/users
    Content-Type:application/xml
    body:
    <l7:User providerId="0000000000000000fffffffffffffffe" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Login>mark</l7:Login>
    <l7:Password>7layer</l7:Password>
    <l7:FirstName/>
    <l7:LastName/>
    <l7:Email/>
    <l7:Properties>
    <l7:Property key="accountExpiration">
    <l7:LongValue>-1</l7:LongValue>
    </l7:Property>
    <l7:Property key="enabled">
    <l7:BooleanValue>true</l7:BooleanValue>
    </l7:Property>
    <l7:Property key="name">
    <l7:StringValue>mark</l7:StringValue>
    </l7:Property>
    </l7:Properties>
    </l7:User>