RepoParamsResult GetRepoParams(MbId tMb, GetRepoParamsArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The GetRepoParams operation gets repository parameters.
The operation enables the user to get following parameters:
Global variables
Custom classes, events and methods
Default objects
Error and event handlers
Metadata caching settings.
To execute the operation, in the tMb field specify the repository connection moniker, and in the tArg.pattern field specify the pattern, according to which various parameters are obtained. The moniker can be obtained on executing the OpenMetabase operation. The operation results in the requested parameters.
The example of getting repository parameters. The request contains repository connection moniker and the pattern indicating whether it is necessary to get repository parameters. The response contains values of various parameters, except for the information about custom classes/events/methods.
{
"GetRepoParams" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}
{
"GetRepoParamsResult" :
{
"id" :
{
"id" : "S1!M"
},
"meta" :
{
"sharedParams" :
{
"IsShared" : "1",
"Url" : "http:\/\/v-shp-development.dev.fs.fsight.world",
"params" :
{
"it" :
{
"k" : "1",
"id" : "GLOBAL_INT",
"n" : "Constraint",
"vis" : "1",
"value" : "600",
"dt" : "2",
"binding" : "UI="IntegerEdit""
}
}
},
"defParams" :
{
"database" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"rdsDatabase" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "RDS",
"n" : "MDM repository",
"k" : "159",
"c" : "4353",
"p" : "51",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"modelSpace" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "6",
"@hf" : "0",
"i" : "MS_DEFAULT",
"n" : "Modeling container (default)",
"k" : "20639",
"c" : "5121",
"p" : "14212",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"topobase" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "OBJ36625",
"n" : "Russian Federation_FO_en.svg.tbs",
"k" : "36625",
"c" : "3330",
"p" : "36624",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"dimensionImageList" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "OBJ1532",
"n" : "Element icons",
"k" : "1532",
"c" : "3329",
"p" : "51",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"emptySelectionAsFull" : "0",
"rdsElementCard" : "PropertyList",
"defLocale" : "1049"
},
"errorParams" :
{
"mailAddress" : "suppport@fsight.ru",
"handler" : ""
},
"usersMetaData" : "",
"eventHandling" :
{
"eventHandlers" : "0",
"updateHandler" : "OBJ71270.UpdateHandlerClass"
},
"cacheParams" :
{
"autoClear" : "1",
"threshold" : "70"
}
}
}
}
public static RepoParamsResult GetMBParameters(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetRepoParams()
{
tArg = new GetRepoParamsArg()
{
pattern = new RepoParamsMdPattern()
{
all = true
}
},
tMb = new MbId() { id = moniker }
};
//Get repository parameters
var result = somClient.GetRepoParams(tGet);
return result;
}
See also: