Browse code

Merge pull request #19846 from shin-/remote_api_container_update_doc

Update example request for container update in docs.

Sebastiaan van Stijn authored on 2016/01/31 01:05:55
Showing 2 changed files
... ...
@@ -1034,20 +1034,16 @@ Update resource configs of one or more containers.
1034 1034
        Content-Type: application/json
1035 1035
 
1036 1036
        {
1037
-           "UpdateConfig": {
1038
-               "Resources": {
1039
-                   "BlkioWeight": 300,
1040
-                   "CpuShares": 512,
1041
-                   "CpuPeriod": 100000,
1042
-                   "CpuQuota": 50000,
1043
-                   "CpusetCpus": "0,1",
1044
-                   "CpusetMems": "0",
1045
-                   "Memory": 314572800,
1046
-                   "MemorySwap": 514288000,
1047
-                   "MemoryReservation": 209715200,
1048
-                   "KernelMemory": 52428800,
1049
-               }
1050
-           }
1037
+         "BlkioWeight": 300,
1038
+         "CpuShares": 512,
1039
+         "CpuPeriod": 100000,
1040
+         "CpuQuota": 50000,
1041
+         "CpusetCpus": "0,1",
1042
+         "CpusetMems": "0",
1043
+         "Memory": 314572800,
1044
+         "MemorySwap": 514288000,
1045
+         "MemoryReservation": 209715200,
1046
+         "KernelMemory": 52428800,
1051 1047
        }
1052 1048
 
1053 1049
 **Example response**:
... ...
@@ -1034,20 +1034,16 @@ Update resource configs of one or more containers.
1034 1034
        Content-Type: application/json
1035 1035
 
1036 1036
        {
1037
-           "UpdateConfig": {
1038
-               "Resources": {
1039
-                   "BlkioWeight": 300,
1040
-                   "CpuShares": 512,
1041
-                   "CpuPeriod": 100000,
1042
-                   "CpuQuota": 50000,
1043
-                   "CpusetCpus": "0,1",
1044
-                   "CpusetMems": "0",
1045
-                   "Memory": 314572800,
1046
-                   "MemorySwap": 514288000,
1047
-                   "MemoryReservation": 209715200,
1048
-                   "KernelMemory": 52428800,
1049
-               }
1050
-           }
1037
+         "BlkioWeight": 300,
1038
+         "CpuShares": 512,
1039
+         "CpuPeriod": 100000,
1040
+         "CpuQuota": 50000,
1041
+         "CpusetCpus": "0,1",
1042
+         "CpusetMems": "0",
1043
+         "Memory": 314572800,
1044
+         "MemorySwap": 514288000,
1045
+         "MemoryReservation": 209715200,
1046
+         "KernelMemory": 52428800,
1051 1047
        }
1052 1048
 
1053 1049
 **Example response**: