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.
10078 10079 10080 |
# File 'lib/ovirtsdk4/services.rb', line 10078 def certificates_service @certificates_service ||= ExternalProviderCertificatesService.new(self, 'certificates') end |
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
10037 10038 10039 |
# File 'lib/ovirtsdk4/services.rb', line 10037 def import_certificates(opts = {}) internal_action(:importcertificates, nil, IMPORT_CERTIFICATES, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 |
# File 'lib/ovirtsdk4/services.rb', line 10089 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
10069 10070 10071 |
# File 'lib/ovirtsdk4/services.rb', line 10069 def test_connectivity(opts = {}) internal_action(:testconnectivity, nil, TEST_CONNECTIVITY, opts) end |