This URL gets all the non-standard ports configured on the specified domain.
Resource URL
GET /domain/<domain_id>/nonstandardports
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain Id | Number | Yes |
Response Parameter
Field Name | Description | Data Type |
|---|---|---|
| List of non-standard ports | Array |
Details of object in NonStandardPortResponseList:
Field Name | Description | Data Type |
|---|---|---|
| "Protocol/Transport" pair | String |
| Array of assigned port numbers | Array |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/nonstandardports
Response
{
"NonStandardPortResponseList":
[
{
"protocol": "FTP/TCP",
"portAssignmentList":
[
21,
12,
32
]
},
{
"protocol": "TELNET/UDP",
"portAssignmentList":
[
23,
555
]
}
]
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |