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: add device registration command #428

Draft
wants to merge 3 commits into
base: v2
Choose a base branch
from

Conversation

reubenmiller
Copy link
Owner

@reubenmiller reubenmiller commented Feb 4, 2025

Add device registration command which calls the Cumulocity Bulk Registration API to support registering devices using either Certificates or Basic Auth.

Examples

$ c8y deviceregistration bulk register --id "ASDF098SD1J10912UD92JDLCNCU8"
Register a new device using BASIC authentication and generate a random password (printed on the console)

$ c8y deviceregistration bulk register --id "ASDF098SD1J10912UD92JDLCNCU8" --password "example"
Register a new device using a user specificied password

$ c8y deviceregistration bulk register --id "ASDF098SD1J10912UD92JDLCNCU8" --auth-type CERTIFICATES 
Register a new device that will be connecting using x509 certificates (the certificate must be uploaded separately)

$ echo -e "device1\ndevice2" | c8y deviceregistration bulk register --type linux --template "{name: input.value}"
Register 2 devices, and set the names based on their external id (using basic auth)

@reubenmiller reubenmiller force-pushed the feat-device-registration-api branch from ce3ff6b to 84a1210 Compare February 9, 2025 19:18
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.

1 participant