POST api/Wrapper

API Endpoint that will log Wrapper Logs to the ECNWinMgt.WrapperLog table. Parameters must be provided in the body of the web request and in JSON format.

Request Information

URI Parameters

None.

Body Parameters

WrapperRequest
NameDescriptionTypeAdditional information
EventId

Id of the event that is being logged. Possible values: 1 (Program Started), 2 (Program Succeeded), 3 (Program Failed), 4 (Deploy Started), 6 (Program has Invalid Status)

integer

None.

ServiceTag

string

None.

Package

string

None.

Version

string

None.

Program

string

None.

ProgramAction

string

None.

ExitCode

string

None.

BytesUsed

integer

None.

RunTime

string

None.

OSVersion

string

None.

IP

string

None.

UserLoggedIn

string

None.

WrapperVersion

string

None.

DistributionPoint

string

None.

CreatedDate

date

None.

MachineName

string

None.

Token

globally unique identifier

None.

MachineDomain

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "ServiceTag": "sample string 2",
  "Package": "sample string 3",
  "Version": "sample string 4",
  "Program": "sample string 5",
  "ProgramAction": "sample string 6",
  "ExitCode": "sample string 7",
  "BytesUsed": 8,
  "RunTime": "sample string 9",
  "OSVersion": "sample string 10",
  "IP": "sample string 11",
  "UserLoggedIn": "sample string 12",
  "WrapperVersion": "sample string 13",
  "DistributionPoint": "sample string 14",
  "CreatedDate": "2025-04-04T03:08:38.7479316-04:00",
  "MachineName": "sample string 16",
  "Token": "9577d1da-92fc-4706-84e4-c95e64ac895b",
  "MachineDomain": "sample string 18"
}

application/xml, text/xml

Sample:
<WrapperRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinAPI.Requests">
  <MachineDomain>sample string 18</MachineDomain>
  <Token>9577d1da-92fc-4706-84e4-c95e64ac895b</Token>
  <BytesUsed>8</BytesUsed>
  <CreatedDate>2025-04-04T03:08:38.7479316-04:00</CreatedDate>
  <DistributionPoint>sample string 14</DistributionPoint>
  <EventId>1</EventId>
  <ExitCode>sample string 7</ExitCode>
  <IP>sample string 11</IP>
  <MachineName>sample string 16</MachineName>
  <OSVersion>sample string 10</OSVersion>
  <Package>sample string 3</Package>
  <Program>sample string 5</Program>
  <ProgramAction>sample string 6</ProgramAction>
  <RunTime>sample string 9</RunTime>
  <ServiceTag>sample string 2</ServiceTag>
  <UserLoggedIn>sample string 12</UserLoggedIn>
  <Version>sample string 4</Version>
  <WrapperVersion>sample string 13</WrapperVersion>
</WrapperRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>