...
The API devices returns all the devices defined in Oceans 23.0 that meet a set of filter criteria.
...
Parameter | Type | Description | Example |
---|---|---|---|
Required | |||
token | string | All Web Services require a token. This can be generated at https://data.oceannetworks.ca/Profile. Click on the "Web Services" tab and click "Generate Token". | token=YOUR_TOKEN_HERE |
Optional | |||
deviceCode | string | Return a single Device matching a specific Device Code.
| deviceCode=FSINXIC1622 |
deviceId | integer | Return a single Device matching a specific Device ID.
| deviceId=10301 |
deviceCategoryCode | string | Return all Devices belonging to a specific Device Category Code.
| deviceCategoryCode=CTD |
propertyCode | string | Return all Devices that have a sensor for a specific Property Code.
| propertyCode=pressure |
deviceName | string | Return all of the Devices where the Device Name contains a keyword.
| deviceName=meter |
locationCode | string | Return all Devices that are deployed at a specific Location.
| locationCode=BACAX |
dataProductCodeincludeChildren | stringboolean | Return all Devices that are deployed at a specific Location and sub-tree Locations.
| includeChildren=true |
dataProductCode | string | Return all Devices that have the ability to return a specific Data Product Code.
| dataProductCode=jpgfile |
dateFrom | datetime | Return all of the Devices that have a Deployment Beginning on or after a specific date/time. Accepted DateTime formats:
If not specified, the default value is the beginning of time.
| dateFrom=2010-07-27T00:00:00.000Z dateFrom=2010-07-27 dateFrom=-P1DT1H
|
dateTo | datetime | Return all of the Devices that have a Deployment Ending before a specific date/time. Accepted DateTime formats:
If not specified, the default value is the end of time.
| dateTo=2016-08-01T00:00:00.000Z dateTo=2016-08-01 dateTo=PT12H30M
|
...
"http
|
...
Property | Type | Description | Example |
---|---|---|---|
deviceCode | string | Returns the device code | "deviceCode":"BC_POD1_AD2M" |
deviceId | integer | Returns the device id | "deviceId":11302 |
deviceCategoryCode | string | Returns the device category code | "deviceCategoryCode:"HYDROPHONE" |
deviceName | string | Returns the device name | "deviceName":"Nortek Aquadopp HR-Profiler 2965" |
deviceLink | url | Returns the a URL link to Device Listing page for the specific device | "deviceLink":"https://data.oceannetworks.ca/DeviceListing?DeviceId=11302" |
dataRating | list | Returns a list of data ratings and date from for each device–this list may be empty Each data rating is made up of:
| "dataRating": [ |
cvTerm | object | The list of controlled vocabulary terms associated with the device and any device groups the device belongs to. Each vocabulary term is made up of:
| "cvTerm": { |
hasDeviceData | boolean | hasDeviceData flag for devices with searchable device and siteDevice | "hasDeviceData":true |
...
- Return a list of all of the devices that have been deployed at a location with a Location Code of 'BACCC' ('Barkely Canyon Coral Cliff') and children locations
API Proxy
The https://data.oceannetworks.ca/apiproxy/devicesURL link in the above examples can be used in a browser for sharing or testing purposes; however, it can not be accessed from code. Calls to the apiproxy server are redirected to a login screen to capture your user id. Accessing the apiproxy URL from code will return html in the payload, which may cause errors or unexpected behavior. In order to use the deployments endpoint from code, you must use the https://data.oceannetworks.ca/api/devices url along with a valid token.
...
Warning |
---|
Please report all issues with the web services, documentation, samples and client libraries to the Oceans 23.0 Help Centre |