List Inventory Resources
POST/dlp/api/v1/inventory/objects/aggregate
Lists resources. The response data depends on the table level you specify in the request body parameters.
The tableLevel and groupBy request body parameters determine which response object fields a successful API request returns.
IF tableLevel is 1 and groupBy is unspecified, the response properties are as shown below:
[
{
"cloudType": "",
"serviceName": "",
"totalResources": 0,
"publicResources": ,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0
}
]
If tableLevel is 1 and groupBy is specified, the response properties are as shown below:
[
{
"cloudType": "",
"accountName": "",
"regionName": "",
"serviceName": "",
"totalResources": 0,
"publicResources": 0,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0
}
]
If tableLevel is 2 and groupBy is unspecified, the response properties are as shown below:
[
{
"cloudType": "",
"serviceName": "",
"totalResources": 0,
"publicResources": 0,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0
}
]
If tableLevel is 2 and groupBy = ["cloud.region"], the response properties are as shown below:
[
{
"cloudType": "",
"regionName": "",
"serviceName": "",
"totalResources": 0,
"publicResources": 0,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0
}
]
If tableLevel is 2 and groupBy = ["cloud.account"], the response properties are as shown below:
[
{
"cloudType": "",
"accountName": "",
"serviceName": "",
"totalResources": 0,
"publicResources": 0,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0
}
]
If tableLevel is 2 and groupBy = ["cloud.region", "cloud.account"], the response properties are as shown below:
[
{
"cloudType": "",
"accountName": "",
"regionName": "",
"serviceName": "",
"totalResources": 0,
"publicResources": 0,
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 20,
"alerts": 0
}
]
If tableLevel is 3 and groupBy is unspecified, the response properties are as shown below:
[
{
"cloudType": "",
"resourceName": "",
"publicResource": "",
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0,
"bucketRrn":""
}
]
If tableLevel is 3 and groupBy = ["cloud.account", "cloud.region"], the response properties are as shown below:
[
{
"cloudType": "",
"accountName": "",
"regionName": "",
"resourceName": "",
"publicResource": "",
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0,
"bucketRrn":""
}
]
If tableLevel is 3 and groupBy = ["cloud.region", "cloud.service"], the response properties are as shown below:
[
{
"cloudType": "",
"regionName": "",
"serviceName": "",
"resourceName": "",
"publicResource": "",
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0,
"bucketRrn":""
}
]
If tableLevel is 3 and groupBy = ["cloud.account", "cloud.region", "cloud.service"], the response properties are as shown below:
[
{
"cloudType": "",
"accountName": "",
"regionName": "",
"serviceName": "",
"resourceName": "",
"publicResource": "",
"totalObjects": 0,
"publicObjects": 0,
"sensitiveObjects": 0,
"malwareObjects": 0,
"alerts": 0,
"bucketRrn":""
}
]
Request
- application/json; charset=UTF-8
Body
- Array [
- ]
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
- absolute
- relative
- to_now
Detailed
Array of specific fields to return
filters object[]
Filtering parameters.
For filter names, refer to List Filters API.
For filter values, refer to List filter suggestions.
The only exception is resource.tagv2 filter name, provide filter value for it in the following format: "{"key":"'CustomerTagKey'","value":"'CustomerTagValue'"}"
Name
Possible values: [tag:yaml.org,2002:value =
]
Operator
Value
For asset or data inventory only. Group returned items by cloud.type, cloud.service, cloud.region, cloud.account, and/or resource.type
Maximum number of items to return. When data is paginated, maximum number of items per page.The maximum cannot exceed 10,000. The default is 10,000.
The number of items to skip before selecting items to return. Default is zero
Setting this pagination Token to the nextPageToken from a response object returns the next page of data
Array of sort properties. Append :asc or :desc to the key to sort by ascending or descending order respectively. Example sort properties are id:asc and timestamp:desc
Possible values: [1
, 2
, 3
]
Table level
timeRange object
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Possible values: [absolute
, relative
, to_now
]
Time type
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Responses
- 200
success
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
Cloud account id
Cloud account name
Total alerts
Unified Asset Id
Cloud Type
Container Name
Object Content Type
List of Data Patterns
List of Data Profiles
Classification Scanned Time
Snippets created on (unix timestamp)
Snippets Status
Snippets Viewed Status
Malware Result
Total malware objects
Malware Scanned Time
Metadata Scanned Time
Object Alerts
Object Exposure
Object Id
Object Name
Object Owner
Object Path
Object URL
Total public objects
List of public resources
Total number of public resources
Cloud region
Resource Exposure
Resource name
resource RRN
Resource status (true if active)
object RRN
Total sensitive objects
Service name
Total objects
Total number of resources
[
{
"accountId": "string",
"accountName": "string",
"alerts": 0,
"assetId": "string",
"cloudType": "string",
"containerName": "string",
"contentType": "string",
"dataPatterns": [
"string"
],
"dataProfiles": [
"string"
],
"dssScannedTime": 0,
"dssSnippetCreatedOn": 0,
"dssSnippetStatus": "string",
"dssSnippetViewed": true,
"malware": "string",
"malwareObjects": 0,
"malwareScannedTime": 0,
"metadataScannedTime": 0,
"objectAlerts": "string",
"objectExposure": "string",
"objectId": "string",
"objectName": "string",
"objectOwner": "string",
"objectPath": "string",
"objectUrl": "string",
"publicObjects": 0,
"publicResource": "string",
"publicResources": 0,
"regionName": "string",
"resourceExposure": "string",
"resourceName": "string",
"resourceRrn": "string",
"resourceStatus": true,
"rrn": "string",
"sensitiveObjects": 0,
"serviceName": "string",
"totalObjects": 0,
"totalResources": 0
}
]