- ReplicaSet
- Run a container via replicaSetPOST
- Commit container as an image via replicaSetPOST
- Execute a command in the container via replicaSetPOST
- Patch a container via replicaSetPATCH
- Rollback a container via replicaSetPATCH
- Stop a container via replicaSetPATCH
- Restart a container via replicaSetPATCH
- Pause a replicaSet via replicaSetPATCH
- Continue a replicaSet via replicaSetPATCH
- Get version info about replicaSetGET
- Get all version info about replicaSetGET
- Delete a container via replicaSetDELETE
- Volume
- Resource
Get port usage status
GET
/api/v1/resources/ports
Request
None
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:2378/api/v1/resources/ports'
Responses
🟢200OK
application/json
Body
code
integerÂ
required
msg
stringÂ
required
data
objectÂ
required
ports
objectÂ
required
Example
{
"code": 200,
"msg": "Success",
"data": {
"ports": {
"StartPort": 40000,
"EndPort": 65535,
"AvailableCount": 25536,
"UsedPortSet": {
"40000": {},
"40001": {}
}
}
}
}
Modified at 2024-01-23 03:04:14