GetSegContResult GetSegCont(SegContId tSegCont, GetSegContArg tArg)
tSegCont. Segment container instance moniker.
tArg. Operation execution parameters.
The GetSegCont operation gets segment container metadata.
To execute the operation, in the tSegCont field specify moniker of segment container instance, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained after executing the OpenSegCont operation.
The operation results in the obtained metadata.
Below is the example of getting segment container metadata. The request contains moniker of opened instance of segment container. The response contains the obtained metadata.
{
"GetSegCont" :
{
"tSegCont" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"database" : "true",
"segments" : "Get"
}
}
}
}
{
"GetSegContResult" :
{
"id" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "27",
"@hf" : "0",
"i" : "SEG_CONTAINER",
"n" : "Cube segment container",
"k" : "317162",
"c" : "1296",
"p" : "317056",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"data" :
{
"database" :
{
"id" : "DB",
"k" : "56",
"n" : "Database",
"classId" : "513"
},
"segments" :
{
"its" :
{
"it" :
[
{
"id" : "OBJ317192",
"k" : "317192",
"n" : "Cube segment",
"active" : "0"
},
{
"id" : "OBJ317197",
"k" : "317197",
"n" : "Cube segment",
"active" : "1"
}
]
}
}
}
}
}
}
public static GetSegContResult GetSegCont(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSegCont()
{
tArg = new GetSegContArg()
{
pattern = new SegContMdPattern()
{
database = true,
segments = ListOperation.Get
}
},
tSegCont = new SegContId() { id = moniker }
};
// Get information about segment container
var result = somClient.GetSegCont(tGet);
return result;
}
See also: