[comment]: # translation:outdated

[comment]: # ({a17bb95b-a17bb95b})
# > Webes forgatókönyv objektum

A következő objektumok közvetlenül kapcsolódnak a "webcheck" API-hoz.

[comment]: # ({/a17bb95b-a17bb95b})

[comment]: # ({de411d0c-e60908bb})
### Web scenario

A webes forgatókönyv objektum a következő tulajdonságokkal rendelkezik.¶

|Property|[Type](/manual/api/reference_commentary#data_types)|Description|
|--|--|------|
|httptestid|string|*(readonly)* ID of the web scenario.|
|**hostid**<br>(required)|string|ID of the host that the web scenario belongs to.|
|**name**<br>(required)|string|Name of the web scenario.|
|agent|string|User agent string that will be used by the web scenario.<br><br>Default: Zabbix|
|authentication|integer|Authentication method that will be used by the web scenario.<br><br>Possible values:<br>0 - *(default)* none;<br>1 - basic HTTP authentication;<br>2 - NTLM authentication.|
|delay|string|Execution interval of the web scenario. Accepts seconds, time unit with suffix and user macro.<br><br>Default: 1m.|
|headers|array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|HTTP headers that will be sent when performing a request.|
|http\_password|string|Password used for basic HTTP or NTLM authentication.|
|http\_proxy|string|Proxy that will be used by the web scenario given as *http://\[username\[:password\]@\]proxy.example.com\[:port\]*.|
|http\_user|string|User name used for basic HTTP or NTLM authentication.|
|nextcheck|timestamp|*(readonly)* Time of the next web scenario execution.|
|retries|integer|Number of times a web scenario will try to execute each step before failing.<br><br>Default: 1.|
|ssl\_cert\_file|string|Name of the SSL certificate file used for client authentication (must be in PEM format).|
|ssl\_key\_file|string|Name of the SSL private key file used for client authentication (must be in PEM format).|
|ssl\_key\_password|string|SSL private key password.|
|status|integer|Whether the web scenario is enabled.<br><br>Possible values are:<br>0 - *(default)* enabled;<br>1 - disabled.|
|templateid|string|*(readonly)* ID of the parent template web scenario.|
|variables|array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|Web scenario variables.|
|verify\_host|integer|Whether to verify that the host name specified in the SSL certificate matches the one used in the scenario.<br><br>Possible values are:<br>0 - *(default)* skip host verification;<br>1 - verify host.|
|verify\_peer|integer|Whether to verify the SSL certificate of the web server.<br><br>Possible values are:<br>0 - *(default)* skip peer verification;<br>1 - verify peer.|
|uuid|string|*(readonly on already existing web scenarios)*<br>Global unique identifier, used for linking imported web scenarios to already existing ones. Used only for web scenarios on templates.|

Vegye figyelembe, hogy egyes módszereknél (frissítés, törlés) a kötelező/választható paraméterkombináció eltérő.

[comment]: # ({/de411d0c-e60908bb})

[comment]: # ({77f50b6b-c7ab7fb0})
### Web scenario tag

A webes forgatókönyv címke objektum a következő tulajdonságokkal rendelkezik.¶

|Property|[Type](/manual/api/reference_commentary#data_types)|Description|
|--|--|------|
|**tag**<br>(required)|string|Web scenario tag name.|
|value|string|Web scenario tag value.|

[comment]: # ({/77f50b6b-c7ab7fb0})

[comment]: # ({bec454ad-eb20f47d})
### Scenario step

A forgatókönyv-lépés objektum egy adott webes forgatókönyv-ellenőrzést határoz meg. Melynek megvan a következő tulajdonságai.

|Property|[Type](/manual/api/reference_commentary#data_types)|Description|
|--|--|------|
|httpstepid|string|*(readonly)* ID of the scenario step.|
|**name**<br>(required)|string|Name of the scenario step.|
|**no**<br>(required)|integer|Sequence number of the step in a web scenario.|
|**url**<br>(required)|string|URL to be checked.|
|follow\_redirects|integer|Whether to follow HTTP redirects.<br><br>Possible values are:<br>0 - don't follow redirects;<br>1 - *(default)* follow redirects.|
|headers|array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|HTTP headers that will be sent when performing a request. Scenario step headers will overwrite headers specified for the web scenario.|
|httptestid|string|*(readonly)* ID of the web scenario that the step belongs to.|
|posts|string<br>array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|HTTP POST variables as a string (raw post data) or as an array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field) (form field data).|
|required|string|Text that must be present in the response.|
|retrieve\_mode|integer|Part of the HTTP response that the scenario step must retrieve.<br><br>Possible values are:<br>0 - *(default)* only body;<br>1 - only headers;<br>2 - headers and body.|
|status\_codes|string|Ranges of required HTTP status codes separated by commas.|
|timeout|string|Request timeout in seconds. Accepts seconds, time unit with suffix and user macro.<br><br>Default: 15s. Maximum: 1h. Minimum: 1s.|
|variables|array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|Scenario step variables.|
|query\_fields|array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field)|Query fields - array of [HTTP fields](/manual/api/reference/httptest/object#HTTP field) that will be added to URL when performing a request|

[comment]: # ({/bec454ad-eb20f47d})

[comment]: # ({05773163-d69e8b7b})
### HTTP field

A HTTP-mezőobjektum egy nevet és értéket határoz meg a megadáshoz
változó, HTTP fejléc, lekérdezési mező adatok POST űrlapmezőadatai. Megvan
a következő tulajdonságai.

|Property|[Type](/manual/api/reference_commentary#data_types)|Description|
|--|--|------|
|**name**<br>(required)|string|Name of header / variable / POST or GET field.|
|**value**<br>(required)|string|Value of header / variable / POST or GET field.|

[comment]: # ({/05773163-d69e8b7b})
