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.
9025 9026 9027 |
# File 'lib/ovirtsdk4/services.rb', line 9025 def certificates_service @certificates_service ||= ExternalProviderCertificatesService.new(self, 'certificates') end |
#import_certificates(opts = {}) ⇒ Object
Import the SSL certificates of the external host provider.
8984 8985 8986 |
# File 'lib/ovirtsdk4/services.rb', line 8984 def import_certificates(opts = {}) internal_action(:importcertificates, nil, IMPORT_CERTIFICATES, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 |
# File 'lib/ovirtsdk4/services.rb', line 9036 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
9016 9017 9018 |
# File 'lib/ovirtsdk4/services.rb', line 9016 def test_connectivity(opts = {}) internal_action(:testconnectivity, nil, TEST_CONNECTIVITY, opts) end |