Skip to main content

List Resource Set Policies

This API returns a list of resource set policies available within the tenant.

Endpoint Details

URL/v1/config-agent/resource-sets
MethodGET
AuthorizationBearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Response

Here is an example of a response when viewing a list of data:

Response
{
"data": [
{
"id": "c645ea06-4846-49c8-a231-b2c6d84a2c29",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Dummy",
"resources": [
{
"directory": "/data",
"file": "*",
"type_os": "Windows"
}
],
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_by_name": "Admin Aplikasi",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by_name": "Admin Aplikasi",
"created_at": 1785211452,
"updated_at": 1785211452
},
{
"id": "72cde5d4-e69e-49fe-9b10-04fe7eb41ff0",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Root-db-mysql",
"resources": [
{
"directory": "/",
"file": "*.ibd",
"type_os": "NonWindows",
"include_sub_directory": true
},
{
"directory": "/",
"file": "*frm",
"type_os": "Windows",
"include_sub_directory": true
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1781677680,
"updated_at": 1781677680
},
{
"id": "35c41176-d6c2-418f-b3d8-2d2240ed97b7",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Root-bucket",
"resources": [
{
"directory": "/",
"file": "*",
"type_os": "NonWindows",
"include_sub_directory": true
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780887559,
"updated_at": 1780887559
},
{
"id": "78ed51db-9904-4e3a-aba7-83888d63e6d4",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Resource Bash",
"resources": [
{
"directory": "/tools",
"file": "*",
"type_os": "NonWindows",
"include_sub_directory": true
}
],
"created_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"created_by_name": "Iqbal Adhi",
"updated_by": "414a45e9-f194-4a8a-9876-97abb990d4d9",
"updated_by_name": "Iqbal Adhi",
"created_at": 1780887436,
"updated_at": 1780887436
}
],
"pagination": {
"total": 4,
"page_size": 4,
"last_page": 1
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the resource set policy
tenant_idUUIDIdentifier of the tenant that owns the resource set policy
nameStringName of the resource set policy
descriptionStringDescription of the resource set policy
resourcesArrayList of resources included in the policy
directoryStringDirectory path the policy applies to
fileStringFile pattern the policy applies to
type_osStringOperating system type the resource applies to
include_sub_directoryBooleanIndicates whether subdirectories are included
created_byUUIDIdentifier of the user who created the policy
created_by_nameStringDisplay name of the user who created the policy
updated_byUUIDIdentifier of the user who last updated the policy
updated_by_nameStringDisplay name of the user who last updated the policy
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format
totalIntegerTotal number of resource set policies available
page_sizeIntegerNumber of records returned per page
last_pageIntegerTotal number of available pages

info
  • A valid Bearer Token is required to access this endpoint.
  • The description field may not be present if the policy was created without a description.
  • When file is set to *, the policy applies to all files in the directory.
  • Supported type_os values are Windows and NonWindows.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.