commands.add_domains_and_devices ================================ .. py:module:: commands.add_domains_and_devices .. autoapi-nested-parse:: Adds Issuing CAs, Domains and Devices with different onboarding protocols. Classes ------- .. autoapisummary:: commands.add_domains_and_devices.Command Functions --------- .. autoapisummary:: commands.add_domains_and_devices._get_secret commands.add_domains_and_devices.get_random_no_onboarding_pki_protocols commands.add_domains_and_devices.get_random_onboarding_pki_protocols Module Contents --------------- .. py:function:: _get_secret(number_of_symbols = 16) Generates a secret with the number of symbols provided. :param number_of_symbols: Number of symbols of the generated secret. Defaults to 16. :returns: The generated secret. .. py:function:: get_random_no_onboarding_pki_protocols() Gets random allowed PkiProtocols. :param include_protocol: This protocol will be included in the allowed list. :returns: A list of PkiProtocols. .. py:function:: get_random_onboarding_pki_protocols(include_protocol = None) Gets random allowed PkiProtocols. :param include_protocol: This protocol will be included in the allowed list. :returns: A list of PkiProtocols. .. py:class:: Command(stdout=None, stderr=None, no_color=False, force_color=False) Bases: :py:obj:`django.core.management.base.BaseCommand` Add domains and associated device names with random onboarding protocol and serial number. .. py:attribute:: help :value: 'Add domains and associated device names with random onboarding protocol and serial number' .. py:method:: handle(*_args, **_kwargs) Execute the command.