Class: OvirtSDK4::ExternalProviderCertificateService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Certificate
Get specific certificate.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Certificate
Get specific certificate.
GET /ovirt-engine/api/externalhostproviders/123/certificate/0 HTTP/1.1
And here is sample response:
<certificate id="0">
<organization>provider.example.com</organization>
<subject>CN=provider.example.com</subject>
<content>...</content>
</certificate>
10044 10045 10046 |
# File 'lib/ovirtsdk4/services.rb', line 10044 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
10055 10056 10057 10058 10059 10060 |
# File 'lib/ovirtsdk4/services.rb', line 10055 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |