Create Process Set Policy
This API creates a new process set policy, which defines the processes an agent applies its configuration to.
Endpoint Details
| URL | /v1/config-agent/process-sets |
| Method | POST |
| Authorization | Bearer Token |
Request Headers
| Header | Type | Description |
|---|---|---|
| Content-Type | String | Must be application/json |
Request Body
Use the following format to make a request:
JSON Request
{
"name": "dummy process set",
"description": "",
"processes": [
{
"directory": "/usr/bin",
"file": "java"
}
]
}
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of the process set policy |
| description | String | Optional description of the process set policy |
| processes | Array | List of processes included in the policy |
| directory | String | Directory path where the process is located |
| file | String | File name of the process |
Response
Here is an example response after the request has been successfully processed:
Response
{
"data": {
"id": "9cc1e6db-67fa-4867-84bd-a821b7d74e77",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Dummy Process Set",
"processes": [
{
"directory": "/usr/bin",
"file": "java"
}
],
"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": 1785221207,
"updated_at": 1785221207
}
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
| id | UUID | Unique identifier of the process set policy |
| tenant_id | UUID | Identifier of the tenant that owns the process set policy |
| name | String | Name of the process set policy |
| description | String | Description of the process set policy |
| processes | Array | List of processes included in the policy |
| directory | String | Directory path where the process is located |
| file | String | File name of the process |
| 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 |
info
- A valid Bearer Token is required to access this endpoint.
- Each entry in
processesdefines a directory and file name the policy applies to. - When
fileis set to*or left empty, the policy applies to all files in the directory. - Unix timestamp fields can be converted to a human-readable date and time format as needed.