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 |
| Method | GET |
| Authorization | Bearer Token |
Request Headers
| Header | Type | Description |
|---|---|---|
| Content-Type | String | Must 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
| Field | Type | Description |
|---|---|---|
| id | UUID | Unique identifier of the resource set policy |
| tenant_id | UUID | Identifier of the tenant that owns the resource set policy |
| name | String | Name of the resource set policy |
| description | String | Description of the resource set policy |
| resources | Array | List of resources included in the policy |
| directory | String | Directory path the policy applies to |
| file | String | File pattern the policy applies to |
| type_os | String | Operating system type the resource applies to |
| include_sub_directory | Boolean | Indicates whether subdirectories are included |
| created_by | UUID | Identifier of the user who created the policy |
| created_by_name | String | Display name of the user who created the policy |
| updated_by | UUID | Identifier of the user who last updated the policy |
| updated_by_name | String | Display name of the user who last updated the policy |
| created_at | Integer | Creation timestamp in Unix format |
| updated_at | Integer | Last update timestamp in Unix format |
| total | Integer | Total number of resource set policies available |
| page_size | Integer | Number of records returned per page |
| last_page | Integer | Total number of available pages |
info
- A valid Bearer Token is required to access this endpoint.
- The
descriptionfield may not be present if the policy was created without a description. - When
fileis set to*, the policy applies to all files in the directory. - Supported
type_osvalues areWindowsandNonWindows. - Unix timestamp fields can be converted to a human-readable date and time format as needed.