RepoParamsResult GetRepoParams(MbId tMb, GetRepoParamsArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The GetRepoParams operation gets repository parameters.
The operation gets the 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" : "NCNODCBKFLJMFOAEBOCGFBINJBKLJKMEHIPDDDDKLEKKNJDH!M"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}
{
"GetRepoParamsResult" :
{
"id" :
{
"id" : "NCNODCBKFLJMFOAEBOCGFBINJBKLJKMEHIPDDDDKLEKKNJDH!M"
},
"meta" :
{
"innerParams" :
{
"params" :
{
"it" :
[
{
"k" : "4294967295",
"id" : "METABASE_SERVER",
"n" : "METABASE_SERVER",
"vis" : "1",
"value" : "v-nrspo-mssql.dev.fs.fsight.world",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_DATABASE",
"n" : "METABASE_DATABASE",
"vis" : "1",
"value" : "Warehouse",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_FILEGROUP",
"n" : "METABASE_FILEGROUP",
"vis" : "1",
"value" : "PRIMARY",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_CASESENSITIVE",
"n" : "METABASE_CASESENSITIVE",
"vis" : "1",
"value" : "false",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_DATABASE_ONLY",
"n" : "METABASE_DATABASE_ONLY",
"vis" : "1",
"value" : "Warehouse",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_SCHEMA_ONLY",
"n" : "METABASE_SCHEMA_ONLY",
"vis" : "1",
"value" : "dbo",
"dt" : "1"
},
{
"k" : "4294967295",
"id" : "METABASE_ODBCPARAMS",
"n" : "METABASE_ODBCPARAMS",
"vis" : "1",
"dt" : "1"
}
]
}
},
"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" : "2",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "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",
"trackElementDependents" : "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",
"trackElementDependents" : "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",
"trackElementDependents" : "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",
"trackElementDependents" : "0"
},
"emptySelectionAsFull" : "0",
"rdsElementCard" : "PropertyList",
"selColor" : "#3258C9",
"selBorderColor" : "#6B8E23",
"selTransparent" : "252",
"defLocale" : "1049"
},
"errorParams" :
{
"mailAddress" : "suppport@fsight.ru",
"handler" : ""
},
"usersMetaData" : "",
"eventHandling" :
{
"eventHandlers" : "1",
"expressReports" :
{
"enabled" : "1",
"eventClass" : "EventsClass",
"eventObject" : "EXP_EVENT"
},
"updateHandler" : ""
},
"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: