---
updatedAt: 2025-11-05T21:06:09.000Z
agentTools:
  projectIndex: https://esf.eurotech.com/llms.txt
---

# Activities MQTT Contract

## SUBMIT request

Request\
`ANSIBLE-V1/SUBMIT`

Activity Submit request metrics names: (\*=required)

* String PROP\_REQUESTER\_CLIENT\_ID = "requester.client.id"; (\*)
* String PROP\_OPERATION\_ID = "id"; (\*)
* String PROP\_DOWNLOAD\_URL = "download.url"; (\*)
* String PROP\_DOWNLOAD\_BLOCK\_SIZE = "download.block.size";
* String PROP\_DOWNLOAD\_BLOCK\_TIMEOUT = "download.block.timeout";
* String PROP\_DOWNLOAD\_BLOCK\_DELAY = "download.block.delay";
* String PROP\_DOWNLOAD\_NOTIFY\_BLOCK\_SIZE = "download.notify.block.size";
* String PROP\_DOWNLOAD\_TIMEOUT = "download.timeout";
* String PROP\_DOWNLOAD\_RESUME = "download.resume"; (default false)
* String PROP\_DOWNLOAD\_USERNAME = "download.username";
* String PROP\_DOWNLOAD\_PASSWORD = "download.password";
* String PROP\_DOWNLOAD\_HASH = "download.hash";
* String PROP\_NOTIFY\_LOG\_LEVEL = "notify.log.level"; (default INFO)
* String PROP\_RESOURCE\_PROPS = "resource.props";

Activity Property names persisted:

* String NOTIFICATION\_PUBLISHER\_PID\_PROP\_NAME = "notification.publisher.pid";
* String NOTIFICATION\_APP\_ID = "notification.app.id";
* String NEXT\_EVENT\_INDEX\_PROP\_NAME = "next.event.index";
* String ID\_PROP\_NAME = "id";
* String CLIENT\_ID\_PROP\_NAME = "client.id";
* String REQUESTOR\_CLIENT\_ID\_PROP\_NAME = "requestor.client.id";
* String NOTIFICATION\_LEVEL\_PROP\_NAME = "notification.level";
* String STATUS\_PROP\_NAME = "status";
* String NOTIFICATION\_MESSAGE\_BUILDER\_PID\_PROP\_NAME = "notification.message.builder.pid";
* String PROP\_DOWNLOAD\_URL = "download.url";
* String PROP\_DOWNLOAD\_BLOCK\_SIZE = "download.block.size";
* String PROP\_DOWNLOAD\_BLOCK\_TIMEOUT = "download.block.timeout";
* String PROP\_DOWNLOAD\_BLOCK\_DELAY = "download.block.delay";
* String PROP\_DOWNLOAD\_NOTIFY\_BLOCK\_SIZE = "download.notify.block.size";
* String PROP\_DOWNLOAD\_TIMEOUT = "download.timeout";
* String PROP\_DOWNLOAD\_RESUME = "download.resume";
* String PROP\_DOWNLOAD\_USERNAME = "download.username";
* String PROP\_DOWNLOAD\_PASSWORD = "download.password";
* String PROP\_DOWNLOAD\_HASH = "download.hash";
* String PROP\_RESOURCE\_PROPS = "resource.props";
* String RESOURCE\_DOWNLOAD\_PATH = "download.path";
* String START\_DATE = "start.date";
* String END\_DATE = "end.date";

```
NotificationLevel {
    TRACE,
    INFO,
    DISABLED;
}
```

## GET Request

Request\
`ANSIBLE-V1/GET/activities`

Response

```
{
  "activities": [
    {
      "id" : "1234567890",
      "start.date": "{aDate}" 
      "end.date": "{aDate}" 
      "status": WORKING/SUCCESSFUL/FAILED/CANCELED
      "notificationLevel": INFO/TRACE/DISABLED
      "download.url"
      "download.block.size"
      "download.block.timeout"
      "download.block.delay"
      "download.notify.block.size"
      "download.timeout"
      "download.resume"
      "download.username"
      "download.password"
      "download.hash"
      "resourceProperties" : "
              {dp.version = 1.0.500, "username" = "asd", "password" = "qwe"}
      "
    }
  ]
}
```

## CANCEL request

Request\
`ANSIBLE-V1/CANCEL`

Activity Cancel request metrics names: (\*=required)

* String PROP\_OPERATION\_ID = "id"; (\*)

## Notification Message

```
public class AnsibleKuraNotificationPayload extends KuraPayload {

    public static final String METRIC_ID = "id";
    public static final String METRIC_SEQUENCE = "sequence";
    public static final String METRIC_STATE = "state";
    public static final String METRIC_START = "start";
    public static final String METRIC_PROGRESS = "progress";
    public static final String METRIC_MESSAGE = "message";
    public static final String METRIC_MESSAGE_DETAILS = "details";
}
```

Considering the NotificationLevel enum defined as follows:

```
NotificationLevel {
    TRACE,
    INFO,
    DISABLED;
}
```

* METRIC\_MESSAGE and METRIC\_MESSAGE\_DETAILS are not added to the notification message if NotificationLevel.DISABLED.
* METRIC\_MESSAGE\_DETAILS is not added to the notification message if NotificationLevel.INFO
* METRIC\_MESSAGE and METRIC\_MESSAGE\_DETAILS are both added to the notification message NotificationLevel.TRACE