POST /v1/agents/assets/{assetId}/commands
POST/v1/agents/assets/{assetId}/commands
Dispatch a predefined command to the agent on an asset
Corps de la requête
| Nom | Type | Description |
|---|
commandIdobligatoire | string | |
target | string | |
Paramètres de chemin
| Nom | Type | Description |
|---|
assetIdobligatoire | string | |
Exemple
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"
});
Codes de réponse
| HTTP |
Signification |
200 |
Default Response |