BazeField Services

<back to all web services

GetAllocations

Allocations API
Requires Authentication
The following routes are available for this service:
GET/api/allocations/ids/{Ids}
GetAllocations Parameters:
NameParameterData TypeRequiredDescription
IdspathList<int>No

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /api/allocations/ids/{Ids} HTTP/1.1 
Host: mdn.bazefield.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"id":0,"turbineId":0,"objectId":"String","turbineName":"String","turbineTitle":"String","sourceId":0,"sourceName":"String","rootCause":"String","triggeredByAlarm":{"alarm":{"id":0,"code":0,"name":"String","brakePrg":0,"canTriggerAllocation":false,"description":"String","remarks":"String","resetPrg":"\u0000","isOkAlarm":false,"meta":{"String":"String"},"alarmType":0,"type":"Warning"},"start":"0001-01-01T00:00:00.0000000","end":"0001-01-01T00:00:00.0000000","logId":0},"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":[{"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","start_Local":"0001-01-01T00:00:00.0000000+00:00","end_Local":"0001-01-01T00:00:00.0000000+00:00","duration":"P739369DT14H21M8.6586914S","isUnclassified":false,"manualOverrideLoss":false,"responseTime":"0001-01-01T00:00:00.0000000","lostProduction":0,"lostMoney":0,"finished":false,"manual":false,"overridden":false,"reallocated":false,"pending":false,"changeLog":"String","lastComment":{"id":0,"turbineId":0,"turbineName":"String","timeStamp":"0001-01-01T00:00:00.0000000","text":"String","createdBy":"String","createdById":0,"lastModified":"0001-01-01T00:00:00.0000000","type":"Turbine","external":false,"sticky":false,"allocationId":0,"alarmLogId":0,"alarmId":0,"commandId":0,"relatedInfo":"String","cleared":false,"labels":[{"id":0,"name":"String","color":"String","type":"0"}],"objectId":"String","relatedStart":"0001-01-01T00:00:00.0000000","relatedEnd":"0001-01-01T00:00:00.0000000"},"exported":"String","labels":[{"id":0,"name":"String","color":"String","type":"0"}],"suspect":false,"uncertain":false,"eventId":0,"hasEvent":false,"holdCategory":false,"approved":false}]