硅云幫助文檔中心
搜索文檔
熱門搜索詞:
產(chǎn)品簡(jiǎn)介
產(chǎn)品定價(jià)
入門指南
經(jīng)典案例
快照
常見(jiàn)問(wèn)題
知識(shí)拓展
名詞解釋
API參考
產(chǎn)品規(guī)格相關(guān)接口
服務(wù)器實(shí)例相關(guān)接口
安全組相關(guān)接口
磁盤相關(guān)接口
更新安全組
更新安全組
/ncs-server/api/v1/host/updateSecurityGroup
PUT
字段 | 類型 | 最大長(zhǎng)度 | 參數(shù)位置 | 默認(rèn)選填 | 描述 |
hostId | string | 32 | RequestBody | 實(shí)例id | |
securityGroupList | list<SecurityGroup > | RequestBody | 設(shè)置的安全組,若一個(gè)安全組都不想設(shè)置,傳遞空數(shù)組 [] |
securityGroupList:
字段 | 類型 | 最大長(zhǎng)度 | 描述 |
id | string | 32 | 安全組id |
type | string | 16 | 安全組類型,官方安全組official,用戶自己的安全組類型為self |
PUT /ncs-server/api/v1/host/updateSecurityGroup HTTP/1.1 Content-Type: application/json request_id: 2942183558593ffc9d75fb8e16793ff api_key: 1706006863049654272 signature: e8dbc06dab527b04dd17656533ad87327a36fafed96e52c823f3300349d94a45 Content-Type: application/json { "hostId": "cvm-3hdk8be2b2225", "securityGroupList": [ { "id": "sg-3h63zui26a222", "type": "self" }, { "id": "guiyun-system-template-open-all", "type": "official" } ] }
{ "status": 2000, "message": "success" }
您對(duì)該文檔有什么建議?
本文導(dǎo)航