GetMbUpdateResult GetMbUpdate(MbUpdateId tMbUpdate, GetMbUpdateArg tArg)
tMbUpdate. Moniker for working with the update.
tArg. Operation execution parameters.
The GetMbUpdate operation gets the information about update.
The operation enables getting information about update elements tree, various parameters specified for tree elements and the update itself and the information about update application process. To execute the operation, in the tMbUpdate field specify the update moniker, and in the tArg field specify parameters for getting information about update. The moniker can be obtained on executing the OpenMbUpdate operation.
The operation results in the requested information.
See below the example of getting information about update. The request contains the moniker for working with the update and the pattern specifying that it is required to get the whole information about update. The response contains the obtained information.
{
"GetMbUpdate" :
{
"tMbUpdate" :
{
"id" : "S1!M!S!MbUpd1"
},
"tArg" :
{
"pattern" :
{
"all" : "true"
}
}
}
}
{
"GetMbUpdateResult" :
{
"id" :
{
"id" : "S1!M!S!MbUpd1"
},
"meta" :
{
"rootFolder" :
{
"k" : "4294967295",
"index" : "-1",
"type" : "Folder",
"label" : "",
"condition" : "",
"enabled" : "1",
"folder" :
{
"childrenCount" : "1"
}
},
"properties" :
{
"its" : ""
},
"eventsNode" :
{
"k" : "2",
"index" : "0",
"type" : "Object",
"label" : "Update unit",
"condition" : "",
"parentNode" : "1",
"enabled" : "1",
"folder" :
{
"childrenCount" : "0"
},
"object" :
{
"object" :
{
"@ts" : "2020-04-14T10:19:08.502Z",
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "3",
"@hf" : "0",
"i" : "M_UPDATE",
"n" : "Update unit",
"k" : "198414",
"c" : "1537",
"p" : "198413",
"h" : "0",
"hasPrv" : "0",
"ic" : "0"
},
"isSaved" : "0",
"updatePart" : "Metadata",
"updateType" :
{
"it" :
[
"Bound",
"BindById"
]
},
"parent" : "9",
"includeChildrenDependencies" : "2",
"updateOrder" : "Default",
"includeData" : "0",
"alterType" : "Default",
"objectId" : "M_UPDATE",
"objectName" : "Update unit",
"objectOldKey" : "198414",
"constraint" : "None",
"boundType" : "ById",
"unboundType" : "Bound",
"forceUniqueId" : "0",
"forceKeepId" : "0",
"accessTokenOptions" : "Default",
"sdApplyLog" : "",
"version" : "3",
"originalMetabase" : ""
}
},
"reflectObjectsRights" :
{
"it" :
[
"Ask",
"AfterEach"
]
},
"applyOptions" :
{
"it" :
[
"SetCurrentStamp",
"AutoCheckConflicts"
]
},
"updateType" :
{
"it" :
[
"Bound",
"BindByKey"
]
},
"description" : "",
"constraint" : "None",
"boundType" : "ByKey",
"localCopy" : "0",
"useLocalVcsFiles" : "1",
"subjects" :
{
"its" : ""
},
"allowReplaceSD" : "0",
"mandatoryAccess" :
{
"isValid" : "1",
"isSimple" : "0"
},
"securityConflictsLog" : "",
"accessAllowed" : "Full",
"requireUserUpdateMessage" : "0",
"priorDataLinkDependentsClear" : "0",
"customProperties" :
{
"its" :
{
"it" :
[
{
"id" : "CREATEUSERNAME",
"name" : "ITEM",
"value" : "ADMIN"
},
{
"id" : "CREATEUSERSID",
"name" : "ITEM",
"value" : "PS-1-1"
},
{
"id" : "CREATEWORKSTATION",
"name" : "ITEM",
"value" : "FS\SEDUNOV"
},
{
"id" : "CREATEMETABASE",
"name" : "ITEM",
"value" : ""
},
{
"id" : "CREATEPLATFORMVERSION",
"name" : "ITEM",
"value" : "Preview 9.2.55459.459 Master x64"
},
{
"id" : "CREATETIMESTAMP",
"name" : "ITEM",
"value" : "2020-04-15T07:25:32.299Z"
}
]
}
},
"createUserName" : "ADMIN",
"createUserSID" : "PS-1-1",
"createWorkstation" : "FS\SEDUNOV",
"createTimestamp" : "2020-04-15T12:25:32.299",
"createMetabase" : "",
"createPlatformVersion" : "Preview 9.2.55459.459 Master x64",
"log" :
{
"updateUserName" : "",
"updateUserSid" : "",
"updateWorkstation" : "",
"updateStartTimestamp" : "1899-12-30T00:00:00.000",
"updateFinishTimestamp" : "1899-12-30T00:00:00.000",
"updateMetabase" : "",
"hasErrors" : "0",
"hasConflicts" : "0",
"hasOnResolve" : "0",
"isFinished" : "0",
"inProgress" : "0",
"hasErrorSkipped" : "0"
},
"execute" :
{
"resolveTimeout" : "600000",
"state" : "None"
}
}
}
}
public static GetMbUpdateResult GetUpdateInfo(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetMbUpdate()
{
tArg = new GetMbUpdateArg()
{
pattern = new MbUpdateMdPattern()
{
all = true
}
},
tMbUpdate = new MbUpdateId() { id = moniker }
};
//Get information about update
var result = somClient.GetMbUpdate(tGet);
return result;
}
See also: