From the web portal you'll normally do:
-
Click on "Add new Deployment Target" on the Environments page.
-
Hit the "Discover" button to automatically populate the Tentacle Thumbprint by giving the Tentacle FQDN/IP and Port.
-
Fill the Tentacle name, environments, roles and then click "Save".
To do the same from the API you'll need to
GETthediscoverapi endpoint as shown on the code example below:
http://[YourOctopus]/api/machines/discover?host=NY-Tentacle2&port=10933&type=TentaclePassive
To get a better understanding of where does each value com from, see the screenshot attached to the email/ticket
Here's a fully working powershell example for this: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Targets/DiscoverTentacle.ps1
- Using the information of the previous step, fill the config variables on the below Powershell script and run it.