This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents

create()

This function allows you to create a image as defined by the image data array.

Parameters

Parameter Type Optional Description Details
image data array or object Array of Image objects or a single object imageid shouldn't be specified
image must be sent as base64 encoded binary data

Returns

Parameter Description
result Operation successful. Result will contain array of created Image IDs. imageid are assigned to each Image object
error In case of any errors

Example

Create a new image:

{
       "jsonrpc": "2.0",
       "method": "image.create",
       "params": [{
           "imagetype": "1",
           "name": "ZABBIX Hub",
           "image": "iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA\/wD\/AP+gvaeTAAAAB3RJTUUH0QEfCSscTQyR+gAAB0pJREFUeNrtmU9sU8kdxz\/v2ZgskMTgZEElRULUJdqCoKxUtdoQFUF7WKpWlTih5e8CPXBBXJoT6oFegJyoRKUQULcVp4AqVSpp2ogqYtWoqD1AHAF2IshaK0gISZbYznt+M9MDM9bE2InZOGYPHcnKPMd+M9\/f7zu\/3\/f7DP8f73Y4NVijEWgFotZ6X2ddBXwBDOs5AOEaAGju6Oj40alTp361bt26VqUUxS8p5by\/Zm6uhRA8e\/bsr21tbb8HHgMCkLUC4O7Zs+cHsVisdWRk5HUo9QaFEPM2b79nXtlslu3bt9Pc3Pwx8BlQB8zpLKhwDSjq+r6PlBKAXbt2vfVNstksY2NjAPXAKiDQGRDVAvDTIn4r4O967kgpXRN5gOnMDEJK\/LyPn\/fxfK\/sjb\/77e8AmACsBt4DsoAP4FYr0tlstndmZqa3p6fnNhDR9HQBV0rpGpoACIvfSimkUjQ1xoiEI6xdGSt9gl+DXwmsAEImYOEq0STkeR6ZTIauri50muuAvFnIRB\/g4YM02VmPfBDg+x4t8bXE6iUTTzKkvSnGno\/hehG2t20qfEcIYQIesrNdDQAuEOrv76erq4tEImFSvQrIAI5SyjHRBvjgg024TohQKAQK0i\/TKKVYEQkxNyeRShJZEbaKZSEATnELCJfh8kL12tz2bzaIAwcOfJJOp\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Nn2ojD8tx2en5p5YKcXWrVsRQhRqv7mWUtLe3v7bffv2sX\/\/ftavX1\/89VBRo6u9JxZCsHv3bpRStLW1zbuWUjIwMPCbgYGBqXPnzr3ShxIglE6nP9MAXNvUL6cnLtsHTM2350IIgiAwmuk\/wJSVzh9bm7YNkVOJJ34\/2sRXmVesDtUz5U0uzRPbfPR9vyDigiAwm5BWt\/Wt7kuxiam5J\/Y8jwsXLjA0NMTmzZsZHR2lt7eXJ0+e0NfXx6NHj4xQm9OpzOoNe1bNlqUiWAtPLGOx2FFgHdAwNDRUB7iJRMIBVCKRkFZHNZvPWeoTW6cUA1huT6yAPt1wYvpvndV4TDOZA2a0JPA1dZwSUVflTMlyeWLDa+M4siX0ilGGOf1\/YxsX1TS18MTmIOb0xjIl1KKygAa2Klzg0X3hudBye2I7C8LU2UV0uiwjKfbos1JzT0ypClKB0LI98R9tUdjZ2cnRo0d5+PBh7TzxUsY3whNX4WHvu\/XESxzv3hMvcbxbT\/w1KfOTokU\/Am7rpieW0xNXi\/MfZzIZNTExoXp6ehTwCbC2KMohfb1KZyGqP7PYK2r5gEiRmKtaBlzf9\/E8j+Hh4VKPHpUl8oIy3F\/I1CsrG6raZdQB3NHRUTo7O7l7964B8Ea0SkjtSgEsuPhSRwj4GbBGC8AVumr8RRuenP07wXLU7GoAWKl\/M2jUc08r1q+ssrcsoxoUKlaxIb3h7CJi7xuTAWP1wlZzUpZalcsJ4H8M\/gzsEC35lQAAAABJRU5ErkJggg=="
       }],
       "auth": "038e1d7b1735c6a5436ee9eae095879e",
       "id": 2
       }

Image created successfully:

{
       "jsonrpc": "2.0",
       "result": {
           "imageids": ["100100000000047"]
       },
       "id": 2
       }

Image already exists:

{
       "jsonrpc": "2.0",
       "error": {
             "code": -32602,
             "message": "Invalid params.",
             "data": "[ CImage::create ] Cannot create Image"
       },
       "id":2
       }