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

feat(deviceregistration): support security tokens, group assignment and templates #433

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

reubenmiller
Copy link
Owner

@reubenmiller reubenmiller commented Feb 16, 2025

Improvements/updates to the c8y deviceregistration commands

  • register - Add --type and --group flags. The group flag can be used to assign a device to an existing group.
  • approve - Add support for --securityToken flag and --template and --data flags
  • getCredentials - No longer prompts for confirmation as it is more similar to a GET command (eventhough it is technically doing a POST under the hood)

Examples

# Register a device and assign it to a group
c8y deviceregistration register --id "ASDF098SD1J10912UD92JDLCNCU8" --group "Germany"

# Approve a device request with matching securityToken
c8y deviceregistration approve --id "1234010101s01ldk208" --securityToken "abcdef123456"

Resolves #430

@reubenmiller reubenmiller force-pushed the feat-register-allow-templates branch from a7a45a5 to e6b62d8 Compare February 16, 2025 19:30
@reubenmiller reubenmiller merged commit 874c4d3 into v2 Feb 16, 2025
4 checks passed
@reubenmiller reubenmiller deleted the feat-register-allow-templates branch February 16, 2025 20:09
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.

Allow templates usage for deviceregistration register command
1 participant