Änderungen von Dokument Microservice Cmdlets

Zuletzt geändert von jklein am 2025/08/15 09:48

Von Version 4.2
bearbeitet von jklein
am 2025/06/24 08:35
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 4.6
bearbeitet von jklein
am 2025/06/24 10:56
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -634,173 +634,57 @@
634 634  
635 635  Dieses Beispiel fügt eine neue Templatekonfiguration mit dem Namen "Test" auf Basis des $templateConfig-Objekts hinzu. Die Standardverbindung wird verwendet.
636 636  
637 -
638 -**Beispiel Funktion in PowerShell**
639 -
640 -|(((
641 -1
642 -
643 -2
644 -
645 -3
646 -
647 -4
648 -
649 -5
650 -
651 -6
652 -
653 -7
654 -
655 -8
656 -
657 -9
658 -
659 -10
660 -
661 -11
662 -
663 -12
664 -
665 -13
666 -)))|(((
667 -function Add-MicroserviceTemplate {
668 -
637 +{{apimacro title="Beispiel der Funktion in PowerShell"}}
638 +{{code language="PowerShell" layout="LINENUMBERS"}}
639 +function Add-MicroserviceTemplate {
669 669   param (
670 -
671 671   [string]$Name
672 -
673 673   )
674 -
675 -
676 - $packages = Get-AESBMicroservicePackages
677 -
678 -
679 - $microserviceTemplateConfig = New-AESBMicroserviceTemplateConfig -PackageName $packages[0].PackageName -PackageVersion $packages[0].PackageVersions[0]
680 -
681 -
682 - $addMicroserviceResult = Add-AESBMicroserviceTemplate -TemplateName $Name -TemplateConfig $microserviceTemplateConfig
683 -
684 -
685 - return $addMicroserviceResult
686 -
643 +
644 + $packages = Get-AESBMicroservicePackages
645 +
646 + $microserviceTemplateConfig = New-AESBMicroserviceTemplateConfig -PackageName $packages[0].PackageName -PackageVersion $packages[0].PackageVersions[0]
647 +
648 + $addMicroserviceResult = Add-AESBMicroserviceTemplate -TemplateName $Name -TemplateConfig $microserviceTemplateConfig
649 +
650 + return $addMicroserviceResult
687 687  }
688 -)))
652 +{{/code}}
653 +{{/apimacro}}
689 689  
690 -
691 -
692 -**Beispiel Template Konfiguration**
693 -
694 -|(((
695 -1
696 -
697 -2
698 -
699 -3
700 -
701 -4
702 -
703 -5
704 -
705 -6
706 -
707 -7
708 -
709 -8
710 -
711 -9
712 -
713 -10
714 -
715 -11
716 -
717 -12
718 -
719 -13
720 -
721 -14
722 -
723 -15
724 -
725 -16
726 -
727 -17
728 -
729 -18
730 -
731 -19
732 -
733 -20
734 -
735 -21
736 -
737 -22
738 -
739 -23
740 -
741 -24
742 -
743 -25
744 -
745 -26
746 -)))|(((
747 -$templateConfig = "<MicroserviceConfiguration Version=`"1.11.0.895`" Type=`"SnmpConnector`" SessionKey=`"bcafdb4e94f2572eed78525430ad0e0275229f98`">
748 -
655 +{{apimacro title="Beispiel der Template-Konfiguration"}}
656 +{{code language="PowerShell" layout="LINENUMBERS"}}
657 +$templateConfig = "<MicroserviceConfiguration Version=`"1.11.0.895`" Type=`"SnmpConnector`" SessionKey=`"bcafdb4e94f2572eed78525430ad0e0275229f98`">
749 749   <SnmpConnectorConfiguration>
750 -
751 751   <SnmpReader>
752 -
753 753   <ParallelRequests>10</ParallelRequests>
754 -
755 755   <SchedulingConfig>
756 -
757 757   <SchedulingConfig_Scheduling>Interval</SchedulingConfig_Scheduling>
758 -
759 759   <SchedulingConfig_Interval>P1D</SchedulingConfig_Interval>
760 -
761 761   <SchedulingConfig_IgnoreLastExecutionTime>false</SchedulingConfig_IgnoreLastExecutionTime>
762 -
763 763   </SchedulingConfig>
764 -
765 765   <Groups />
766 -
767 767   <GlobalCredentialLists>
768 -
769 769   <GlobalCredentials />
770 -
771 771   <GlobalCredentialsNoPriv />
772 -
773 773   <GlobalCredentialsNoAuthNoPriv />
774 -
775 775   </GlobalCredentialLists>
776 -
777 777   </SnmpReader>
778 -
779 779   <SnmpWriters>
780 -
781 781   <DescriptionWriteMode>Keep</DescriptionWriteMode>
782 -
783 783   <LocationWriteMode>Ignore</LocationWriteMode>
784 -
785 785   <ContactWriteMode>Ignore</ContactWriteMode>
786 -
787 787   <ProcessorWriter />
788 -
789 789   <DispatcherStarter />
790 -
791 791   <FileDumper />
792 -
793 793   </SnmpWriters>
794 -
795 795   </SnmpConnectorConfiguration>
796 -
797 797  </MicroserviceConfiguration>"
798 -)))
683 +{{/code}}
684 +{{/apimacro}}
799 799  
686 +=== **Rückgabewerte** ===
800 800  
801 -
802 -==== 12.2. **Rückgabewerte** ====
803 -
804 804  Bei erfolgreicher Anwendung bekommt man zwei Objekte zurück.
805 805  
806 806  * String
... ... @@ -817,69 +817,25 @@
817 817  ** Version
818 818  *** Die Versionierung des Templates
819 819  
820 -
821 -
822 -**Beispiel Template Konfiguration**
823 -
824 -|(((
825 -1
826 -
827 -2
828 -
829 -3
830 -
831 -4
832 -
833 -5
834 -
835 -6
836 -
837 -7
838 -
839 -8
840 -
841 -9
842 -
843 -10
844 -
845 -11
846 -
847 -12
848 -
849 -13
850 -
851 -14
852 -)))|(((
853 -Successfully added template 'Test'.
854 -
855 -
856 -TemplateId    : 119398aa-8108-43bd-811b-bd3e703e7f5c
857 -
704 +{{apimacro title="Rückgabewerte der Template-Konfiguration"}}
705 +{{code language="PowerShell" layout="LINENUMBERS"}}
706 +Successfully added template 'Test'.
707 +
708 +TemplateId : 119398aa-8108-43bd-811b-bd3e703e7f5c
858 858  Configuration : <SnmpConnectorConfiguration><SnmpReader><ParallelRequests>10</ParallelRequests><SchedulingConfig><Sched
859 -
860 860   ulingConfig_Scheduling>Interval</SchedulingConfig_Scheduling><SchedulingConfig_Interval>P1D</Scheduling
861 -
862 862   Config_Interval><SchedulingConfig_IgnoreLastExecutionTime>false</SchedulingConfig_IgnoreLastExecutionTi
863 -
864 864   me></SchedulingConfig><Groups /><GlobalCredentialLists><GlobalCredentials /><GlobalCredentialsNoPriv
865 -
866 866   /><GlobalCredentialsNoAuthNoPriv /></GlobalCredentialLists></SnmpReader><SnmpWriters><DescriptionWriteM
867 -
868 868   ode>Keep</DescriptionWriteMode><LocationWriteMode>Ignore</LocationWriteMode><ContactWriteMode>Ignore</C
869 -
870 870   ontactWriteMode><ProcessorWriter /><DispatcherStarter /><FileDumper
871 -
872 872   /></SnmpWriters></SnmpConnectorConfiguration>
717 +Name : Test
718 +Type : SnmpConnector
719 +Version : 1.11.0.895
720 +{{/code}}
721 +{{/apimacro}}
873 873  
874 -Name          : Test
875 -
876 -Type          : SnmpConnector
877 -
878 -Version       : 1.11.0.895
879 -)))
880 -
881 -
882 -
883 883  == Export-MicroserviceTemplateConfig ==
884 884  
885 885  == Get-AESBMicroserviceTemplateConfig ==
© Aagon GmbH 2025
Besuchen Sie unsere Aagon-Community