BazeField Services

<back to all web services

ActiveAllocationsGetRequest

Allocations API
Requires Authentication
The following routes are available for this service:
GET, POST/api/objects/allocations/activeGets active allocations for objects.
ActiveAllocationsGetRequest Parameters:
NameParameterData TypeRequiredDescription
ObjectIdsbodyList<string>No
AllocationTypesbodyList<string>No
CategoriesbodyList<string>No
ActiveAllocationsGetResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformDictionary<string, ObjectAllocations>No
ObjectAllocations Parameters:
NameParameterData TypeRequiredDescription
AllocationsformList<ObjectAllocation>No
ObjectAllocation Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformintNo
ObjectIdformlong?No
SourceIdformint?No
TriggeredByAlarmformObjectAlarmLogEntryNo
CategoryformAllocationCategoryNo
CategoriesformDictionary<string, AllocationCategory>No
StartformDateTimeNo
EndformDateTime?No
LastModifiedformDateTimeNo
ResponseTimeformDateTime?No
LostProductionformdouble?No
LostMoneyformdouble?No
FinishedformboolNo
ManualformboolNo
OverriddenformboolNo
ReallocatedformboolNo
UncertainformboolNo
Suspectformbool?No
TriggerformstringNo
ObjectAlarmLogEntry Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformint?No
ItemIdformint?No
StartTimeformDateTimeNo
StopTimeformDateTime?No
AckTimeformDateTime?No
UncertainStopTimeformDateTime?No
GuidformGuidNo
RealarmformboolNo
SourceIdformint?No
AlarmCodeformAlarmCodeNo
AlarmTypeformAlarmTypeNo
AlarmformAlarmNo
ModifiedDateformDateTimeNo
VendorLogIdformint?No
ObjectIdformlong?No
AlarmDescriptionformstringNo
AlarmCode Parameters:
NameParameterData TypeRequiredDescription
EventNumberformintNo
Parameter1formint?No
VendorEventTypeformstringNo
AlarmType Enum:
NameValue
Warning0
Alarm1
Status2
Auto4
ConfigPending8
Alarm Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TypeformAlarmTypeNo
CodeformAlarmCodeNo
VendorAlarmIdformint?No
NameformstringNo
BrakePrgformintNo
DescriptionformstringNo
IsOkAlarmformboolNo
IsAvailableOnAckformbool?No
ClearByOKAlarmformboolNo
CanTriggerAllocationformboolNo
StatusIndicatorformstringNo
RemarksformstringNo
AllocationCategory Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
ColorformstringNo
UncategorizedformboolNo
AvailableformboolNo
TypeIdformintNo
GroupformstringNo
SortIndexformbyteNo
PriorityformintNo
EnabledformboolNo
PerformanceformbyteNo
ExcludedformintNo
ParentCategoryIdformint?No
ParentCategoryNameformstringNo
AttributesformDictionary<string, string>No
AllocationTypeformAllocationTypeNo
AllocationType Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
AcronymformstringNo
VersionformstringNo
DescriptionformstringNo
FactoryDefaultUrlformstringNo
SortOrderformintNo
LinkedTypeIdformint?No
SubTypeformbool?No
GroupNameformstringNo
DefaultVisibleformboolNo
DomainIdformint?No
DisabledformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/objects/allocations/active HTTP/1.1 
Host: mdn.bazefield.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"objectIds":["String"],"allocationTypes":["String"],"categories":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"result":{"String":{"allocations":[{"id":0,"turbineId":0,"objectId":0,"sourceId":0,"triggeredByAlarm":{"id":0,"turbineId":0,"itemId":0,"startTime":"0001-01-01T00:00:00.0000000","stopTime":"0001-01-01T00:00:00.0000000","ackTime":"0001-01-01T00:00:00.0000000","uncertainStopTime":"0001-01-01T00:00:00.0000000","realarm":false,"sourceId":0,"alarmType":"Warning","alarm":{"id":0,"type":"Warning","vendorAlarmId":0,"name":"String","brakePrg":0,"description":"String","isOkAlarm":false,"isAvailableOnAck":false,"clearByOKAlarm":false,"canTriggerAllocation":false,"statusIndicator":"String","remarks":"String"},"modifiedDate":"0001-01-01T00:00:00.0000000","vendorLogId":0,"objectId":0,"alarmDescription":"String"},"category":{"id":0,"name":"String","color":"String","uncategorized":false,"available":false,"typeId":0,"group":"String","sortIndex":0,"priority":0,"enabled":false,"performance":0,"excluded":0,"parentCategoryId":0,"parentCategoryName":"String","attributes":{"String":"String"},"allocationType":{"id":0,"name":"String","acronym":"String","version":"String","description":"String","factoryDefaultUrl":"String","sortOrder":0,"linkedTypeId":0,"subType":false,"groupName":"String","defaultVisible":false,"domainId":0,"disabled":false}},"categories":{"String":{"id":0,"name":"String","color":"String","uncategorized":false,"available":false,"typeId":0,"group":"String","sortIndex":0,"priority":0,"enabled":false,"performance":0,"excluded":0,"parentCategoryId":0,"parentCategoryName":"String","attributes":{"String":"String"},"allocationType":{"id":0,"name":"String","acronym":"String","version":"String","description":"String","factoryDefaultUrl":"String","sortOrder":0,"linkedTypeId":0,"subType":false,"groupName":"String","defaultVisible":false,"domainId":0,"disabled":false}}},"start":"0001-01-01T00:00:00.0000000","end":"0001-01-01T00:00:00.0000000","lastModified":"0001-01-01T00:00:00.0000000","responseTime":"0001-01-01T00:00:00.0000000","lostProduction":0,"lostMoney":0,"finished":false,"manual":false,"overridden":false,"reallocated":false,"uncertain":false,"suspect":false,"trigger":"String"}]}}}