Class: Netscaler::Ssl::Vserver::Unbind
- Inherits:
-
NetscalerService
- Object
- NetscalerService
- Netscaler::Ssl::Vserver::Unbind
- Defined in:
- lib/netscaler/ssl/vserver/unbind.rb
Instance Method Summary collapse
- #ecccurve(payload) ⇒ Object
-
#initialize(netscaler) ⇒ Unbind
constructor
A new instance of Unbind.
- #sslcertkey(payload) ⇒ Object
- #sslpolicy(payload) ⇒ Object
Methods inherited from NetscalerService
Constructor Details
#initialize(netscaler) ⇒ Unbind
Returns a new instance of Unbind.
5 6 7 |
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 5 def initialize(netscaler) @netscaler=netscaler end |
Instance Method Details
#ecccurve(payload) ⇒ Object
21 22 23 24 25 |
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 21 def ecccurve(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :ecccurvename]) return @netscaler.adapter.delete("config/sslvserver_sslecccurve_binding/#{payload[:vservername]}", {'params' => {'ecccurvename' => payload[:ecccurename]}}) end |
#sslcertkey(payload) ⇒ Object
9 10 11 12 13 |
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 9 def sslcertkey(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :certkeyname]) return @netscaler.adapter.post_no_body("config/sslvserver_sslcertkey_binding/#{payload[:vservername]}?action=unbind/", {'params' => {'action' => 'unbind'}, 'sslvserver_sslcertkey_binding' => payload}) end |
#sslpolicy(payload) ⇒ Object
15 16 17 18 19 |
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 15 def sslpolicy(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :policyname, :priority]) return @netscaler.adapter.delete("config/sslvserver_sslpolicy_binding/#{payload[:vservername]}", {'params' => { 'policyname' => payload[:policyname], 'priority' => payload[:priority]}}) end |