Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

configuration.export

?????

string configuration.export(??????? ???????)

???? ?? ?????? ????? ????? ????? ??????? ??????.

???? ?? ????? ???????? ??? ???. ???? ???? ?????? ?????? ?????? ??????? ?????? ??????. ??? ?????? ????? ????? ????.

???????

(object) ??????? ???????? ?? ?????????? ?????? ??? ?????? ??????.

????? ??? ?????
?????
(????)
?????? ????? ??? ?? ????? ?? ???????.

????? ???????:
yaml - YAML;
xml - XML ;
json - JSON;
raw - ???? PHP ?? ?????.
prettyprint boolean ???? ?? ???? ?????? ?????? ???? ?? ??? ????? ????.

????? ???????:
true - add indentation;
false - (????? ????) ??? ?????? ???? .
options
(????)
object ????????? ??????.

???????? options ?? ?? ???????? ?????:
groups - (????) ????? ?? ?????? ???? ??????;
hosts - (????) ???? ?????? ?????;
?????? - (????) ???? ?????? ??????;
???? - ( array) ???? ???? ??????;
mediaTypes - (array) ???? ???? ???? ??????;
templates - (array) ???? ?????? ??????.

???? ?????

(??????) ?????? ?????? ?????? ?????? ?? ????? ?????? ????????.

???????

????? ?????

???? ?? ?????? ?? ????? "10571" ??????? XML.

?????????:

{
            "jsonrpc": "2.0",
            "method": "configuration.export",
            "params": {
                "????????": {
                    "??????": [
                        "10571"
                    ]
                },
                "format": "xml"
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "result": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<zabbix_export><version>6.0</version><date>2023-01-01T12:00: 00Z</date><groups><group><uuid>7df96b18c230490a9a0a9e2307226338</uuid><name>??????</name></group></groups><templates><template><uuid>5aef0444a82a4c9d</u344a82a4c9d</u344a82a4c9d> template>????? ????</template><name>????? ????</name><groups><group><name>??????</name></group></groups><items><item><uuid>7f1e6f1e48aa4a128e5b6a958a5d11c3< /uuid><name>???? ???? Áú»¢¶Ä²©</name><key>agent.ping</key></item><item><uuid>77ba228662be4570830aa3c503fcdc03</uuid><name>??? ?????? ?? ??? Apache</name><type >DPENDENT</type><key>apache.server.uptime</key><delay>0</delay><trends>0</trends><value_type>TEXT</value_type><preprocessing><step><type >REGEX</type><parameters><parameter><dt>??? ?????? ????: (.*)</dt></parameter><parameter>\\1</parameter></parameters></step> </preprocessing><master_item><key>web.page.get[127.0.0.1/server-status]</key></master_item></item><item><uuid>6805d4c39a624a8bab2cc8ab63df1ab3</uuid><name> ???? ????</name><key>system.cpu.load</key><value_type>FLOAT</value_type><triggers><trigger><uuid>ab4c2526c2bc42e48a633082255ebcb3</uuid><expression>avg(/New template/system .cpu.load,3m)>2</expression><name>???? ???? ???? ??? ?? '???? ???' ???? 3 ????</name><priority>?????</priority></trigger></triggers>< /item><item><uuid>590efe5731254f089265c76ff9320726</uuid><name>????? ??? Apache</name><key>web.page.get[127.0.0.1/server-status]</key><trends>0< /trends><value_type>TEXT</value_type></item></items><valuemaps><valuemap><uuid>8fd5814c45d44a00a15ac6eaae1f3946</uuid><name>???? ???? Áú»¢¶Ä²©</name><mappings><mapping>< value>1</value><newvalue>????</newvalue></mapping><mapping><value>0</value><newvalue>?? ????</newvalue></mapping></mappings></valuemap ></valuemaps></template></templates></zabbix_export>\n",
            "????": 1
       }

????

CConfiguration::export() ?-ui/include/classes/api/services/CConfiguration.php.