GetSegCont

Syntax

GetSegContResult GetSegCont(SegContId tSegCont, GetSegContArg tArg)

Parameters

tSegCont. Segment container instance moniker.

tArg. Operation execution parameters.

Description

The GetSegCont operation gets segment container metadata.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSegCont xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSegCont xmlns="">
  <id>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG</id>
  </tSegCont>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <database>true</database>
  <segments>Get</segments>
  </pattern>
  </tArg>
  </GetSegCont>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSegContResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc ds="" isShortcut="0" isLink="0" ver="27" hf="0">
  <i>SEG_CONTAINER</i>
  <n>Cube segment container</n>
  <k>317162</k>
  <c>1296</c>
  <p>317056</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
<data>
<database>
  <id>DB</id>
  <k>56</k>
  <n>Database</n>
  <classId>513</classId>
  </database>
<segments>
<its>
<it>
  <id>OBJ317192</id>
  <k>317192</k>
  <n>Cube segment</n>
  <active>0</active>
  </it>
<it>
  <id>OBJ317197</id>
  <k>317197</k>
  <n>Cube segment</n>
  <active>1</active>
  </it>
  </its>
  </segments>
  </data>
  </meta>
  </GetSegContResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetSegCont" :
{
"tSegCont" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNIKPLJBOCLDPFOAEJGOHDKFEFEEPOCLEFIAOPAACCEOBKNOG"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"database" : "true",
"segments" : "Get"
}
}
}
}

JSON response:

{
"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:

Working with Cubes