硅云帮助文档中心
搜索文档
热门搜索词:
产品简介
产品定价
入门指南
经典案例
快照
常见问题
知识拓展
名词解释
API参考
更新安全组
/ncs-server/api/v1/host/updateSecurityGroup
PUT
| 字段 | 类型 | 最大长度 | 参数位置 | 默认选填 | 描述 |
| hostId | string | 32 | RequestBody | 实例id | |
| securityGroupList | list<SecurityGroup > | RequestBody | 设置的安全组,若一个安全组都不想设置,传递空数组 [] |
securityGroupList:
| 字段 | 类型 | 最大长度 | 描述 |
| 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"
}您对该文档有什么建议?
本文导航