Class: OvirtSDK4::ExternalProviderService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Direct Known Subclasses
ExternalHostProviderService, OpenstackImageProviderService, OpenstackNetworkProviderService, OpenstackVolumeProviderService
Instance Method Summary collapse
-
#certificates_service ⇒ ExternalProviderCertificatesService
A service to view certificates for this external provider.
-
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#test_connectivity(opts = {}) ⇒ Object
In order to test connectivity for external provider we need to run following request where 123 is an id of a provider.
Methods inherited from Service
Instance Method Details
#certificates_service ⇒ ExternalProviderCertificatesService
A service to view certificates for this external provider.
9116 9117 9118 |
# File 'lib/ovirtsdk4/services.rb', line 9116 def certificates_service @certificates_service ||= ExternalProviderCertificatesService.new(self, 'certificates') end |
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
9075 9076 9077 |
# File 'lib/ovirtsdk4/services.rb', line 9075 def import_certificates(opts = {}) internal_action(:importcertificates, nil, IMPORT_CERTIFICATES, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 |
# File 'lib/ovirtsdk4/services.rb', line 9127 def service(path) if path.nil? || path == '' return self end if path == 'certificates' return certificates_service end if path.start_with?('certificates/') return certificates_service.service(path[13..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#test_connectivity(opts = {}) ⇒ Object
In order to test connectivity for external provider we need to run following request where 123 is an id of a provider.
POST /ovirt-engine/api/externalhostproviders/123/testconnectivity
9107 9108 9109 |
# File 'lib/ovirtsdk4/services.rb', line 9107 def test_connectivity(opts = {}) internal_action(:testconnectivity, nil, TEST_CONNECTIVITY, opts) end |