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.
9126 9127 9128 |
# File 'lib/ovirtsdk4/services.rb', line 9126 def certificates_service @certificates_service ||= ExternalProviderCertificatesService.new(self, 'certificates') end |
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
9085 9086 9087 |
# File 'lib/ovirtsdk4/services.rb', line 9085 def import_certificates(opts = {}) internal_action(:importcertificates, nil, IMPORT_CERTIFICATES, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 |
# File 'lib/ovirtsdk4/services.rb', line 9137 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
9117 9118 9119 |
# File 'lib/ovirtsdk4/services.rb', line 9117 def test_connectivity(opts = {}) internal_action(:testconnectivity, nil, TEST_CONNECTIVITY, opts) end |