GetSegResult GetSeg(SegId tSeg, GetSegArg tArg)
tSeg. Cube segment instance moniker.
tArg. Operation execution parameters.
The GetSeg operation gets cube segment metadata.
To execute the operation, in the tSeg field specify segment instance moniker, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained after executing the OpenSeg operation.
The operation results in the obtained metadata.
Below is the example of getting cube segment metadata. The request contains moniker of opened segment instance. The response contains the obtained metadata.
{
"GetSeg" :
{
"tSeg" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"selections" : "Get",
"active" : "true"
}
}
}
}
{
"GetSegResult" :
{
"id" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "OBJ317192",
"n" : "Cube segment",
"k" : "317192",
"c" : "1295",
"p" : "317162",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"data" :
{
"active" : "0",
"selections" :
{
"its" :
{
"it" :
[
{
"id" : "FACTS",
"k" : "317074",
"n" : "Facts",
"classId" : "1028",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEEHNKPOJODKGKIEEEOJCFOCLHCMEIJKDL",
"included" : "1"
},
{
"id" : "OBJ317067",
"k" : "317067",
"n" : "Dictionary 1",
"classId" : "3076",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAENOJILFIHBELKNFAEALMNNFAJOOJOFNEJ",
"included" : "1"
},
{
"id" : "OBJ317069",
"k" : "317069",
"n" : "Dictionary 2",
"classId" : "3076",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEOGICMPLDDFJOANAEGIJNBDLMDNMMCAML",
"included" : "1"
},
{
"id" : "OBJ317071",
"k" : "317071",
"n" : "Calendar",
"classId" : "1026",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEICINIJOAOBONHJPELKFACMADOKJEDOHK",
"included" : "1"
}
]
}
}
}
}
}
}
public static GetSegResult GetSeg(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSeg()
{
tArg = new GetSegArg()
{
pattern = new SegMdPattern()
{
active = true,
selections = ListOperation.Get
}
},
tSeg = new SegId() { id = moniker }
};
// Get information about cube segment
var result = somClient.GetSeg(tGet);
return result;
}
See also: