Asset Groups
APIs for managing asset groups
By grouping assets based on shared attributes, you can address them collectively. Asset groups enable more efficient bulk actions and simplifies both filtering and scoping within the inventory and across the platform.
Get all or filtered asset groups.
Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management.
{api_key}
{api_key_id}
Ok
Unauthorized
Internal Server Error, Invalid Input
POST /public_api/v1/asset-groups HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 224
{
"request_data": {
"filters": {
"AND": [
{
"SEARCH_FIELD": "XDM.ASSET_GROUP.TYPE",
"SEARCH_TYPE": "EQ",
"SEARCH_VALUE": "Dynamic"
}
]
},
"sort": [
{
"FIELD": "XDM.ASSET_GROUP.LAST_UPDATE_TIME",
"ORDER": "DESC"
}
],
"search_from": 1,
"search_to": 1000
}
}[
{
"reply": {
"data": [
{}
],
"metadata": {
"filter_count": 1,
"total_count": 1000
}
}
}
]Create a dynamic Asset Group by specifying the filters, or a static group to manually include individual assets.
Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management.
{api_key}
{api_key_id}
Ok
Unauthorized
Internal Server Error, Invalid Input
POST /public_api/v1/asset-groups/create HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"request_data": {
"asset_group": {
"group_name": "text",
"group_type": "Dynamic",
"group_description": "text",
"membership_predicate": {
"AND": [
{
"SEARCH_FIELD": "xdm.asset.type.class",
"SEARCH_TYPE": "NEQ",
"SEARCH_VALUE": "Other"
}
]
}
}
}
}[
{
"reply": {
"data": {
"success": true,
"asset_group_id": 1
}
}
}
]Update the Asset Group specified by Asset Group ID.
Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management.
Asset Group ID
{api_key}
{api_key_id}
Ok
Unauthorized
Internal Server Error, Invalid Input
POST /public_api/v1/asset-groups/update/{group_id} HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"request_data": {
"asset_group": {
"group_name": "text",
"group_type": "Dynamic",
"group_description": "text",
"membership_predicate": {
"AND": [
{
"SEARCH_FIELD": "xdm.asset.type.class",
"SEARCH_TYPE": "NEQ",
"SEARCH_VALUE": "Other"
}
]
}
}
}
}[
{
"reply": {
"data": {
"success": true
}
}
}
]Delete the Asset Group specified by Asset Group ID.
Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management.
Asset Group ID
{api_key}
{api_key_id}
Ok
Unauthorized
Internal Server Error, Invalid Input
POST /public_api/v1/asset-groups/delete/{group_id} HTTP/1.1
Host: api-yourfqdn
Authorization: text
x-xdr-auth-id: text
Accept: */*
[
{
"reply": {
"data": {
"success": true
}
}
}
]Last updated
Was this helpful?
