Previous Topic: Sequence of Calls

Next Topic: Import Realm Objects

Export Realm Objects

Some points to note about the exporting realm objects:

Example:

use Netegrity::PolicyMgtAPI;

$policyapi = Netegrity::PolicyMgtAPI‑>New();
$session = $policyapi‑>CreateSession("adminid", "adminpwd");
$datamgr=$session‑>CreateDataManager("Data.smdif","NorthEnv.cfg",1);
die "FATAL: Data manager creation failed.\n" unless($datamgr!=undef);

print "\nData manager creation was successful.\n";
$domain = $session‑>GetDomain("Acme North Domain");
@realms=$domain‑>GetAllRealms();
foreach $realm(@realms) {
   if($realm‑>Name ne "HR") {
      $result=$datamgr‑>Export($realm);
      print "Export of " . $realm‑>Name(). " realm.  Status: " .
                                                   $result . "\n";
   }
}


Copyright © 2010 CA. All rights reserved. Email CA about this topic