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.
10098 10099 10100 |
# File 'lib/ovirtsdk4/services.rb', line 10098 def certificates_service @certificates_service ||= ExternalProviderCertificatesService.new(self, 'certificates') end |
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
10057 10058 10059 |
# File 'lib/ovirtsdk4/services.rb', line 10057 def import_certificates(opts = {}) internal_action(:importcertificates, nil, IMPORT_CERTIFICATES, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 |
# File 'lib/ovirtsdk4/services.rb', line 10109 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
10089 10090 10091 |
# File 'lib/ovirtsdk4/services.rb', line 10089 def test_connectivity(opts = {}) internal_action(:testconnectivity, nil, TEST_CONNECTIVITY, opts) end |