Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/tailscale: status --json should include stable ID #1532

Closed
bradfitz opened this issue Mar 17, 2021 · 3 comments
Closed

cmd/tailscale: status --json should include stable ID #1532

bradfitz opened this issue Mar 17, 2021 · 3 comments
Labels

Comments

@bradfitz
Copy link
Member

bradfitz commented Mar 17, 2021

User notes about tailscale status --json:

The only field that I can't find in the json output, though, is a deviceId that I could pass directly to the REST API.

I see that I can use the REST API to gather the list of all devices, and match up the tailscale IP address or other details to find the deviceId, but it would be nice to avoid the extra work!

Front logo Front conversations

@rosszurowski
Copy link
Member

rosszurowski commented Mar 17, 2021

I believe the REST API uses the legacy IDs right now, though it should probably support both. We should ensure that whatever IDs we expose to end users work on the API too, before making that change.

@DentonGentry
Copy link
Contributor

It looks like we did this, somewhere along the way:

    "nodekey:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef": {
      "ID": "nabc012CNTRL",
      "PublicKey": "nodekey:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
      "HostName": "server1",

@bradfitz
Copy link
Member Author

bradfitz commented Aug 1, 2022

Done in e72ed3f

@bradfitz bradfitz closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants