中文字幕精品av乱码在线,亚洲色大成网站www永久一区,亚洲精品无码久久久久久久,综合亚洲综合图区网友自拍,亚洲国产成人无码电影

產(chǎn)品

硅云幫助文檔中心

搜索文檔

熱門搜索詞:

創(chuàng)建安全組規(guī)則

更新時(shí)間:2020-05-21?16:36 ?版本:v1.0
分享到: ? ?
我要反饋?
收藏 我的收藏

簡要描述:


創(chuàng)建安全組規(guī)則   


請(qǐng)求url:


/ncs-server/api/v1/security/groupRule


請(qǐng)求方式:


POST


請(qǐng)求參數(shù):

   


字段
類型最大長度參數(shù)位置默認(rèn)選填
描述
groupIdstring32RequestBody
安全組id
ipInfostring32RequestBody
ipv4Cidr
directionstring16RequestBody
方向,ingress egress出口   
ethertypestring16RequestBody
目前固定傳IPv4
protocolstring16RequestBody
協(xié)議,tcp,udp,icmp,gre
minPortint10RequestBody選填0 到65535,minPort應(yīng)該小于等于maxPort,根據(jù)協(xié)議判斷是否需要填 ,tcp udp需要填,gre,icmp不需要
macPortint10RequestBody選填0 到65535,根據(jù)協(xié)議判斷是否需要填,tcp udp需要填,gre,icmp不需要




請(qǐng)求示例:


POST /ncs-server/api/v1/security/groupRule HTTP/1.1
Content-Type: application/json
request_id: 2942183558593ffc9d75fb8e16793ff
api_key: 1706006863049654272
signature: 3b289b8f32e3e0b99720ad556ae3d67e74dd5b29888ebb332bb315e279cdd3ef
Content-Type: application/json

{
    "groupId": "sg-3h63zui26a222",
    "ipInfo": "192.168.0.0/16",
    "direction": "ingress",
    "ethertype": "IPv4",
    "protocol": "tcp",
    "minPort": 80,
    "maxPort": 80
}


返回示例:


{
    "status": 2000,
    "message": "success",
    "data": {
        "userAccount": "z8z87878",
        "remoteId": "df1d74c1-8ab2-40f3-837f-58287b10958f",
        "groupId": "sg-3h63zui26a222",
        "remoteGroupeId": "6f6013bf-989c-4a8c-b7a5-c50a01d6849e",
        "ruleType": "self",
        "ipInfo": "192.168.0.0/16",
        "direction": "ingress",
        "ethertype": "IPv4",
        "protocol": "tcp",
        "minPort": 80,
        "maxPort": 80,
        "id": "1706469912063246336"
    }
}


實(shí)例數(shù)據(jù)結(jié)構(gòu):


字段類型
描述
idstring安全組規(guī)則id
userAccount
string用戶名
groupId
string安全組id
ipInfo
stringip cidr
direction
string協(xié)議方向
ethertyp
string以太網(wǎng)類型 IPv4
protocol
string協(xié)議
minPortint端口左區(qū)間,沒有不返回
maxPortint端口右區(qū)間,沒有不返回
createTimelong創(chuàng)建時(shí)間時(shí)間戳,精確到毫秒










您對(duì)該文檔有什么建議?

您對(duì)該文檔的評(píng)分:

本文導(dǎo)航

簡要描述:

請(qǐng)求url:

請(qǐng)求方式:

請(qǐng)求參數(shù):

請(qǐng)求示例:

返回示例:

搜索文檔