MetabaseLinkResult GetMetabaseLink(OdId tOb, GetMetabaseLinkArg tArg)
tOb. Repository connection moniker.
tArg. Operation execution parameters.
The GetMetabaseLink operation gets repository connection metadata.
The operation enables the user to get information about repository connection settings. To execute the operation, in the tOb field specify moniker of the repository object that is repository connection, and in the tArg field specify opening parameters. The moniker can be obtained on executing the OpenMetabaseLink operation. The operation results in the repository connection settings used by the connection.
The example of getting information about the connection parameters that are determined for repository connection. The request contains moniker of opened repository connection instance that determines whether it is necessary to get this information. The response contains requested information.
{
"GetMetabaseLink" :
{
"tOb" :
{
"id" : "S1!M!S!ML7"
},
"tArg" :
{
"metaGet" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}
{
"GetMetabaseLinkResult" :
{
"id" :
{
"id" : "S1!M!S!ML7"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "6",
"@hf" : "0",
"i" : "MB_LINK",
"n" : "Repository connection",
"k" : "174241",
"c" : "8193",
"p" : "9050",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"metabaseLinkParams" :
{
"user" : "",
"pass" : "",
"logonDataExt" :
{
"driver" : "MSSQL2008",
"server" : "%METABASE_SERVER%",
"database" : "PPrepository_data",
"schema" : "dbo",
"unicode" : "0",
"authentication" : "Password",
"caseSensitive" : "0"
},
"useUnicode" : "0",
"loginPrompt" : "1",
"useMetabaseCredentials" : "0",
"useDeferredLoading" : "0"
}
}
}
}
public static MetabaseLinkResult GetMetabaseLinkMetadata(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetMetabaseLink()
{
tArg = new GetMetabaseLinkArg()
{
metaGet = new MetabaseLinkMdPattern()
{
all = true
}
},
tOb = new OdId() { id = moniker }
};
//Get metadata
var tResult = somClient.GetMetabaseLink(tGet);
return tResult;
}
See also: