misty 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -31
- data/lib/misty/auth.rb +1 -1
- data/lib/misty/autoload.rb +17 -0
- data/lib/misty/cloud.rb +40 -4
- data/lib/misty/misty.rb +6 -2
- data/lib/misty/openstack/cinder/cinder_v2.rb +125 -0
- data/lib/misty/openstack/cinder/cinder_v3.rb +122 -82
- data/lib/misty/openstack/cinder/v2.rb +24 -0
- data/lib/misty/openstack/designate/designate_v2.rb +1 -0
- data/lib/misty/openstack/freezer/freezer_v1.rb +27 -0
- data/lib/misty/openstack/freezer/v1.rb +20 -0
- data/lib/misty/openstack/keystone/keystone_v3.rb +2 -1
- data/lib/misty/openstack/keystone/keystone_v3_ext.rb +1 -1
- data/lib/misty/openstack/magnum/magnum_v1.rb +6 -5
- data/lib/misty/openstack/murano/murano_v1.rb +50 -0
- data/lib/misty/openstack/murano/v1.rb +20 -0
- data/lib/misty/openstack/neutron/neutron_v2_0.rb +63 -16
- data/lib/misty/openstack/nova/nova_v2_1.rb +26 -24
- data/lib/misty/openstack/octavia/octavia_v2_0.rb +56 -0
- data/lib/misty/openstack/octavia/v2_0.rb +20 -0
- data/lib/misty/openstack/senlin/senlin_v1.rb +7 -2
- data/lib/misty/openstack/tacker/tacker_v1_0.rb +35 -0
- data/lib/misty/openstack/tacker/v1_0.rb +20 -0
- data/lib/misty/services.rb +8 -0
- data/lib/misty/version.rb +1 -1
- data/test/unit/cloud/services_test.rb +46 -3
- data/test/unit/misty_test.rb +2 -2
- metadata +12 -2
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'misty/http/client'
|
2
|
+
require "misty/openstack/cinder/cinder_v2"
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module Cinder
|
7
|
+
class V2 < Misty::HTTP::Client
|
8
|
+
extend Misty::Openstack::CinderV2
|
9
|
+
|
10
|
+
def self.api
|
11
|
+
v2
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.prefix_path_to_ignore
|
15
|
+
"/v2/{tenant_id}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.service_names
|
19
|
+
%w{block-storage, block-store, volume}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -61,6 +61,7 @@ module Misty::Openstack::DesignateV2
|
|
61
61
|
"/v2/quotas/{project_id}"=>
|
62
62
|
{:GET=>[:view_quotas], :PATCH=>[:set_quotas], :DELETE=>[:reset_quotas]},
|
63
63
|
"/v2/quotas/"=>{:GET=>[:view_current_project_s_quotas]},
|
64
|
+
"/v2/service_status"=>{:GET=>[:list_statuses]},
|
64
65
|
"/v2/reverse/floatingips/{region}:{floatingip_id}"=>
|
65
66
|
{:PATCH=>[:set_floatingip_s_ptr_record, :unset_floatingip_s_ptr_record],
|
66
67
|
:GET=>[:show_floatingip_s_ptr_record]},
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Misty::Openstack::FreezerV1
|
2
|
+
def v1
|
3
|
+
{"/v1/backups"=>{:GET=>[:lists_backups]},
|
4
|
+
"/v1/backups/{backup_id}"=>
|
5
|
+
{:GET=>[:show_backups], :DELETE=>[:delete_backups]},
|
6
|
+
"/v1/jobs"=>{:GET=>[:lists_jobs], :POST=>[:creates_job]},
|
7
|
+
"/v1/jobs/{job_id}"=>
|
8
|
+
{:GET=>[:show_jobs], :PATCH=>[:updates_jobs], :DELETE=>[:delete_jobs]},
|
9
|
+
"/v1/clients"=>{:GET=>[:lists_clients], :POST=>[:creates_client]},
|
10
|
+
"/v1/clients/{client_id}"=>
|
11
|
+
{:GET=>[:show_clients], :DELETE=>[:delete_clients]},
|
12
|
+
"/v1/actions"=>{:GET=>[:lists_actions], :POST=>[:creates_action]},
|
13
|
+
"/v1/actions/{action_id}"=>
|
14
|
+
{:GET=>[:show_actions],
|
15
|
+
:POST=>[:updates_actions],
|
16
|
+
:DELETE=>[:delete_actions]},
|
17
|
+
"/v1/sessions"=>
|
18
|
+
{:GET=>[:lists_sessions],
|
19
|
+
:POST=>[:creates_session],
|
20
|
+
:PATCH=>[:updates_a_session]},
|
21
|
+
"/v1/sessions/{session_id}"=>
|
22
|
+
{:GET=>[:show_sessions], :DELETE=>[:remove_sessions]},
|
23
|
+
"/v1/sessions/{session_id}/jobs/{job_id}"=>
|
24
|
+
{:PUT=>[:add_jobs], :DELETE=>[:remove_jobs]},
|
25
|
+
"/v1/sessions/{session_id}/actions"=>{:POST=>[:start_sessions]}}
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'misty/http/client'
|
2
|
+
require "misty/openstack/freezer/freezer_v1"
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module Freezer
|
7
|
+
class V1 < Misty::HTTP::Client
|
8
|
+
extend Misty::Openstack::FreezerV1
|
9
|
+
|
10
|
+
def self.api
|
11
|
+
v1
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.service_names
|
15
|
+
%w{backup}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -6,7 +6,8 @@ module Misty::Openstack::KeystoneV3
|
|
6
6
|
:password_authentication_with_scoped_authorization,
|
7
7
|
:password_authentication_with_explicit_unscoped_authorization,
|
8
8
|
:token_authentication_with_unscoped_authorization,
|
9
|
-
:token_authentication_with_scoped_authorization
|
9
|
+
:token_authentication_with_scoped_authorization,
|
10
|
+
:token_authentication_with_explicit_unscoped_authorization],
|
10
11
|
:GET=>[:validate_and_show_information_for_token],
|
11
12
|
:HEAD=>[:check_token],
|
12
13
|
:DELETE=>[:revoke_token]},
|
@@ -28,7 +28,7 @@ module Misty::Openstack::KeystoneV3
|
|
28
28
|
:PATCH=>[:update_consumer]},
|
29
29
|
"/v3/OS-OAUTH1/request_token"=>{:POST=>[:create_request_token]},
|
30
30
|
"/v3/OS-OAUTH1/authorize/{request_token_id}"=>
|
31
|
-
{:
|
31
|
+
{:PUT=>[:authorize_request_token]},
|
32
32
|
"/v3/OS-OAUTH1/access_token"=>{:POST=>[:create_access_token]},
|
33
33
|
"/v3/users/{user_id}/OS-OAUTH1/access_tokens/{access_token_id}"=>
|
34
34
|
{:GET=>[:get_access_token], :DELETE=>[:revoke_access_token]},
|
@@ -3,7 +3,7 @@ module Misty::Openstack::MagnumV1
|
|
3
3
|
{"/"=>{:GET=>[:list_api_versions]},
|
4
4
|
"/v1/"=>{:GET=>[:show_v1_api_version]},
|
5
5
|
"/v1/bays"=>{:POST=>[:create_new_bay]},
|
6
|
-
"/v1/bays/"=>{:GET=>[:
|
6
|
+
"/v1/bays/"=>{:GET=>[:list_all_bays]},
|
7
7
|
"/v1/bays/{bay_ident}"=>
|
8
8
|
{:GET=>[:show_details_of_a_bay],
|
9
9
|
:DELETE=>[:delete_a_bay],
|
@@ -14,7 +14,7 @@ module Misty::Openstack::MagnumV1
|
|
14
14
|
{:GET=>[:show_details_of_a_baymodel],
|
15
15
|
:DELETE=>[:delete_a_baymodel],
|
16
16
|
:PATCH=>[:update_information_of_baymodel]},
|
17
|
-
"/v1/clusters"=>{:POST=>[:create_new_cluster], :GET=>[:
|
17
|
+
"/v1/clusters"=>{:POST=>[:create_new_cluster], :GET=>[:list_all_clusters]},
|
18
18
|
"/v1/clusters/{cluster_ident}"=>
|
19
19
|
{:GET=>[:show_details_of_a_cluster],
|
20
20
|
:DELETE=>[:delete_a_cluster],
|
@@ -30,12 +30,13 @@ module Misty::Openstack::MagnumV1
|
|
30
30
|
:PATCH=>[:rotate_the_ca_certificate_for_a_bay_cluster]},
|
31
31
|
"/v1/certificates/"=>
|
32
32
|
{:POST=>[:generate_the_ca_certificate_for_a_bay_cluster]},
|
33
|
-
"/v1/mservices"=>
|
34
|
-
{:GET=>[:show_container_infrastructure_management_service_status]},
|
33
|
+
"/v1/mservices"=>{:GET=>[:list_container_infrastructure_management_services]},
|
35
34
|
"/v1/stats?project_id="=>{:GET=>[:show_stats_for_a_tenant]},
|
36
35
|
"/v1/stats"=>{:GET=>[:show_overall_stats]},
|
37
36
|
"/v1/quotas"=>{:POST=>[:set_new_quota], :GET=>[:list_all_quotas]},
|
38
37
|
"/v1/quotas/{project_id}/{resource}"=>
|
39
|
-
{:GET=>[:show_details_of_a_quota],
|
38
|
+
{:GET=>[:show_details_of_a_quota],
|
39
|
+
:PATCH=>[:update_a_resource_quota],
|
40
|
+
:DELETE=>[:delete_a_resource_quota]}}
|
40
41
|
end
|
41
42
|
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Misty::Openstack::MuranoV1
|
2
|
+
def v1
|
3
|
+
{"/environments/{environment_id}/actions/{action_id}"=>
|
4
|
+
{:POST=>[:execute_action]},
|
5
|
+
"/environments/{environment_id}/actions/{task_id}"=>
|
6
|
+
{:GET=>[:get_action_result]},
|
7
|
+
"/actions"=>{:POST=>[:execute_static_action]},
|
8
|
+
"/catalog/categories"=>{:GET=>[:list_categories], :POST=>[:create_category]},
|
9
|
+
"/catalog/categories/{category_id}"=>
|
10
|
+
{:GET=>[:show_category_details], :DELETE=>[:delete_category]},
|
11
|
+
"/deployments"=>{:GET=>[:list_deployments]},
|
12
|
+
"/environments"=>{:GET=>[:list_environments], :POST=>[:create_environment]},
|
13
|
+
"/environments/{env_id}"=>
|
14
|
+
{:PUT=>[:rename_environment],
|
15
|
+
:GET=>[:show_environment_details],
|
16
|
+
:DELETE=>[:delete_environment]},
|
17
|
+
"/environments/{env_id}/model/{path}"=>{:GET=>[:get_environment_model]},
|
18
|
+
"/environments/{env_id}/model/"=>{:PATCH=>[:update_environment_model]},
|
19
|
+
"/environments/{env_id}/lastStatus"=>{:GET=>[:get_environment_last_status]},
|
20
|
+
"/v1/catalog/packages"=>
|
21
|
+
{:GET=>[:list_packages, :search_for_packages], :POST=>[:upload_package]},
|
22
|
+
"/v1/catalog/packages/{package_id}/download"=>{:GET=>[:download_package]},
|
23
|
+
"/v1/catalog/packages/{package_id}"=>
|
24
|
+
{:GET=>[:show_package_details],
|
25
|
+
:PATCH=>[:update_package],
|
26
|
+
:DELETE=>[:delete_package]},
|
27
|
+
"/v1/catalog/packages/{package_id}/ui"=>{:GET=>[:get_ui_definition]},
|
28
|
+
"/v1/catalog/packages/{package_id}/logo"=>{:GET=>[:get_logo]},
|
29
|
+
"/environments/{env_id}/configure"=>
|
30
|
+
{:POST=>[:configure_environment_open_session]},
|
31
|
+
"/environments/{env_id}/sessions/{session_id}/deploy"=>
|
32
|
+
{:POST=>[:deploy_session]},
|
33
|
+
"/environments/{env_id}/sessions/{session_id}"=>
|
34
|
+
{:GET=>[:get_session_details], :DELETE=>[:delete_session]},
|
35
|
+
"/templates"=>
|
36
|
+
{:GET=>[:list_environment_templates], :POST=>[:create_environment_template]},
|
37
|
+
"/templates/{env_temp_id}"=>
|
38
|
+
{:GET=>[:get_environment_template_details],
|
39
|
+
:DELETE=>[:delete_environment_template]},
|
40
|
+
"/templates/{env_temp_id}/services"=>
|
41
|
+
{:POST=>[:add_application_to_environment_template],
|
42
|
+
:GET=>[:list_application_details_for_environment_template]},
|
43
|
+
"/templates/{env_temp_id}/services/{service_id}"=>
|
44
|
+
{:DELETE=>[:delete_application_from_an_environment_template],
|
45
|
+
:PUT=>[:update_application_for_an_environment_template]},
|
46
|
+
"/templates/{env_temp_id}/create-environment"=>
|
47
|
+
{:GET=>[:create_environment_from_environment_template]},
|
48
|
+
"/templates/{env_temp_id}/clone"=>{:GET=>[:clone_environment_template]}}
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'misty/http/client'
|
2
|
+
require "misty/openstack/murano/murano_v1"
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module Murano
|
7
|
+
class V1 < Misty::HTTP::Client
|
8
|
+
extend Misty::Openstack::MuranoV1
|
9
|
+
|
10
|
+
def self.api
|
11
|
+
v1
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.service_names
|
15
|
+
%w{application-catalog}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -63,10 +63,14 @@ module Misty::Openstack::NeutronV2_0
|
|
63
63
|
:DELETE=>[:delete_firewall_group]},
|
64
64
|
"/v2.0/fwaas/firewall_policies"=>{:GET=>[:list_firewall_policies], :POST=>[:create_firewall_policy]},
|
65
65
|
"/v2.0/fwaas/firewall_policies/{firewall_policy_id}"=>
|
66
|
-
{:GET=>[:show_firewall_policy_details],
|
66
|
+
{:GET=>[:show_firewall_policy_details],
|
67
|
+
:PUT=>[:update_firewall_policy],
|
68
|
+
:DELETE=>[:delete_firewall_policy]},
|
67
69
|
"/v2.0/fwaas/firewall_rules"=>{:GET=>[:list_firewall_rules], :POST=>[:create_firewall_rule]},
|
68
70
|
"/v2.0/fwaas/firewall_rules/{firewall_rule_id}"=>
|
69
|
-
{:GET=>[:show_firewall_rule_details],
|
71
|
+
{:GET=>[:show_firewall_rule_details],
|
72
|
+
:PUT=>[:update_firewall_rule],
|
73
|
+
:DELETE=>[:delete_firewall_rule]},
|
70
74
|
"/v2.0/fwaas/firewall_policies/{firewall_policy_id}/insert_rule"=>
|
71
75
|
{:PUT=>[:insert_rule_into_a_firewall_policy]},
|
72
76
|
"/v2.0/fwaas/firewall_policies/{firewall_policy_id}/remove_rule"=>
|
@@ -153,19 +157,9 @@ module Misty::Openstack::NeutronV2_0
|
|
153
157
|
:GET=>[:obtain_tag_list]},
|
154
158
|
"/v2.0/{resource_type}/{resource_id}/tags/{tag}"=>
|
155
159
|
{:GET=>[:confirm_a_tag], :PUT=>[:add_a_tag], :DELETE=>[:remove_a_tag]},
|
156
|
-
"/v2.0/qos/
|
157
|
-
{:GET=>[:show_bandwidth_limit_rule_details],
|
158
|
-
:PUT=>[:update_bandwidth_limit_rule],
|
159
|
-
:DELETE=>[:delete_bandwidth_limit_rule]},
|
160
|
+
"/v2.0/qos/rule-types"=>{:GET=>[:list_qos_rule_types]},
|
160
161
|
"/v2.0/qos/policies"=>
|
161
162
|
{:GET=>[:list_qos_policies], :POST=>[:create_qos_policy]},
|
162
|
-
"/v2.0/qos/policies/{policy_id}/dscp_marking_rules/{dscp_rule_id}"=>
|
163
|
-
{:GET=>[:show_dscp_marking_rule_details],
|
164
|
-
:PUT=>[:update_dscp_marking_rule],
|
165
|
-
:DELETE=>[:delete_dscp_marking_rule]},
|
166
|
-
"/v2.0/qos/policies/{policy_id}/dscp_marking_rules"=>
|
167
|
-
{:GET=>[:list_dscp_marking_rules_for_qos_policy],
|
168
|
-
:POST=>[:create_dscp_marking_rule]},
|
169
163
|
"/v2.0/qos/policies/{policy_id}"=>
|
170
164
|
{:GET=>[:show_qos_policy_details],
|
171
165
|
:PUT=>[:update_qos_policy],
|
@@ -173,6 +167,17 @@ module Misty::Openstack::NeutronV2_0
|
|
173
167
|
"/v2.0/qos/policies/{policy_id}/bandwidth_limit_rules"=>
|
174
168
|
{:GET=>[:list_bandwidth_limit_rules_for_qos_policy],
|
175
169
|
:POST=>[:create_bandwidth_limit_rule]},
|
170
|
+
"/v2.0/qos/policies/{policy_id}/bandwidth_limit_rules/{rule_id}"=>
|
171
|
+
{:GET=>[:show_bandwidth_limit_rule_details],
|
172
|
+
:PUT=>[:update_bandwidth_limit_rule],
|
173
|
+
:DELETE=>[:delete_bandwidth_limit_rule]},
|
174
|
+
"/v2.0/qos/policies/{policy_id}/dscp_marking_rules"=>
|
175
|
+
{:GET=>[:list_dscp_marking_rules_for_qos_policy],
|
176
|
+
:POST=>[:create_dscp_marking_rule]},
|
177
|
+
"/v2.0/qos/policies/{policy_id}/dscp_marking_rules/{dscp_rule_id}"=>
|
178
|
+
{:GET=>[:show_dscp_marking_rule_details],
|
179
|
+
:PUT=>[:update_dscp_marking_rule],
|
180
|
+
:DELETE=>[:delete_dscp_marking_rule]},
|
176
181
|
"/v2.0/lbaas/loadbalancers"=>
|
177
182
|
{:GET=>[:list_load_balancers], :POST=>[:create_a_load_balancer]},
|
178
183
|
"/v2.0/lbaas/loadbalancers/{loadbalancer_id}"=>
|
@@ -186,9 +191,13 @@ module Misty::Openstack::NeutronV2_0
|
|
186
191
|
{:GET=>[:show_listener_details],
|
187
192
|
:PUT=>[:update_listener],
|
188
193
|
:DELETE=>[:remove_listener]},
|
189
|
-
"/v2.0/lbaas/pools"=>
|
194
|
+
"/v2.0/lbaas/pools"=>
|
195
|
+
{:GET=>[:list_pools],
|
196
|
+
:POST=>[:create_pool]},
|
190
197
|
"/v2.0/lbaas/pools/{pool_id}"=>
|
191
|
-
{:GET=>[:show_pool_details],
|
198
|
+
{:GET=>[:show_pool_details],
|
199
|
+
:PUT=>[:update_pool],
|
200
|
+
:DELETE=>[:remove_pool]},
|
192
201
|
"/v2.0/lbaas/pools/{pool_id}/members"=>
|
193
202
|
{:GET=>[:list_pool_members], :POST=>[:add_member_to_pool]},
|
194
203
|
"/v2.0/lbaas/pools/{pool_id}/members/{member_id}"=>
|
@@ -200,6 +209,44 @@ module Misty::Openstack::NeutronV2_0
|
|
200
209
|
"/v2.0/lbaas/health_monitors/{health_monitor_id}"=>
|
201
210
|
{:GET=>[:show_health_monitor_details],
|
202
211
|
:PUT=>[:update_health_monitor],
|
203
|
-
:DELETE=>[:remove_health_monitor]}
|
212
|
+
:DELETE=>[:remove_health_monitor]},
|
213
|
+
"/v2.0/logging/logging_resources"=>
|
214
|
+
{:GET=>[:list_logging_resources], :POST=>[:create_logging_resource]},
|
215
|
+
"/v2.0/logging/logging_resources/{logging_resource_id}"=>
|
216
|
+
{:GET=>[:show_logging_resource_details],
|
217
|
+
:PUT=>[:update_logging_resource],
|
218
|
+
:DELETE=>[:delete_logging_resource]},
|
219
|
+
"/v2.0/logging/logging_resources/{logging_resource_id}/firewall_logs"=>
|
220
|
+
{:GET=>[:list_firewall_logs], :POST=>[:create_firewall_log]},
|
221
|
+
"/v2.0/logging/logging_resources/{logging_resource_id}/firewall_logs/{firewall_log_id}"=>
|
222
|
+
{:GET=>[:show_firewall_log_details],
|
223
|
+
:PUT=>[:update_firewall_log],
|
224
|
+
:DELETE=>[:delete_firewall_log]},
|
225
|
+
"/v2.0/bgpvpn/bgpvpns"=>{:GET=>[:list_bgp_vpns], :POST=>[:create_bgp_vpns]},
|
226
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}"=>
|
227
|
+
{:GET=>[:show_bgp_vpn_details],
|
228
|
+
:PUT=>[:update_a_bgp_vpn],
|
229
|
+
:DELETE=>[:delete_bgp_vpn]},
|
230
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/network_associations"=>
|
231
|
+
{:GET=>[:list_network_associations], :POST=>[:create_network_association]},
|
232
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/network_associations/{network_association_id}"=>
|
233
|
+
{:GET=>[:show_network_association_details],
|
234
|
+
:DELETE=>[:delete_network_association]},
|
235
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/router_associations"=>
|
236
|
+
{:GET=>[:list_router_associations], :POST=>[:create_router_association]},
|
237
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/router_associations/{router_association_id}"=>
|
238
|
+
{:GET=>[:show_router_association_details],
|
239
|
+
:PUT=>[:update_a_router_association_bgpvpn_routes_control_extension],
|
240
|
+
:DELETE=>[:delete_router_association]},
|
241
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/port_associations"=>
|
242
|
+
{:GET=>[:list_port_associations], :POST=>[:create_port_association]},
|
243
|
+
"/v2.0/bgpvpn/bgpvpns/{bgpvpn_id}/port_associations/{port_association_id}"=>
|
244
|
+
{:GET=>[:show_port_association_details],
|
245
|
+
:PUT=>[:update_a_port_association],
|
246
|
+
:DELETE=>[:delete_port_association]},
|
247
|
+
"/v2.0/log/logs"=>{:GET=>[:list_logs], :POST=>[:create_log]},
|
248
|
+
"/v2.0/log/logs/{log_id}"=>
|
249
|
+
{:GET=>[:show_log], :PUT=>[:update_log], :DELETE=>[:delete_log]},
|
250
|
+
"/v2.0/log/loggable-resources"=>{:GET=>[:list_loggable_resources]}}
|
204
251
|
end
|
205
252
|
end
|
@@ -11,16 +11,17 @@ module Misty::Openstack::NovaV2_1
|
|
11
11
|
:DELETE=>[:delete_server]},
|
12
12
|
"/servers/{server_id}/action"=>
|
13
13
|
{:POST=>
|
14
|
-
[:
|
14
|
+
[:add_associate_floating_ip_addfloatingip_action_deprecated,
|
15
15
|
:add_security_group_to_a_server_addsecuritygroup_action,
|
16
16
|
:change_administrative_password_changepassword_action,
|
17
17
|
:confirm_resized_server_confirmresize_action,
|
18
|
+
:create_server_back_up_createbackup_action,
|
18
19
|
:create_image_createimage_action,
|
19
20
|
:lock_server_lock_action,
|
20
21
|
:pause_server_pause_action,
|
21
22
|
:reboot_server_reboot_action,
|
22
23
|
:rebuild_server_rebuild_action,
|
23
|
-
:
|
24
|
+
:remove_disassociate_floating_ip_removefloatingip_action_deprecated,
|
24
25
|
:remove_security_group_from_a_server_removesecuritygroup_action,
|
25
26
|
:rescue_server_rescue_action,
|
26
27
|
:resize_server_resize_action,
|
@@ -32,26 +33,26 @@ module Misty::Openstack::NovaV2_1
|
|
32
33
|
:unlock_server_unlock_action,
|
33
34
|
:unpause_server_unpause_action,
|
34
35
|
:unrescue_server_unrescue_action,
|
35
|
-
:
|
36
|
-
:
|
36
|
+
:add_associate_fixed_ip_addfixedip_action_deprecated,
|
37
|
+
:remove_disassociate_fixed_ip_removefixedip_action_deprecated,
|
37
38
|
:evacuate_server_evacuate_action,
|
38
39
|
:force_delete_server_forcedelete_action,
|
39
40
|
:restore_soft_deleted_instance_restore_action,
|
40
41
|
:show_console_output_os_getconsoleoutput_action,
|
41
|
-
:get_rdp_console_os_getrdpconsole_action,
|
42
|
-
:get_serial_console_os_getserialconsole_action,
|
43
|
-
:get_spice_console_os_getspiceconsole_action,
|
44
|
-
:get_vnc_console_os_getvncconsole_action,
|
45
42
|
:shelve_server_shelve_action,
|
46
43
|
:shelf_offload_remove_server_shelveoffload_action,
|
47
44
|
:unshelve_restore_shelved_server_unshelve_action,
|
48
45
|
:trigger_crash_dump_in_server,
|
49
|
-
:
|
46
|
+
:get_rdp_console_os_getrdpconsole_action_deprecated,
|
47
|
+
:get_serial_console_os_getserialconsole_action_deprecated,
|
48
|
+
:get_spice_console_os_getspiceconsole_action_deprecated,
|
49
|
+
:get_vnc_console_os_getvncconsole_action_deprecated,
|
50
50
|
:inject_network_information_injectnetworkinfo_action,
|
51
51
|
:migrate_server_migrate_action,
|
52
52
|
:live_migrate_server_os_migratelive_action,
|
53
53
|
:reset_networking_on_a_server_resetnetwork_action,
|
54
54
|
:reset_server_state_os_resetstate_action]},
|
55
|
+
"/servers/{server_id}/remote-consoles"=>{:POST=>[:create_remote_console]},
|
55
56
|
"/servers/{server_id}/os-security-groups"=>
|
56
57
|
{:GET=>[:list_security_groups_by_server]},
|
57
58
|
"/servers/{server_id}/diagnostics"=>{:GET=>[:show_server_diagnostics]},
|
@@ -59,8 +60,8 @@ module Misty::Openstack::NovaV2_1
|
|
59
60
|
"/servers/{server_id}/ips/{network_label}"=>{:GET=>[:show_ip_details]},
|
60
61
|
"/servers/{server_id}/metadata"=>
|
61
62
|
{:GET=>[:list_all_metadata],
|
62
|
-
:POST=>[:
|
63
|
-
:PUT=>[:
|
63
|
+
:POST=>[:create_or_update_metadata_items],
|
64
|
+
:PUT=>[:replace_metadata_items]},
|
64
65
|
"/servers/{server_id}/metadata/{key}"=>
|
65
66
|
{:GET=>[:show_metadata_item_details],
|
66
67
|
:PUT=>[:create_or_update_metadata_item],
|
@@ -75,8 +76,6 @@ module Misty::Openstack::NovaV2_1
|
|
75
76
|
{:GET=>[:show_port_interface_details], :DELETE=>[:detach_interface]},
|
76
77
|
"/servers/{server_id}/os-server-password"=>
|
77
78
|
{:GET=>[:show_server_password], :DELETE=>[:clear_admin_password]},
|
78
|
-
"/servers/{server_id}/os-virtual-interfaces"=>
|
79
|
-
{:GET=>[:list_virtual_interfaces]},
|
80
79
|
"/servers/{server_id}/os-volume_attachments"=>
|
81
80
|
{:GET=>[:list_volume_attachments_for_an_instance],
|
82
81
|
:POST=>[:attach_a_volume_to_an_instance]},
|
@@ -134,12 +133,6 @@ module Misty::Openstack::NovaV2_1
|
|
134
133
|
{:GET=>[:show_console_details], :DELETE=>[:delete_console]},
|
135
134
|
"/os-console-auth-tokens/{console_token}"=>
|
136
135
|
{:GET=>[:show_console_connection_information]},
|
137
|
-
"/os-hosts"=>{:GET=>[:list_hosts]},
|
138
|
-
"/os-hosts/{host_name}"=>
|
139
|
-
{:GET=>[:show_host_details], :PUT=>[:update_host_status]},
|
140
|
-
"/os-hosts/{host_name}/reboot"=>{:GET=>[:reboot_host]},
|
141
|
-
"/os-hosts/{host_name}/shutdown"=>{:GET=>[:shut_down_host]},
|
142
|
-
"/os-hosts/{host_name}/startup"=>{:GET=>[:start_host]},
|
143
136
|
"/os-hypervisors"=>{:GET=>[:list_hypervisors]},
|
144
137
|
"/os-hypervisors/detail"=>{:GET=>[:list_hypervisors_details]},
|
145
138
|
"/os-hypervisors/statistics"=>{:GET=>[:show_hypervisor_statistics]},
|
@@ -152,6 +145,7 @@ module Misty::Openstack::NovaV2_1
|
|
152
145
|
"/os-instance_usage_audit_log"=>{:GET=>[:list_server_usage_audits]},
|
153
146
|
"/os-instance_usage_audit_log/{before_timestamp}"=>
|
154
147
|
{:GET=>[:list_usage_audits_before_specified_time]},
|
148
|
+
"/os-migrations"=>{:GET=>[:list_migrations]},
|
155
149
|
"/servers/{server_id}/migrations"=>{:GET=>[:list_migrations]},
|
156
150
|
"/servers/{server_id}/migrations/{migration_id}"=>
|
157
151
|
{:GET=>[:show_migration_details], :DELETE=>[:delete_abort_migration]},
|
@@ -186,12 +180,8 @@ module Misty::Openstack::NovaV2_1
|
|
186
180
|
"/os-simple-tenant-usage/{tenant_id}"=>
|
187
181
|
{:GET=>[:show_usage_statistics_for_tenant]},
|
188
182
|
"/os-server-external-events"=>{:POST=>[:run_events]},
|
189
|
-
"/os-cloudpipe"=>{:GET=>[:list_cloudpipes], :POST=>[:create_cloudpipe]},
|
190
|
-
"/os-cloudpipe/configure-project"=>{:PUT=>[:update_cloudpipe]},
|
191
183
|
"/extensions"=>{:GET=>[:list_extensions]},
|
192
184
|
"/extensions/{alias}"=>{:GET=>[:show_extension_details]},
|
193
|
-
"/os-certificates"=>{:POST=>[:create_root_certificate]},
|
194
|
-
"/os-certificates/root"=>{:GET=>[:show_root_certificate_details]},
|
195
185
|
"/os-networks"=>{:GET=>[:list_networks], :POST=>[:create_network]},
|
196
186
|
"/os-networks/add"=>{:POST=>[:add_network]},
|
197
187
|
"/os-networks/{network_id}"=>
|
@@ -264,6 +254,18 @@ module Misty::Openstack::NovaV2_1
|
|
264
254
|
:DELETE=>[:delete_default_security_group_rule]},
|
265
255
|
"/os-security-group-rules"=>{:POST=>[:create_security_group_rule]},
|
266
256
|
"/os-security-group-rules/{security_group_rule_id}"=>
|
267
|
-
{:DELETE=>[:delete_security_group_rule]}
|
257
|
+
{:DELETE=>[:delete_security_group_rule]},
|
258
|
+
"/os-hosts"=>{:GET=>[:list_hosts]},
|
259
|
+
"/os-hosts/{host_name}"=>
|
260
|
+
{:GET=>[:show_host_details], :PUT=>[:update_host_status]},
|
261
|
+
"/os-hosts/{host_name}/reboot"=>{:GET=>[:reboot_host]},
|
262
|
+
"/os-hosts/{host_name}/shutdown"=>{:GET=>[:shut_down_host]},
|
263
|
+
"/os-hosts/{host_name}/startup"=>{:GET=>[:start_host]},
|
264
|
+
"/servers/{server_id}/os-virtual-interfaces"=>
|
265
|
+
{:GET=>[:list_virtual_interfaces]},
|
266
|
+
"/os-certificates"=>{:POST=>[:create_root_certificate]},
|
267
|
+
"/os-certificates/root"=>{:GET=>[:show_root_certificate_details]},
|
268
|
+
"/os-cloudpipe"=>{:GET=>[:list_cloudpipes], :POST=>[:create_cloudpipe]},
|
269
|
+
"/os-cloudpipe/configure-project"=>{:PUT=>[:update_cloudpipe]}}
|
268
270
|
end
|
269
271
|
end
|