CA Single Sign-On 12.7 provides the following new Policy Object REST APIs:
Administrative Token API – Obtain a JWT token that is required to access the Policy Data API.
Policy Data API – Create, read, update, and delete objects (including federation entities and partnerships, and certificate services) in the policy store.
In this tutorial I will demonstrate how to utilize the REST API for Policy Export & Import to perform a granular export of single Domain and its related objects.
We will use the embedded REST API client built using Swagger framework to perform the REST operations.
Policy Object REST APIs - CA Single Sign-On - 12.7 - CA Technologies Documentation
Hi Makesh,
1. You can't export object without its dependent object.
2. Yes , you can export multiple objects.
e.g.
{ "mainObjectsMethod":"ADD", "closureObjectsMethod":"ADD", "passPhrase":"PassPhrase", "suggestedFileName":"output.xml", "objects":[ {"path":"SmDomains/FedBackChannelBasicDomain"}, {"path":"smagenttypes/Web Agent"} ]}
{
"mainObjectsMethod":"ADD",
"closureObjectsMethod":"ADD",
"passPhrase":"PassPhrase",
"suggestedFileName":"output.xml",
"objects":[
{"path":"SmDomains/FedBackChannelBasicDomain"},
{"path":"smagenttypes/Web Agent"}
]
}
Hi Ujwol,
Really nice video to get basic understanding of Policy API.
Couple of questions:
1. In my use-case i would like to use my existing AuthScheme, Agent Group on Target env. i want to export just Domain objects alone from Source env without dependent objects, is it possible to do that ? Does the export method "Overlay" will help in this scenario?
2. Does the Rest API allow export multiple domain objects in a single XML output (may be comma separated domain name in export parameters like the below)?
“path” : “/SmDomains/testdomain1, /smDomains/testdomain2”