AnsweredAssumed Answered

Creating policy objects using Swagger Rest API

Question asked by Richard.Leto on Aug 27, 2017
Latest reply on Aug 28, 2017 by Ujwol Shrestha

Hi All,

 

I am trying to explore the options for creating agent and other objects using Swagger Rest API for R12.7, I am getting error I think I am doing something incorrect:

 

I tried to create an Agent, using 

 

POST /ca/api/sso/services/policy/v1/SmAgents

 

 

{
"Name": "test-agent",
"Desc": "testagent",
"AgentTypeLink": {
"id": "string",
"path": "/SmAgent4xs/test-agent",
"href": "string",
"desc": "string"
},
"RealmHintAttrId": 0,
"type": "string",
"id": "string"
}

 

I got error:

"message": "Invalid class name: string", "code": 812

 

Please suggest correct Syntax for creating agents, I would like to create some more objects using API.

 

Thank you

Outcomes