openwisp_get_device_group_from_cert
Resolve the OpenWISP device group linked to a certificate common name, with optional organization slugs, to map certificates to their correct device groups.
Instructions
[Category: Devices & Controller] Resolve the device group linked to a certificate common name. (HTTP GET /api/v1/controller/cert/{common_name}/group/)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"common_name": "<common_name>"
},
"name": "openwisp_get_device_group_from_cert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Optional comma-separated organization slugs | |
| common_name | Yes | Certificate common name |