Skip to content

Show last used IP and network organization for service tokens - #1487

Merged
mscoutermarsh merged 1 commit into
mainfrom
mike/service-token-last-used
Oct 23, 2026
Merged

mscoutermarsh merged 1 commit into
mainfrom
mike/service-token-last-used

Conversation

@mscoutermarsh

Copy link
Copy Markdown
Member

Summary

  • pscale service-token list and show now include the last-used IP address and network organization.
  • JSON output uses the API fields last_used_ip and last_used_asn_organization. last_used_at was already shown.

Test plan

  • go test ./internal/cmd/token/ ./internal/planetscale/
  • pscale service-token list --org <org> shows last_used_ip and last_used_organization for a token that has been used
  • pscale service-token show <id> --org <org> shows the same fields, and --format json includes last_used_ip and last_used_asn_organization

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@mscoutermarsh
mscoutermarsh requested a review from a team as a code owner October 23, 2026 18:01
@mscoutermarsh
mscoutermarsh merged commit 9971335 into main Oct 23, 2026
5 checks passed
@mscoutermarsh
mscoutermarsh deleted the mike/service-token-last-used branch October 23, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants