- 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
Create a volume
POST
/api/v1/volumes
Request
Body Params application/json
name
string
required
size
string
required
Example
{
"name": "bar",
"size": "20GB"
}
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 POST 'http://127.0.0.1:2378/api/v1/volumes' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "bar",
"size": "20GB"
}'
Responses
🟢200OK
application/json
Body
code
integer
required
msg
string
required
data
object
required
name
string
required
size
string
required
Example
{
"code": 200,
"msg": "Success",
"data": {
"name": "bar-1",
"size": "20GB"
}
}
Modified at 2024-01-23 02:24:20