On this page

图像 object

以下objects与imageAPI直接相关。

图像

图像对象具有以下属性。

Property Type Description
imageid ID 图像的 ID。

Property behavior:
- read-only
- required for update operations
name string 图像名称。

Property behavior:
- required for create operations
imagetype integer 图像类型。

Possible values:
1 - (default) 图标;
2 - 背景图像。

Property behavior:
- constant
- required for create operations
image string Base64 编码的图像。
编码后图像的最大大小为 1 MB。可通过更改 ZBX_MAX_IMAGE_SIZE 常量值来调整最大大小。
支持的图像格式:PNG、JPEG、GIF 和 WebP。

Property behavior:
- required for create operations