GetRdsDatabaseResult GetRdsDatabase(RdsDbId tRdsDb, GetRdsDatabaseArg tArg)
tRdsDb. Moniker of opened MDM repository instance.
tArg. Operation execution parameters.
The GetRdsDatabase operation gets MDM repository metadata.
To execute the operation, in the tRdsDb field specify MDM repository instance moniker, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained on executing the OpenRdsDatabase operation. The operation results in the requested metadata.
Below is the example of getting MDM repository metadata. The request contains moniker of opened MDM repository instance and the pattern specifying whether all metadata should be obtained. The response contains the obtained information.
{
"GetRdsDatabase" :
{
"tRdsDb" :
{
"id" : "S1!M!S!RD1"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}
{
"GetRdsDatabaseResult" :
{
"id" :
{
"id" : "S1!M!S!RD1"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "RDS_DATABASE",
"n" : "MDM repository",
"k" : "219759",
"c" : "4353",
"p" : "5610",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"db" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
}
}
}
public static GetRdsDatabaseResult GetRDSDBMetadata(RdsDbId moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
//Operation execution parameters
var tGet = new GetRdsDatabase()
{
tArg = new GetRdsDatabaseArg()
{
pattern = new RdsDatabaseMdPattern()
{
all = true
}
},
tRdsDb = moniker
};
// Get MDM repository metadata
var tResult = somClient.GetRdsDatabase(tGet);
return tResult;
}
See also: