|
1 | 1 | libcloud драйвер для сервиса vdsina.ru |
2 | 2 |
|
| 3 | +[https://vdsina.ru/tech/api](https://vdsina.ru/tech/api) |
3 | 4 |
|
4 | | -https://vdsina.ru/tech/api#art-04-05 |
5 | | - |
6 | | -## Поддерживаемые методы Compute |
7 | | -| Метод | Поддержка | |
8 | | -| --- | --- | |
9 | | -|attach_volume|| |
10 | | -|copy_image|| |
11 | | -|create_image|| |
12 | | -|create_key_pair|-| |
13 | | -|create_node|-| |
14 | | -|create_volume|| |
15 | | -|create_volume_snapshot|| |
16 | | -|delete_image|| |
17 | | -|delete_key_pair|-| |
18 | | -|deploy_node|| |
19 | | -|destroy_node|-| |
20 | | -|destroy_volume|| |
21 | | -|destroy_volume_snapshot|| |
22 | | -|detach_volume|| |
23 | | -|features|| |
24 | | -|get_image|| |
25 | | -|get_key_pair|-| |
26 | | -|import_key_pair_from_file|-| |
27 | | -|import_key_pair_from_string|-| |
28 | | -|list_images|-| |
29 | | -|list_key_pairs|-| |
30 | | -|list_locations|-| |
31 | | -|list_nodes|-| |
32 | | -|list_sizes|-| |
33 | | -|list_volume_snapshots|| |
34 | | -|list_volumes|| |
35 | | -|reboot_node|-| |
36 | | -|start_node|| |
37 | | -|stop_node|| |
38 | | -|wait_until_running|| |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | -## Методы DNS |
44 | | -| Метод | Поддержка | |
45 | | -| --- | --- | |
46 | | -|list zones|| |
47 | | -|list records|| |
48 | | -|create zone|| |
49 | | -|update zone|| |
50 | | -|create record|| |
51 | | -|update record|| |
52 | | -|delete zone|| |
53 | | -|delete record|| |
| 5 | +# Поддерживаемые методы Compute |
54 | 6 |
|
| 7 | +## NodeDriver |
| 8 | + |
| 9 | +### Параметры |
| 10 | + |
| 11 | +| Параметр | Поддержка | |
| 12 | +| ----------- | --------- | |
| 13 | +| key | | |
| 14 | +| secret | | |
| 15 | +| secure | | |
| 16 | +| host | | |
| 17 | +| port | | |
| 18 | +| api_version | | |
| 19 | +| region | | |
| 20 | + |
| 21 | +### Управление нодами |
| 22 | + |
| 23 | +| Метод | Поддержка | |
| 24 | +| ------------------------------------------------------------------------------------------------------------------------------------ | --------- | |
| 25 | +| [create_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.create_node) | | |
| 26 | +| [deploy_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.deploy_node) | #10 | |
| 27 | +| [destroy_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.destroy_node) | #11 | |
| 28 | +| [features](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.features) | | |
| 29 | +| [list_nodes](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_nodes) | #9 | |
| 30 | +| [reboot_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.reboot_node) | #12 | |
| 31 | +| [start_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.start_node) | | |
| 32 | +| [stop_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.stop_node) | | |
| 33 | +| [wait_until_running](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.wait_until_running) | | |
| 34 | + |
| 35 | +### Управление образами |
| 36 | + |
| 37 | +| Метод | Поддержка | |
| 38 | +| ------------------------------------------------------------------------------------------------------------------------ | --------- | |
| 39 | +| [copy_image](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.copy_image) | | |
| 40 | +| [create_image](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.create_image) | | |
| 41 | +| [delete_image](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.delete_image) | | |
| 42 | +| [get_image](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.get_image) | | |
| 43 | +| [list_images](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_images) | #3 | |
| 44 | + |
| 45 | +### Управление дисками |
| 46 | + |
| 47 | +| Метод | Поддержка | |
| 48 | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | --------- | |
| 49 | +| [attach_volume](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.attach_volume) | | |
| 50 | +| [create_volume_snapshot](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.create_volume_snapshot) | | |
| 51 | +| [create_volume](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.create_volume) | | |
| 52 | +| [destroy_volume_snapshot](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.destroy_volume_snapshot) | | |
| 53 | +| [destroy_volume](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.destroy_volume) | | |
| 54 | +| [detach_volume](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.detach_volume) | | |
| 55 | +| [list_volume_snapshots](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_volume_snapshots) | | |
| 56 | +| [list_volumes](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_volumes) | | |
| 57 | + |
| 58 | +### Управление SSH ключами |
| 59 | + |
| 60 | +| Метод | Поддержка | |
| 61 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | |
| 62 | +| [create_key_pair](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.create_key_pair) | #7 | |
| 63 | +| [delete_key_pair](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.delete_key_pair) | #6 | |
| 64 | +| [get_key_pair](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.get_key_pair) | #5 | |
| 65 | +| [import_key_pair_from_file](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.import_key_pair_from_file) | #8 | |
| 66 | +| [import_key_pair_from_string](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.import_key_pair_from_string) | #8 | |
| 67 | +| [list_key_pairs](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_key_pairs) | | |
| 68 | + |
| 69 | +### Остальные |
| 70 | + |
| 71 | +| Метод | Поддержка | |
| 72 | +| ---------------------------------------------------------------------------------------------------------------------------- | --------- | |
| 73 | +| [list_locations](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_locations) | #2 | |
| 74 | +| [list_sizes](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.NodeDriver.list_sizes) | #4 | |
| 75 | + |
| 76 | +## Методы Node |
| 77 | + |
| 78 | +### Параметры |
| 79 | + |
| 80 | +| Параметр | Поддержка | |
| 81 | +| ----------- | --------- | |
| 82 | +| id | | |
| 83 | +| name | | |
| 84 | +| state | | |
| 85 | +| public_ips | | |
| 86 | +| private_ips | | |
| 87 | +| driver | | |
| 88 | +| size | | |
| 89 | +| image | | |
| 90 | +| created_at | | |
| 91 | +| extra | | |
| 92 | + |
| 93 | +### Методы |
| 94 | + |
| 95 | +| Метод | Поддержка | |
| 96 | +| ------------------------------------------------------------------------------------------------------------ | --------- | |
| 97 | +| [destroy](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.Node.destroy) | | |
| 98 | +| [reboot](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.Node.reboot | | |
| 99 | +| [start](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.Node.start) | | |
| 100 | +| [stop_node](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.Node.stop_node) | | |
| 101 | + |
| 102 | +## Методы NodeSize |
| 103 | + |
| 104 | +### Параметры |
| 105 | + |
| 106 | +| Параметр | Поддержка | |
| 107 | +| --------- | ------------------ | |
| 108 | +| id | | |
| 109 | +| name | | |
| 110 | +| ram | | |
| 111 | +| disk | | |
| 112 | +| bandwidth | | |
| 113 | +| price | :heavy_minus_sign: | |
| 114 | +| driver | | |
| 115 | +| extra | | |
| 116 | + |
| 117 | +## NodeImage |
| 118 | + |
| 119 | +### Параметры |
| 120 | + |
| 121 | +| Параметр | Поддержка | |
| 122 | +| -------- | --------- | |
| 123 | +| id | | |
| 124 | +| name | | |
| 125 | +| driver | | |
| 126 | +| extra | | |
| 127 | + |
| 128 | +## NodeLocation |
| 129 | + |
| 130 | +### Параметры |
| 131 | + |
| 132 | +| Параметр | Поддержка | |
| 133 | +| -------- | --------- | |
| 134 | +| id | | |
| 135 | +| name | | |
| 136 | +| country | | |
| 137 | +| driver | | |
| 138 | +| extra | | |
| 139 | + |
| 140 | +## NodeAuthSSHKey |
| 141 | + |
| 142 | +### Параметры |
| 143 | + |
| 144 | +| Параметр | Поддержка | |
| 145 | +| -------- | --------- | |
| 146 | +| pubkey | | |
| 147 | + |
| 148 | +## NodeAuthPassword |
| 149 | + |
| 150 | +### Параметры |
| 151 | + |
| 152 | +| Параметр | Поддержка | |
| 153 | +| -------- | --------- | |
| 154 | +| password | | |
| 155 | + |
| 156 | +## StorageVolume |
| 157 | + |
| 158 | +### Параметры |
| 159 | + |
| 160 | +| Параметр | Поддержка | |
| 161 | +| -------- | --------- | |
| 162 | +| id | | |
| 163 | +| name | | |
| 164 | +| size | | |
| 165 | +| driver | | |
| 166 | +| state | | |
| 167 | +| extra | | |
| 168 | + |
| 169 | +### Методы |
| 170 | + |
| 171 | +| Метод | Поддержка | |
| 172 | +| ------------------------------------------------------------------------------------------------------------------------------- | --------- | |
| 173 | +| [attach](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.StorageVolume.attach) | | |
| 174 | +| [destroy](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.StorageVolume.destroy) | | |
| 175 | +| [detach](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.StorageVolume.detach) | | |
| 176 | +| [list_snapshots](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.StorageVolume.list_snapshots) | | |
| 177 | +| [snapshot](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.StorageVolume.snapshot) | | |
| 178 | + |
| 179 | +## VolumeSnapshot |
| 180 | + |
| 181 | +### Параметры |
| 182 | + |
| 183 | +| Параметр | Поддержка | |
| 184 | +| -------- | --------- | |
| 185 | +| id | | |
| 186 | +| driver | | |
| 187 | +| size | | |
| 188 | +| extra | | |
| 189 | +| created | | |
| 190 | +| state | | |
| 191 | +| name | | |
| 192 | + |
| 193 | +### Методы |
| 194 | + |
| 195 | +| Метод | Поддержка | |
| 196 | +| ------------------------------------------------------------------------------------------------------------------ | --------- | |
| 197 | +| [destroy](https://libcloud.readthedocs.io/en/stable/compute/api.html#libcloud.compute.base.VolumeSnapshot.destroy) | | |
| 198 | + |
| 199 | +## KeyPair |
| 200 | + |
| 201 | +| Параметр | Поддержка | |
| 202 | +| ----------- | --------- | |
| 203 | +| name | | |
| 204 | +| fingerprint | | |
| 205 | +| public_key | | |
| 206 | +| private_key | | |
| 207 | +| extra | | |
| 208 | + |
| 209 | +## NodeState |
| 210 | + |
| 211 | +Указаны возомжно состояния |
| 212 | + |
| 213 | +| Состояние | Поддержка | |
| 214 | +| --------- | --------- | |
| 215 | +| RUNNING | | |
| 216 | + |
| 217 | +# DNS |
| 218 | + |
| 219 | +## DNSDriver |
| 220 | + |
| 221 | +### Параметры |
| 222 | + |
| 223 | +| Параметр | Поддержка | |
| 224 | +| -------- | --------- | |
| 225 | +| key | | |
| 226 | +| secret | | |
| 227 | +| secure | | |
| 228 | +| host | | |
| 229 | +| port | | |
| 230 | + |
| 231 | +### Методы |
| 232 | + |
| 233 | +| Метод | Поддержка | Примечание | |
| 234 | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ---------- | |
| 235 | +| [create_record](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.create_record) | | | |
| 236 | +| [create_zone](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.create_zone) | | | |
| 237 | +| [delete_record](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.delete_record) | | | |
| 238 | +| [delete_zone](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.delete_zone) | | | |
| 239 | +| [list_records](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.list_records) | | | |
| 240 | +| [list_zones](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.list_zones) | | | |
| 241 | +| [iterate_records](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.iterate_records) | | | |
| 242 | +| [iterate_zones](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.iterate_zones) | | | |
| 243 | +| [list_record_types](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.list_record_types) | | | |
| 244 | +| [get_record](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.get_record) | | | |
| 245 | +| [get_zone](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.get_zone) | | | |
| 246 | +| [update_record](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.update_record) | | | |
| 247 | +| [update_zone](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.update_zone) | | | |
| 248 | +| [export_zone_to_bind_format](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.export_zone_to_bind_format) | | | |
| 249 | +| [export_zone_to_bind_zone_file](https://libcloud.readthedocs.io/en/stable/dns/api.html#libcloud.dns.base.DNSDriver.export_zone_to_bind_zone_file) | | | |
| 250 | + |
| 251 | +## Zone |
| 252 | + |
| 253 | +### Параметры |
| 254 | + |
| 255 | +| Параметр | Поддержка | |
| 256 | +| -------- | --------- | |
| 257 | +| id | | |
| 258 | +| domain | | |
| 259 | +| type | | |
| 260 | +| ttl | | |
| 261 | +| driver | | |
| 262 | +| extra | | |
| 263 | + |
| 264 | +## Record |
| 265 | + |
| 266 | +### Параметры |
| 267 | + |
| 268 | +| Параметр | Поддержка | |
| 269 | +| -------- | --------- | |
| 270 | +| id | | |
| 271 | +| name | | |
| 272 | +| type | | |
| 273 | +| data | | |
| 274 | +| zone | | |
| 275 | +| driver | | |
| 276 | +| ttl | | |
| 277 | +| extra | | |
55 | 278 |
|
56 | 279 | ## Разработка |
57 | 280 |
|
|
0 commit comments