MbDefsResult SetMbDefs(SetMbDefsArg tArg)
tArg. Operation execution parameters.
The SetMbDefs operation sets the list of repositories descriptions created on BI server.
The operation enables creating new or changing existing repository descriptions.
To execute the operation, in the tArg.pattern field set the pattern that will be used to change the list of descriptions, and in the tArg.meta field specify updated parameters of repository descriptions. If existing descriptions are changed, search and comparison of descriptions on BI server will be executed by internal keys that are set in the k field of each description.
The operation results in the updated list of repository descriptions, if the tArg.metaGet field was determined.
See below the example of changing repository description. Updated description and executed operation are sent in the query. No additional information is returned in the response.
{
"SetMbDefs" :
{
"tArg" :
{
"pattern" :
{
"mbDefs" : "Change"
},
"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" : "false",
"deferredLoading" : "false",
"caseSensitive" : "false",
"fileGroup" : "PRIMARY"
}
}
]
}
}
}
}
}
{
"SetMbDefsResult" : ""
}
public static MbDefsResult ChangeDefinition(MbDef definition)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetMbDefs()
{
tArg = new SetMbDefsArg()
{
pattern = new MbDefsPattern()
{
mbDefs = ListOperation.Change
},
meta = new MbDefs()
{
its = new MbDef[]
{
definition
}
}
}
};
// Change repository description
var result = somClient.SetMbDefs(tSet);
return result;
}
See also: