Prerequisites
- A Junos device with the REST API service on HTTPS. The REST API listens on port 3443 unless you set another port. See Juniper’s REST API configuration guide.
- An HTTPS address CloudThinker can reach. Network devices usually sit on a private network, so follow Reaching private services.
- A Junos administrator who can create a login class and a user.
- The Admin role in your CloudThinker workspace. See Roles.
Setup
Create the login in Junos
cloudthinker. See Required permissions and Juniper’s access privilege guide.Connect in CloudThinker
Juniper Junos connected and runs Junos <version>. CloudThinker then opens a chat that takes a read-only deep look at the connection (“Often takes about 15 min. You can leave the chat.”). To run it again later, open the card’s More menu and choose Try in chat.Connection details
Required permissions
Junos permission flags are not cumulative, so the login class must list every flag it needs.Agent capabilities
Write access
Before it asks, the agent names the device, the interface, its current admin and link state, and the change. It makes one change on one physical interface per approval, then reads the interface again and reports the state before and after. To disable or enable an interface, CloudThinker commits with a confirmed commit that Junos rolls back after 5 minutes unless the read-back confirms the change. Disabling an interface drops every link and session on it. Agents can’t change management or loopback interfaces, other configuration, or routing policy, and they can’t roll back or reboot the device. Make those changes on the device. Allow writes starts on. To lock writes, open Juniper Junos in Settings → Workspace → Connections and turn off Allow writes on its detail panel. Two or more Juniper connections in one workspace turn writes off for all of them, because an approved change can’t name which device it targets. Every change an agent makes goes through your workspace’s Approvals first. On the default Auto · Rules + AI · Ask me mode, AI judgment can let a safe change run without asking — and an Allow Rule can too. Choose Manual to approve every change yourself.Verify the connection
Example prompts
Troubleshooting
The device rejected the username and password.
The device rejected the username and password.
The login signed in, but its class cannot run operational commands. Give it view permissions.
The login signed in, but its class cannot run operational commands. Give it view permissions.
view permission flag to the login’s class, then connect again. During a change, a permission error means the class lacks configure, interface-control, or clear.That address has no Junos REST API. Check the URL and port, and that system services rest https is configured.
That address has no Junos REST API. Check the URL and port, and that system services rest https is configured.
The CA certificate must be PEM certificate blocks only, up to 64 KiB. Paste the CA certificate that issued the device certificate, then test again.
The CA certificate must be PEM certificate blocks only, up to 64 KiB. Paste the CA certificate that issued the device certificate, then test again.
BEGIN CERTIFICATE and END CERTIFICATE lines, and nothing else.The device answered with a redirect. Use the exact HTTPS address of the Junos REST API service, including its port.
The device answered with a redirect. Use the exact HTTPS address of the Junos REST API service, including its port.
https:// address and port the REST API serves directly.Could not reach the device over HTTPS. Check the URL, the port, and that the sandbox can reach it.
Could not reach the device over HTTPS. Check the URL, the port, and that the sandbox can reach it.
The device refused a change
The device refused a change
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Give the login only the flags it needs, and keep it out of the
super-userclass. - Keep Allow writes off on production devices unless you want agents to change interfaces.