[comment]: # ({59b410c0-59b410c0})
# hostinterface.עדכון

[comment]: # ({/59b410c0-59b410c0})

[comment]: # ({253ed57f-253ed57f})
### תיאור

`object hostinterface.update(object/array hostInterfaces)`

שיטה זו מאפשרת לעדכן ממשקי מארח קיימים.

::: noteclassic
שיטה זו זמינה רק ל-*Admin* ו-*Super Admin*
סוגי משתמשים. ניתן לבטל הרשאות לקרוא לשיטה בתפקיד משתמש
הגדרות. ראה [משתמש
תפקידים](/manual/web_interface/frontend_sections/administration/user_roles)
למידע נוסף.
:::

[comment]: # ({/253ed57f-253ed57f})

[comment]: # ({a99ac0ad-a99ac0ad})
### פרמטרים

`(object/array)` [מאפייני ממשק מארח](object#host_interface) to
לְהִתְעַדְכֵּן.

יש להגדיר את המאפיין 'interfaceid' עבור כל ממשק מארח, הכל
נכסים אחרים הם אופציונליים. רק המאפיינים הנתונים יהיו
עודכן, כל השאר יישארו ללא שינוי.

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

[comment]: # ({d3be3202-d3be3202})
### החזר ערכים

`(object)` מחזירה אובייקט המכיל את המזהים של המארח המעודכן
ממשקים תחת המאפיין 'interfaceids'.

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

[comment]: # ({b41637d2-b41637d2})
### דוגמאות

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

[comment]: # ({9c8f9b56-eb8b35e8})
#### שינוי יציאת ממשק מארח

שנה את היציאה של ממשק מארח.

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "hostinterface.update",
     "params": {
         "interfaceid": "30048",
         "port": "30050"
     },
     "auth": "038e1d7b1735c6a5436ee9eae095879e",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "interfaceids": [
             "30048"
         ]
     },
     "מזהה": 1
}
```

[comment]: # ({/9c8f9b56-eb8b35e8})

[comment]: # ({97e4c8d0-97e4c8d0})
### מקור

CHostInterface::update()‎ בתוך
*ui/include/classes/api/services/CHostInterface.php*.

[comment]: # ({/97e4c8d0-97e4c8d0})
