Class: Netscaler::Ssl::Vserver::Bind

Inherits:
NetscalerService show all
Defined in:
lib/netscaler/ssl/vserver/bind.rb

Instance Method Summary collapse

Methods inherited from NetscalerService

#validate_payload

Constructor Details

#initialize(netscaler) ⇒ Bind

Returns a new instance of Bind.



5
6
7
# File 'lib/netscaler/ssl/vserver/bind.rb', line 5

def initialize(netscaler)
  @netscaler=netscaler
end

Instance Method Details

#ecccurve(payload) ⇒ Object

Raises:

  • (ArgumentError)


21
22
23
24
25
# File 'lib/netscaler/ssl/vserver/bind.rb', line 21

def ecccurve(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :ecccurvename])
  return @netscaler.adapter.put("config/sslvserver_ecccurve_binding", {'sslvserver_ecccurve_binding' => payload}, {no_wrapper: true})
end

#sslcertkey(payload) ⇒ Object

Raises:

  • (ArgumentError)


9
10
11
12
13
# File 'lib/netscaler/ssl/vserver/bind.rb', line 9

def sslcertkey(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :certkeyname])
  return @netscaler.adapter.post("config/sslvserver_sslcertkey_binding/#{payload[:vservername]}", {'params' => {'action' => 'bind'}, 'sslvserver_sslcertkey_binding' => payload})
end

#sslpolicy(payload) ⇒ Object

Raises:

  • (ArgumentError)


15
16
17
18
19
# File 'lib/netscaler/ssl/vserver/bind.rb', line 15

def sslpolicy(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :policyname, :priority])
  return @netscaler.adapter.put("config/sslvserver_sslpolicy_binding/#{payload[:vservername]}", {'sslvserver_sslpolicy_binding' => payload}, {no_wrapper: true})
end