Generate topology through an agent
POST
/topology/generateContract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| request | body | yes | object | Request body: {agentId: number, protocol: string, type: string, node_count: number, config?: object} |
{}
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Successful response | object |
400 | Invalid request body or missing agentId | object |
401 | Unauthorized | object |
404 | Agent not found | object |
500 | Failed to proxy the request to the agent | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }