MbDefsResult GetMbDefs(GetMbDefsArg tArg)
tArg. Operation execution parameters.
The GetMbDefs operation gets the list of repositories descriptions created on BI server.
The operations enables getting the list of repositories descriptions to which the connection will be available. To execute the operation, in the tArg.pattern field set the pattern that will be used to get descriptions list.
The operation results in the list of repositories descriptions. Use the OpenMetabase operation for repository connection.
See below the example of getting repository description. The description identifier is sent in the query and all settings specified for repository description will be received in the response.
{
"GetMbDefs" :
{
"tArg" :
{
"pattern" :
{
"mbDefs" : "Get",
"logonData" : "true",
"filter" :
{
"id" : "PPREPOSITORY"
}
}
}
}
}
{
"GetMbDefsResult" :
{
"meta" :
{
"its" :
{
"it" :
[
{
"id" : "PPREPOSITORY",
"n" : "Warehouse",
"k" : "4294967290",
"scope" : "LocalMachine",
"logonData" :
{
"driver" : "MSSQL2012",
"server" : "v-nrspo-mssql.dev.fs.fsight.world",
"database" : "p7repository",
"schema" : "dbo",
"unicode" : "1",
"authentication" : "Password",
"locale" : "65536",
"debugMode" : "0",
"deferredLoading" : "0",
"caseSensitive" : "0",
"fileGroup" : "PRIMARY"
}
}
]
}
}
}
}
public static MbDefsResult GetDefinition(string defId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetMbDefs()
{
tArg = new GetMbDefsArg()
{
pattern = new MbDefsPattern()
{
mbDefs = ListOperation.Get,
logonData = true,
filter = new MbDefsFilter()
{
id = defId
}
}
}
};
// Get information about repository description
var result = somClient.GetMbDefs(tGet);
return result;
}
See also: