POST /v1/agents/assets/{assetId}/commands
POST/v1/agents/assets/{assetId}/commands
Dispatch a predefined command to the agent on an asset
Request Body
| Name | Typ | Beschreibung |
|---|
commandIderforderlich | string | |
target | string | |
Pfad-Parameter
| Name | Typ | Beschreibung |
|---|
assetIderforderlich | string | |
Beispiel
curl -X POST https://api.codemeta-os.de/v1/agents/assets/{assetId}/commands \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"commandId": "string",
"target": "string"
}'
const result = await cm.agents.post({
"commandId": "string",
"target": "string"
});
Antwortcodes
| HTTP |
Bedeutung |
200 |
Default Response |