List asset groups
get
/assetMonitoring/clientapi/v2/groups
This operation returns the list of existing asset groups for your Oracle IoT Asset Monitoring Cloud Service instance.
Request
Query Parameters
-
expand(optional): string
The list of fields to be expanded in the result. Use 'all' to expand all expandable fields in result.
-
fields(optional): string
The comma-separated list of fields to be shown in response. By default all response object fields will be present.
-
limit(optional): integer
The maximum number of entries to return to the end user.
-
offset(optional): integer
The number that the first record of results is starting from.
-
orderBy(optional): string
Ordering criteria for the returned asset groups list
-
q(optional): string
Query to filter asset groups on the server (For more information on mongoDB query parameters refer to Using mongoDB Query Syntax.)
-
since(optional): integer
The starting point of the desired time interval, in milliseconds. The default is 0.
-
totalResults(optional): boolean
The total number of results suiting the request.
-
until(optional): integer
The finishing point of the desired time interval, in milliseconds. The default is 0.
Response
Supported Media Types
- application/json
- application/vnd.oracle.resource+json;type=collection
200 Response
Successfully processed.
Root Schema : AssetGroupImpl_receive_list
Type:
Show Source
object
-
count:
integer(int32)
-
hasMore:
boolean
-
items:
array items
-
limit:
integer(int32)
-
links:
array links
The set of API navigation links.
-
offset:
integer(int32)
Nested Schema : items
Type:
Show Source
object
-
assets:
object assets
Property description was not set
-
assetsCount:
integer
Property description was not set
-
children:
array children
Property description was not set
-
description:
string
Property description was not set
-
id:
string
Property description was not set
-
name:
string
Property description was not set
-
organizationId:
string
Property description was not set
-
parentId:
string
Property description was not set
-
path:
array path
Property description was not set
-
placeId:
string
Property description was not set
-
query:
string
Property description was not set
-
restricted:
boolean
Property description was not set
-
type:
string
One of [STATIC, QUERY].
Nested Schema : assets
Type:
object
Property description was not set
Show Source
-
links(optional):
array links
The set of API navigation links.
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
The target resource URIExample:
https://iotserver/iot/api/vX/some/API/path
-
rel(optional):
string
Relation typeExample:
canonical
Nested Schema : AssetGroup_receive
Type:
Show Source
object
-
assets:
object assets
Property description was not set
-
assetsCount:
integer
Property description was not set
-
children:
array children
Property description was not set
-
description:
string
Property description was not set
-
id:
string
Property description was not set
-
name:
string
Property description was not set
-
organizationId:
string
Property description was not set
-
parentId:
string
Property description was not set
-
path:
array path
Property description was not set
-
placeId:
string
Property description was not set
-
query:
string
Property description was not set
-
restricted:
boolean
Property description was not set
-
type:
string
One of [STATIC, QUERY].
Nested Schema : assets
Type:
object
Property description was not set
Show Source
-
links(optional):
array links
The set of API navigation links.
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
The target resource URIExample:
https://iotserver/iot/api/vX/some/API/path
-
rel(optional):
string
Relation typeExample:
canonical
Nested Schema : PathToOrgEntityType_receive
Type:
Show Source
object
-
id:
string
Property description was not set
-
name:
string
Property description was not set
-
type:
string
One of [TRIP, TRIP_TEMPLATE, SHIPMENT, VEHICLE, DRIVER, ASSET, GROUP, FACILITY, LOAD, ORG, TRANSACTION_LOG, SHIP_UNIT, SHIP_ITEM, EQUIPMENT].
Nested Schema : items
Type:
Show Source
object
-
href(optional):
string
The target resource URIExample:
https://iotserver/iot/api/vX/some/API/path
-
rel(optional):
string
Relation typeExample:
canonical
401 Response
Unauthorized. The request requires user authentication.
406 Response
Request Not Acceptable. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
Examples
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/assetMonitoring/clientapi/v2/groups
Example of Response Body
The following example shows the content of the response body in JSON format:
{
"count":2,
"hasMore":false,
"items":[
{
"assets":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"assetsCount":12345,
"children":[
{
"assets":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"assetsCount":12345,
"description":"Property description was not set",
"id":"7b4a6fcf58a6-7a75",
"name":"Property description was not set",
"organizationId":"6e7f1793024-64f1",
"parentId":"1246a864c99-6dea",
"path":[
{
"id":"4f364161243b-401e",
"name":"Property description was not set",
"type":"One of [TRIP, TRIP_TEMPLATE, SHIPMENT, VEHICLE, DRIVER, ASSET, GROUP, FACILITY, LOAD, ORG, TRANSACTION_LOG, SHIP_UNIT, SHIP_ITEM, EQUIPMENT]."
}
],
"placeId":"50c27e2e12d8-2b94",
"query":"Property description was not set",
"restricted":false,
"type":"One of [STATIC, QUERY]."
}
],
"description":"Property description was not set",
"id":"3a881c4f2a69-5dab",
"name":"Property description was not set",
"organizationId":"4473484f78d8-1047",
"parentId":"1e7d58863ecf-2400",
"path":[
{
"id":"7ed62e18dd7-3b52",
"name":"Property description was not set",
"type":"One of [TRIP, TRIP_TEMPLATE, SHIPMENT, VEHICLE, DRIVER, ASSET, GROUP, FACILITY, LOAD, ORG, TRANSACTION_LOG, SHIP_UNIT, SHIP_ITEM, EQUIPMENT]."
}
],
"placeId":"62476ac846a2-2471",
"query":"Property description was not set",
"restricted":false,
"type":"One of [STATIC, QUERY]."
},
{
"assets":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"assetsCount":12345,
"children":[
{
"assets":{
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"assetsCount":12345,
"description":"Property description was not set",
"id":"da25e117e2e-6cdf",
"name":"Property description was not set",
"organizationId":"47af30a85ae7-24ae",
"parentId":"2afe76613e6c-3fe2",
"path":[
{
"id":"563e1c1a1aa6-545e",
"name":"Property description was not set",
"type":"One of [TRIP, TRIP_TEMPLATE, SHIPMENT, VEHICLE, DRIVER, ASSET, GROUP, FACILITY, LOAD, ORG, TRANSACTION_LOG, SHIP_UNIT, SHIP_ITEM, EQUIPMENT]."
}
],
"placeId":"7e711c8a2aea-bdf",
"query":"Property description was not set",
"restricted":false,
"type":"One of [STATIC, QUERY]."
}
],
"description":"Property description was not set",
"id":"7a6f12053065-5095",
"name":"Property description was not set",
"organizationId":"3f757d4749d-1bf5",
"parentId":"f6a4f695eb2-4a36",
"path":[
{
"id":"333219ff11be-e75",
"name":"Property description was not set",
"type":"One of [TRIP, TRIP_TEMPLATE, SHIPMENT, VEHICLE, DRIVER, ASSET, GROUP, FACILITY, LOAD, ORG, TRANSACTION_LOG, SHIP_UNIT, SHIP_ITEM, EQUIPMENT]."
}
],
"placeId":"7c2b31ce5afe-4a9a",
"query":"Property description was not set",
"restricted":false,
"type":"One of [STATIC, QUERY]."
}
],
"limit":10,
"links":[
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/assetMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
],
"offset":0
}
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/assetMonitoring/clientapi/v2/groups
Note that in the request,
https://iotserver
will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is
https://myinstance-myidentitydomain.iot.us.oraclecloud.com
and the default port is 443.