Layer7 Access Management

Expand all | Collapse all

Creating Agent object using SSO Rest API

Jump to Best Answer
  • 1.  Creating Agent object using SSO Rest API

    Posted 10-03-2017 08:24 PM

    I want to Create Agent object using REST API. How to define “id” (Xid) , “href” links in the POST request?

    Are these 2 parameters mandatory as part of Agent Creation request (or) is it something that is auto generated by policy server during the creation ?  

     

    {
    "Name": "test-agent",
    "Desc": "test-agent",
    "AgentTypeLink": {
    "id": "",
    "path": "/SmAgentTypes/Web+Agent",
    "href": "",
    "desc": "SiteMinder Web Agent"
    }
    }


  • 2.  Re: Creating Agent object using SSO Rest API

    Posted 10-03-2017 09:30 PM

    Makesh

     

    When creating the Agent object only TWO fields are mandatory (Name and AgentTypeLink).

     

    The remaining attributes get created once the WebAgent object is created on the Policy Store.

     

     

    {
      "Name": "testingrestagent",
      "Desc": "testingrestagent",
      "AgentTypeLink": "CA.SM::AgentType@10-8d78bb96-ae15-11d1-9cdd-006008aac24b"
    }

     

     

    Reference

     

     

    Sample Request to Create Agent Object, with only Name / Desc / AgentTypeLink

     

     

     

    Listing the Created Agent


  • 3.  Re: Creating Agent object using SSO Rest API
    Best Answer

    Posted 10-04-2017 01:48 PM

    There are couple of ways to do this.


    Please refer following thread for sample:


    https://communities.ca.com/thread/241783081-creating-policy-objects-using-swagger-rest-api