RestAPI Exemple
# Port adminStatus
PATCH /api/v1.3/inventory/ports/1_1_x5?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: application/json
Cookie: JSESSIONID=A57C6FF5D57AB34F40EFA3B78D500EE0
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 84
{
"portId" : "1/1/x5",
"portType" : "network",
"adminStatus" : "down"
}
# PortGroup
POST /api/v1.3/portConfig/portGroups?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: */*
Cookie: JSESSIONID=D6825465646B8852DBBE96DA79953683
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 177
{
"alias" : "PortG1",
"ports" : [ "1/1/x6", "1/1/x7", "1/1/x8" ],
"smartLb" : false,
"healthState" : "green",
"clusterId" : "10.10.7.154",
"tags" : [ ]
}
# Delete PortGroup
DELETE /api/v1.3/portConfig/portGroups/PortG1?clusterId=10.10.7.154
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: */*
Cookie: JSESSIONID=D6825465646B8852DBBE96DA79953683
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 167
# Create MAP
POST /api/v1.3/maps?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: application/json
Cookie: JSESSIONID=127538AEFA4D24C72B1D7481A3721833
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 538
{
"alias" : "sbbaek",
"type" : "regular",
"subType" : "byRule",
"srcPorts" : [ "1/1/x9" ],
"dstPorts" : [ "1/1/x10" ],
"rules" : {
"passRules" : [ {
"ruleId" : 1,
"bidi" : true,
"matches" : [ {
"type" : "ipVer",
"value" : "v4"
} ]
}, {
"ruleId" : 2,
"bidi" : true,
"matches" : [ {
"type" : "ipVer",
"value" : "v6"
} ]
} ]
},
"ruleMatching" : "normal",
"enable" : true,
"tags" : [ ]
}
# Delete MAP
DELETE /api/v1.3/maps/sbbaek?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: */*
Cookie: JSESSIONID=127538AEFA4D24C72B1D7481A3721833
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 167
# Add Rule
POST /api/v1.3/maps/isd/rules/pass?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: */*
Cookie: JSESSIONID=F6DB53DB7AB04330B3589DFA15871A29
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 327
{
"ruleId": 2,
"bidi": true,
"matches": [
{
"type": "ip4Dst",
"value": "1.1.1.2",
"netMask": "255.255.255.255"
},
{
"type": "portDst",
"value": 443
}
]
}
# Create Flexible-inline MAP
POST /api/v1.3/maps?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: application/json
Cookie: JSESSIONID=8E2FE8F03710427E5004FC304ED71239
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 811
{
"alias" : "WEB",
"clusterId" : "10.10.7.154",
"type" : "flexInline",
"subType" : "byRule",
"srcPorts" : [ "default_inline_net_1_3_2" ],
"dstPorts" : [ ],
"flexInlineFailover" : "bypass",
"flexInline" : {
"aToB" : {
"type" : "tools",
"tools" : [ "iT1" ]
},
"bToA" : {
"type" : "reverse"
},
"tag" : {
"type" : "auto",
"vlanId" : 4000
}
},
"rules" : {
"passRules" : [ {
"ruleId" : 1,
"bidi" : true,
"matches" : [ {
"type" : "portDst",
"value" : 80
} ]
}, {
"ruleId" : 2,
"bidi" : true,
"matches" : [ {
"type" : "portDst",
"value" : 443
} ]
} ]
},
"enable" : true
}
# Create Flexible-inline MAP Collector
POST /api/v1.3/maps?clusterId=10.10.7.154 HTTP/1.1
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4xMjNBISE=
Accept: application/json
Cookie: JSESSIONID=8E2FE8F03710427E5004FC304ED71239
Host: 10.10.7.161
Connection: close
User-Agent: Paw/3.1.10 (Macintosh; OS X/10.15.3) GCDHTTPRequest
Content-Length: 1436
{
"alias" : "Collector",
"clusterId" : "10.10.7.154",
"type" : "flexInline",
"subType" : "collector",
"srcPorts" : [ "default_inline_net_1_3_2" ],
"dstPorts" : [ ],
"flexInlineFailover" : "bypass",
"flexInline" : {
"aToB" : {
"type" : "tools",
"tools" : [ "iT2" ]
},
"bToA" : {
"type" : "reverse"
},
"tag" : {
"type" : "auto",
"vlanId" : 3999
}
},
"roles" : {
"owners" : [ "admin" ],
"viewers" : [ ],
"editors" : [ ],
"listeners" : [ ]
},
"enable" : true
}
'업무이야기 > 패킷전달플랫폼' 카테고리의 다른 글
Cluster A (0) | 2020.06.03 |
---|---|
FM5801 CLI (0) | 2020.06.03 |
How To: Packet capture on Gigamon interface (0) | 2020.06.03 |
AFP, ASF Sample (0) | 2020.01.02 |
GigaSMART De-duplication (0) | 2019.09.23 |