Áú»¢¶Ä²©

This is a translation of the original English documentation page. Help us make it better.

valuemap.get

?????

integer/array valuemap.get(object parameters)

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

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

???????

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

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

????? ??? ?????
valuemapids string/array ???? ?? ???? ????? ?? ?????? ???????.
selectMappings query ???? ?? ?????? ?????? ???? ??? ?????? ??????? ??????? ???????.

???? ?'count'.
sortfield string/array ???? ?? ?????? ??? ????????? ???????.

????? ??????? ??: valuemapid, name.
countOutput boolean ???????? ????, ???????? ??? ????? ?-'get', ??????? ?????? ?????? ?????????.
????? ????????
excludeSearch ??????
filter object
limit ???? ???
??? ??????
preservekeys ??????
????? ???????
searchByAny boolean
searchWildcardsEnabled ???????
sortorder ??????/????
startSearch boolean

???? ?????

(???? ???/????) ????? ???:

  • ???? ?? ?????;
  • ????? ?????????? ???????, ?? ?? ?????? countOutput ???? ?????.

???????

????? ???? ???

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

?????????:

{
            "jsonrpc": "2.0",
            "method": "valuemap.get",
            "params": {
                "output": "??????"
            },
            "auth": "57562fd409b3b3b9a4d916d45207bbcb",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "valuemapid": "4",
                    "name": "????? ????? ????? APC"
                },
                {
                    "valuemapid": "5",
                    "name": "??? ????? APC"
                },
                {
                    "valuemapid": "7",
                    "name": "Dell Open Manage System"
                }
            ],
            "????": 1
       }

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

?????????:

{
            "jsonrpc": "2.0",
            "method": "valuemap.get",
            "params": {
                "output": "??????",
                "selectMappings": "??????",
                "valuemapids": ["4"]
            },
            "auth": "57562fd409b3b3b9a4d916d45207bbcb",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "valuemapid": "4",
                    "name": "????? ????? ????? APC",
                    "???????": [
                        {
                            "type": "0",
                            "value": "1",
                            "newvalue": "?? ????"
                        },
                        {
                            "type": "0",
                            "value": "2",
                            "newvalue": "?? ?????"
                        },
                        {
                            "type": "0",
                            "value": "3",
                            "newvalue": "????"
                        },
                        {
                            "type": "0",
                            "value": "4",
                            "newvalue": "????"
                        },
                        {
                            "type": "0",
                            "value": "5",
                            "newvalue": "???????? ?????"
                        },
                        {
                            "type": "0",
                            "value": "6",
                            "newvalue": "???? ???"
                        },
                        {
                            "type": "0",
                            "value": "7",
                            "newvalue": "lowCapacity"
                        }
                    ]
                }
            ],
            "????": 1
       }

????

CValueMap::get()? ???? ui/include/classes/api/services/CValueMap.php.