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. Module Contents --------------- .. 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:function:: create_signer_for_domain(domain_name, issuing_ca) Creates a signer certificate for a domain using the domain's issuing CA. .. py:class:: Command(stdout=None, stderr=None, no_color=False, force_color=False) Bases: :py:obj:`django.core.management.base.BaseCommand`, :py:obj:`trustpoint.logger.LoggerMixin` 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:: log_and_stdout(message, level = 'info') Log a message and write it to stdout. :param message: The message to log and print. :type message: str :param level: The logging level ('info', 'warning', 'error', etc.). :type level: str .. py:method:: handle(*_args, **_kwargs) Execute the command.