最新活动 七周年庆典

产品

硅云帮助文档中心

搜索文档

热门搜索词:

更新安全组

更新时间:2020-05-21 16:31  版本:v1.0
分享到:
我要反馈 
收藏 我的收藏

简要描述:


    更新安全组


请求url:


/ncs-server/api/v1/host/updateSecurityGroup


请求方式:


PUT


请求参数:


字段
类型最大长度参数位置默认选填
描述
hostId
string32RequestBody
实例id
securityGroupList
list<SecurityGroup
>

RequestBody
设置的安全组,若一个安全组都不想设置,传递空数组 []


securityGroupList:


字段
类型最大长度描述
id
string32安全组id
typestring16安全组类型,官方安全组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"
}












您对该文档有什么建议?

您对该文档的评分:

本文导航

简要描述:

请求url:

请求方式:

请求参数:

请求示例:

返回示例:

搜索文档