Harvester
Le Harvester prend en charge les options suivantes :
nfa1000
Le Harvester prend en charge les options suivantes :
Informations complémentaires :
Lire tous les Harvesters
Cette API affiche tous les enregistrements de Harvester :
URI de la ressource
http://<nfa odata host>:<nfa odata port>/odata/api/harvesters
Méthode
GET
Exemple de demande
http://127.0.0.1:8981/odata/api/harvesters
Exemple de réponse
{ "@odata.context": "$metadata#harvesters", "value": [ { "HarvesterId": 2, "LastPullCheckpoint": 1545212329, "PortDefinitionsLastDeployed": 0, "HarvesterAddress": "127.0.0.1", "DomainId": 3, "FlowEnabledLastModified": 0, "ManagementServerPort": 8080, "DomainName": "Domain A", "DomainDescription": "Domain A for FellsCargo", "FlowEnabledLastDeployed": 0, "LastPushCheckpoint": 1545212344, "ApplicationMappingLastDeployed": 0, "ReservedSeatingLastDeployed": 0, "TrapDefinitionsLastDeployed": 1541748300, "TenantId": 9, "Description": "Single box configuration" }, { "HarvesterId": 5, "LastPullCheckpoint": 0, "PortDefinitionsLastDeployed": 0, "HarvesterAddress": "127.0.0.1", "DomainId": 1, "FlowEnabledLastModified": 0, "ManagementServerPort": 8080, "DomainName": "Default Domain", "DomainDescription": "The default domain for devices, interfaces, interface addresses and networks.", "FlowEnabledLastDeployed": 0, "LastPushCheckpoint": 0, "ApplicationMappingLastDeployed": 0, "ReservedSeatingLastDeployed": 0, "TrapDefinitionsLastDeployed": 0, "TenantId": 8, "Description": "Test Harvesters2" },]}
Lire un Harvester unique
L'API suivante affiche les détails du Harvester spécifié :
URI de la ressource
http://<nfa odata host>:<nfa odata port>/odata/api/harvesters(HarvesterId=<Value of the harvester ID>)
Méthode
GET
Exemple de demande
http://127.0.0.1:8981/odata/api/harvesters(HarvesterId=2)
Exemple de réponse
{ "@odata.context": "$metadata#harvesters", "HarvesterId": 2, "HarvesterAddress": "127.0.0.1", "Description": "Single box configuration", "ManagementServerPort": 8080, "FlowEnabledLastModified": 0, "FlowEnabledLastDeployed": 0, "LastPushCheckpoint": 1545212832, "LastPullCheckpoint": 1545212820, "ApplicationMappingLastDeployed": 0, "PortDefinitionsLastDeployed": 0, "ReservedSeatingLastDeployed": 0, "TrapDefinitionsLastDeployed": 1541748300, "DomainId": 3, "DomainName": "Domain A", "DomainDescription": "Domain A for FellsCargo", "TenantId": 9}
Ajouter un composant de collecte
L'ajout ou la modification de l'adresse IP d'un composant non Harvester renvoie une erreur d'expiration en réponse.
URI de la
ressource
http://<nfa odata host>:<nfa odata port>/odata/api/harvesters
Méthode
POST
Charge utile
{"HarvesterAddress": "<Enter the harvester address that you wish to add >","Description":"<Enter the Description>","DomainId":<Enter the Domain Id>}
Exemple de demande
http://127.0.0.1:8981/odata/api/harvesters
Exemple de charge utile
{"HarvesterAddress": "0.0.0.7","Description":"Testing Purpose","DomainId": 1}
Exemple de réponse
{ "@odata.context": "$metadata#harvesters", "HarvesterId": 9, "HarvesterAddress": "0.0.0.7", "Description": "Testing Purpose", "ManagementServerPort": null, "FlowEnabledLastModified": null, "FlowEnabledLastDeployed": null, "LastPushCheckpoint": null, "LastPullCheckpoint": null, "ApplicationMappingLastDeployed": null, "PortDefinitionsLastDeployed": null, "ReservedSeatingLastDeployed": null, "TrapDefinitionsLastDeployed": null, "DomainId": 1, "DomainName": null, "DomainDescription": null, "TenantId": null}
Modifier un Harvester
Le Harvester ne prend pas en charge la modification en bloc, c'est pourquoi vous devez modifier un seul Harvester à la fois.
URI de la
ressource
http://<nfa odata host>:<nfa odata port>/odata/api/harvesters(HarvesterId=<Value of the harvester ID>)
Méthode
PATCH
Charge utile
{"Description":"<Enter the Description>","DomainId":<Enter the Domain Id>}
Exemple de demande
http://127.0.0.1:8981/odata/api/harvesters(HarvesterId=33)
Exemple de charge utile
{"Description":"Single box configuration Modified","DomainId": 3}
Exemple de réponse
Cette API ne renvoie aucune réponse.
Suppression d'un Harvester
Vous pouvez supprimer un seul Harvester à la fois.
URI de la demande
http://<nfa odata host>:<nfa odata port>/odata/api/harvesters(HarvesterId=<Value of the harvester ID>)
Méthode
DELETE
Exemple de demande
http://127.0.0.1:8981/odata/api/harvesters(HarvesterId=33)
Exemple de réponse
Cette API ne renvoie aucune réponse.