valuemap.delete

说明

object valuemap.delete(array valuemapids)

此方法允许删除值映射。

Description

object valuemap.delete(array valuemapids)

This method allows to delete value maps.

参数

(array) 要被删除的映射的ID。

Parameters

(array) IDs of the value maps to delete.

返回值

(object) 返回一个对象,该对象包含“VALUE”属性下的已删除值映射的ID。

Return values

(object) Returns an object containing the IDs of the deleted value maps under the valuemapids property.

示例

Examples

删除多个值映射

删除2个值映射。

Deleting multiple value maps

Delete two value maps.

Request:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "valuemap.delete",
  4. "params": [
  5. "1",
  6. "2"
  7. ],
  8. "auth": "57562fd409b3b3b9a4d916d45207bbcb",
  9. "id": 1
  10. }

Response:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "valuemapids": [
  5. "1",
  6. "2"
  7. ]
  8. },
  9. "id": 1
  10. }

来源

CValueMap::delete() in frontends/php/include/classes/api/services/CValueMap.php.