Class: OCI::LoadBalancer::LoadBalancerClient
- Inherits:
-
Object
- Object
- OCI::LoadBalancer::LoadBalancerClient
- Defined in:
- lib/oci/load_balancer/load_balancer_client.rb
Overview
API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more information, see [Overview of Load Balancing](/iaas/Content/Balance/Concepts/balanceoverview.htm).
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#change_load_balancer_compartment(load_balancer_id, change_load_balancer_compartment_details, opts = {}) ⇒ Response
Moves a load balancer into a different compartment within the same tenancy.
-
#create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Adds a backend server to a backend set.
-
#create_backend_set(create_backend_set_details, load_balancer_id, opts = {}) ⇒ Response
Adds a backend set to a load balancer.
-
#create_certificate(create_certificate_details, load_balancer_id, opts = {}) ⇒ Response
Creates an asynchronous request to add an SSL certificate bundle.
-
#create_hostname(create_hostname_details, load_balancer_id, opts = {}) ⇒ Response
Adds a hostname resource to the specified load balancer.
-
#create_listener(create_listener_details, load_balancer_id, opts = {}) ⇒ Response
Adds a listener to a load balancer.
-
#create_load_balancer(create_load_balancer_details, opts = {}) ⇒ Response
Creates a new load balancer in the specified compartment.
-
#create_path_route_set(create_path_route_set_details, load_balancer_id, opts = {}) ⇒ Response
Adds a path route set to a load balancer.
-
#create_routing_policy(create_routing_policy_details, load_balancer_id, opts = {}) ⇒ Response
Adds a routing policy to a load balancer.
-
#create_rule_set(load_balancer_id, create_rule_set_details, opts = {}) ⇒ Response
Creates a new rule set associated with the specified load balancer.
-
#create_ssl_cipher_suite(create_ssl_cipher_suite_details, load_balancer_id, opts = {}) ⇒ Response
Creates a custom SSL cipher suite.
-
#delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Removes a backend server from a given load balancer and backend set.
-
#delete_backend_set(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Deletes the specified backend set.
-
#delete_certificate(load_balancer_id, certificate_name, opts = {}) ⇒ Response
Deletes an SSL certificate bundle from a load balancer.
-
#delete_hostname(load_balancer_id, name, opts = {}) ⇒ Response
Deletes a hostname resource from the specified load balancer.
-
#delete_listener(load_balancer_id, listener_name, opts = {}) ⇒ Response
Deletes a listener from a load balancer.
-
#delete_load_balancer(load_balancer_id, opts = {}) ⇒ Response
Stops a load balancer and removes it from service.
-
#delete_path_route_set(load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Deletes a path route set from the specified load balancer.
-
#delete_routing_policy(load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Deletes a routing policy from the specified load balancer.
-
#delete_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Deletes a rule set from the specified load balancer.
-
#delete_ssl_cipher_suite(load_balancer_id, name, opts = {}) ⇒ Response
Deletes an SSL cipher suite from a load balancer.
-
#get_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Gets the specified backend server’s configuration information.
-
#get_backend_health(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Gets the current health status of the specified backend server.
-
#get_backend_set(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Gets the specified backend set’s configuration information.
-
#get_backend_set_health(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Gets the health status for the specified backend set.
-
#get_health_checker(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Gets the health check policy information for a given load balancer and backend set.
-
#get_hostname(load_balancer_id, name, opts = {}) ⇒ Response
Gets the specified hostname resource’s configuration information.
-
#get_load_balancer(load_balancer_id, opts = {}) ⇒ Response
Gets the specified load balancer’s configuration information.
-
#get_load_balancer_health(load_balancer_id, opts = {}) ⇒ Response
Gets the health status for the specified load balancer.
-
#get_path_route_set(load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Gets the specified path route set’s configuration information.
-
#get_routing_policy(load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Gets the specified routing policy.
-
#get_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Gets the specified set of rules.
-
#get_ssl_cipher_suite(load_balancer_id, name, opts = {}) ⇒ Response
Gets the specified SSL cipher suite’s configuration information.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the details of a work request.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ LoadBalancerClient
constructor
Creates a new LoadBalancerClient.
-
#list_backend_sets(load_balancer_id, opts = {}) ⇒ Response
Lists all backend sets associated with a given load balancer.
-
#list_backends(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Lists the backend servers for a given load balancer and backend set.
-
#list_certificates(load_balancer_id, opts = {}) ⇒ Response
Lists all SSL certificates bundles associated with a given load balancer.
-
#list_hostnames(load_balancer_id, opts = {}) ⇒ Response
Lists all hostname resources associated with the specified load balancer.
-
#list_listener_rules(load_balancer_id, listener_name, opts = {}) ⇒ Response
Lists all of the rules from all of the rule sets associated with the specified listener.
-
#list_load_balancer_healths(compartment_id, opts = {}) ⇒ Response
Lists the summary health statuses for all load balancers in the specified compartment.
-
#list_load_balancers(compartment_id, opts = {}) ⇒ Response
Lists all load balancers in the specified compartment.
-
#list_path_route_sets(load_balancer_id, opts = {}) ⇒ Response
Lists all path route sets associated with the specified load balancer.
-
#list_policies(compartment_id, opts = {}) ⇒ Response
Lists the available load balancer policies.
-
#list_protocols(compartment_id, opts = {}) ⇒ Response
Lists all supported traffic protocols.
-
#list_routing_policies(load_balancer_id, opts = {}) ⇒ Response
Lists all routing policies associated with the specified load balancer.
-
#list_rule_sets(load_balancer_id, opts = {}) ⇒ Response
Lists all rule sets associated with the specified load balancer.
-
#list_shapes(compartment_id, opts = {}) ⇒ Response
Lists the valid load balancer shapes.
-
#list_ssl_cipher_suites(load_balancer_id, opts = {}) ⇒ Response
Lists all SSL cipher suites associated with the specified load balancer.
-
#list_work_requests(load_balancer_id, opts = {}) ⇒ Response
Lists the work requests for a given load balancer.
-
#logger ⇒ Logger
The logger for this client.
-
#update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Updates the configuration of a backend server within the specified backend set.
-
#update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Updates a backend set.
-
#update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Updates the health check policy for a given load balancer and backend set.
-
#update_hostname(update_hostname_details, load_balancer_id, name, opts = {}) ⇒ Response
Overwrites an existing hostname resource on the specified load balancer.
-
#update_listener(update_listener_details, load_balancer_id, listener_name, opts = {}) ⇒ Response
Updates a listener for a given load balancer.
-
#update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {}) ⇒ Response
Updates a load balancer’s configuration.
-
#update_load_balancer_shape(load_balancer_id, update_load_balancer_shape_details, opts = {}) ⇒ Response
Update the shape of a load balancer.
-
#update_network_security_groups(update_network_security_groups_details, load_balancer_id, opts = {}) ⇒ Response
Updates the network security groups associated with the specified load balancer.
-
#update_path_route_set(update_path_route_set_details, load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Overwrites an existing path route set on the specified load balancer.
-
#update_routing_policy(update_routing_policy_details, load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Overwrites an existing routing policy on the specified load balancer.
-
#update_rule_set(load_balancer_id, rule_set_name, update_rule_set_details, opts = {}) ⇒ Response
Overwrites an existing set of rules on the specified load balancer.
-
#update_ssl_cipher_suite(update_ssl_cipher_suite_details, load_balancer_id, name, opts = {}) ⇒ Response
Updates an existing SSL cipher suite for the specified load balancer.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ LoadBalancerClient
Creates a new LoadBalancerClient. Notes:
If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
region. A region may be specified in the config or via or the region parameter. If specified in both, then the
region parameter will be used.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 54 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20170115' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "LoadBalancerClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
14 15 16 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 14 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
18 19 20 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 18 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
28 29 30 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 28 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil, which means that an operation will not perform any retries
24 25 26 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 24 def retry_config @retry_config end |
Instance Method Details
#change_load_balancer_compartment(load_balancer_id, change_load_balancer_compartment_details, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/change_load_balancer_compartment.rb.html) to see an example of how to use change_load_balancer_compartment API.
Moves a load balancer into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 127 def change_load_balancer_compartment(load_balancer_id, change_load_balancer_compartment_details, opts = {}) logger.debug 'Calling operation LoadBalancerClient#change_load_balancer_compartment.' if logger raise "Missing the required parameter 'load_balancer_id' when calling change_load_balancer_compartment." if load_balancer_id.nil? raise "Missing the required parameter 'change_load_balancer_compartment_details' when calling change_load_balancer_compartment." if change_load_balancer_compartment_details.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/changeCompartment'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'if-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_load_balancer_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#change_load_balancer_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_backend.rb.html) to see an example of how to use create_backend API.
Adds a backend server to a backend set.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 197 def create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_backend.' if logger raise "Missing the required parameter 'create_backend_details' when calling create_backend." if create_backend_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_backend." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling create_backend." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_backend_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_backend') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_backend_set(create_backend_set_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_backend_set.rb.html) to see an example of how to use create_backend_set API.
Adds a backend set to a load balancer.
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 264 def create_backend_set(create_backend_set_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_backend_set.' if logger raise "Missing the required parameter 'create_backend_set_details' when calling create_backend_set." if create_backend_set_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_backend_set." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/backendSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_backend_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_backend_set') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_certificate(create_certificate_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_certificate.rb.html) to see an example of how to use create_certificate API.
Creates an asynchronous request to add an SSL certificate bundle.
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 329 def create_certificate(create_certificate_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_certificate.' if logger raise "Missing the required parameter 'create_certificate_details' when calling create_certificate." if create_certificate_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_certificate." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/certificates'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_certificate_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_certificate') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_hostname(create_hostname_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_hostname.rb.html) to see an example of how to use create_hostname API.
Adds a hostname resource to the specified load balancer. For more information, see [Managing Request Routing](docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm).
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 396 def create_hostname(create_hostname_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_hostname.' if logger raise "Missing the required parameter 'create_hostname_details' when calling create_hostname." if create_hostname_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_hostname." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/hostnames'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_hostname_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_hostname') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_listener(create_listener_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_listener.rb.html) to see an example of how to use create_listener API.
Adds a listener to a load balancer.
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 461 def create_listener(create_listener_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_listener.' if logger raise "Missing the required parameter 'create_listener_details' when calling create_listener." if create_listener_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_listener." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/listeners'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_listener_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_listener') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_load_balancer(create_load_balancer_details, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_load_balancer.rb.html) to see an example of how to use create_load_balancer API.
Creates a new load balancer in the specified compartment. For general information about load balancers, see [Overview of the Load Balancing Service](docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm).
For the purposes of access control, you must provide the OCID of the compartment where you want the load balancer to reside. Notice that the load balancer doesn’t have to be in the same compartment as the VCN or backend set. If you’re not sure which compartment to use, put the load balancer in the same compartment as the VCN. For information about access control and compartments, see [Overview of the IAM Service](docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
You must specify a display name for the load balancer. It does not have to be unique, and you can change it.
For information about Availability Domains, see [Regions and Availability Domains](docs.cloud.oracle.com/Content/General/Concepts/regions.htm). To get a list of Availability Domains, use the ListAvailabilityDomains operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource’s OCID by using a List API operation on that resource type, or by viewing the resource in the Console. Fore more information, see [Resource Identifiers](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
After you send your request, the new object’s state will temporarily be PROVISIONING. Before using the object, first make sure its state has changed to RUNNING.
When you create a load balancer, the system assigns an IP address. To get the IP address, use the get_load_balancer operation.
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 552 def create_load_balancer(create_load_balancer_details, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_load_balancer.' if logger raise "Missing the required parameter 'create_load_balancer_details' when calling create_load_balancer." if create_load_balancer_details.nil? path = '/loadBalancers' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_load_balancer_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_load_balancer') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_path_route_set(create_path_route_set_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_path_route_set.rb.html) to see an example of how to use create_path_route_set API.
Adds a path route set to a load balancer. For more information, see [Managing Request Routing](docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm).
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 617 def create_path_route_set(create_path_route_set_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_path_route_set.' if logger raise "Missing the required parameter 'create_path_route_set_details' when calling create_path_route_set." if create_path_route_set_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_path_route_set." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/pathRouteSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_path_route_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_path_route_set') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_routing_policy(create_routing_policy_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_routing_policy.rb.html) to see an example of how to use create_routing_policy API.
Adds a routing policy to a load balancer. For more information, see [Managing Request Routing](docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm).
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 684 def create_routing_policy(create_routing_policy_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_routing_policy.' if logger raise "Missing the required parameter 'create_routing_policy_details' when calling create_routing_policy." if create_routing_policy_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_routing_policy." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/routingPolicies'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_routing_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_routing_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_rule_set(load_balancer_id, create_rule_set_details, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_rule_set.rb.html) to see an example of how to use create_rule_set API.
Creates a new rule set associated with the specified load balancer. For more information, see [Managing Rule Sets](docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm).
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 745 def create_rule_set(load_balancer_id, create_rule_set_details, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_rule_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling create_rule_set." if load_balancer_id.nil? raise "Missing the required parameter 'create_rule_set_details' when calling create_rule_set." if create_rule_set_details.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/ruleSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(create_rule_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_rule_set') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_ssl_cipher_suite(create_ssl_cipher_suite_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/create_ssl_cipher_suite.rb.html) to see an example of how to use create_ssl_cipher_suite API.
Creates a custom SSL cipher suite.
809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 809 def create_ssl_cipher_suite(create_ssl_cipher_suite_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#create_ssl_cipher_suite.' if logger raise "Missing the required parameter 'create_ssl_cipher_suite_details' when calling create_ssl_cipher_suite." if create_ssl_cipher_suite_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling create_ssl_cipher_suite." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/sslCipherSuites'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_ssl_cipher_suite_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#create_ssl_cipher_suite') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_backend.rb.html) to see an example of how to use delete_backend API.
Removes a backend server from a given load balancer and backend set.
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 875 def delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_backend.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_backend." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil? raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_backend') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_backend_set(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_backend_set.rb.html) to see an example of how to use delete_backend_set API.
Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer.
Before you can delete a backend set, you must remove it from any active listeners.
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 941 def delete_backend_set(load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_backend_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_backend_set." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling delete_backend_set." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_backend_set') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_certificate(load_balancer_id, certificate_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_certificate.rb.html) to see an example of how to use delete_certificate API.
Deletes an SSL certificate bundle from a load balancer.
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1004 def delete_certificate(load_balancer_id, certificate_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_certificate.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_certificate." if load_balancer_id.nil? raise "Missing the required parameter 'certificate_name' when calling delete_certificate." if certificate_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'certificate_name' must not be blank" if OCI::Internal::Util.blank_string?(certificate_name) path = '/loadBalancers/{loadBalancerId}/certificates/{certificateName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{certificateName}', certificate_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_certificate') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_hostname(load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_hostname.rb.html) to see an example of how to use delete_hostname API.
Deletes a hostname resource from the specified load balancer.
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1066 def delete_hostname(load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_hostname.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_hostname." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling delete_hostname." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_hostname') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_listener(load_balancer_id, listener_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_listener.rb.html) to see an example of how to use delete_listener API.
Deletes a listener from a load balancer.
1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1127 def delete_listener(load_balancer_id, listener_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_listener.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_listener." if load_balancer_id.nil? raise "Missing the required parameter 'listener_name' when calling delete_listener." if listener_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util.blank_string?(listener_name) path = '/loadBalancers/{loadBalancerId}/listeners/{listenerName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_listener') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_load_balancer(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_load_balancer.rb.html) to see an example of how to use delete_load_balancer API.
Stops a load balancer and removes it from service.
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1184 def delete_load_balancer(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_load_balancer.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_load_balancer." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_load_balancer') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_path_route_set(load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_path_route_set.rb.html) to see an example of how to use delete_path_route_set API.
Deletes a path route set from the specified load balancer.
To delete a path route rule from a path route set, use the update_path_route_set operation.
1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1247 def delete_path_route_set(load_balancer_id, path_route_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_path_route_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_path_route_set." if load_balancer_id.nil? raise "Missing the required parameter 'path_route_set_name' when calling delete_path_route_set." if path_route_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util.blank_string?(path_route_set_name) path = '/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_path_route_set') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_routing_policy(load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_routing_policy.rb.html) to see an example of how to use delete_routing_policy API.
Deletes a routing policy from the specified load balancer.
To delete a routing rule from a routing policy, use the update_routing_policy operation.
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1312 def delete_routing_policy(load_balancer_id, routing_policy_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_routing_policy.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_routing_policy." if load_balancer_id.nil? raise "Missing the required parameter 'routing_policy_name' when calling delete_routing_policy." if routing_policy_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'routing_policy_name' must not be blank" if OCI::Internal::Util.blank_string?(routing_policy_name) path = '/loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{routingPolicyName}', routing_policy_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_routing_policy') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_rule_set.rb.html) to see an example of how to use delete_rule_set API.
Deletes a rule set from the specified load balancer.
To delete a rule from a rule set, use the update_rule_set operation.
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1377 def delete_rule_set(load_balancer_id, rule_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_rule_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_rule_set." if load_balancer_id.nil? raise "Missing the required parameter 'rule_set_name' when calling delete_rule_set." if rule_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'rule_set_name' must not be blank" if OCI::Internal::Util.blank_string?(rule_set_name) path = '/loadBalancers/{loadBalancerId}/ruleSets/{ruleSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{ruleSetName}', rule_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_rule_set') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_ssl_cipher_suite(load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_ssl_cipher_suite.rb.html) to see an example of how to use delete_ssl_cipher_suite API.
Deletes an SSL cipher suite from a load balancer.
1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1439 def delete_ssl_cipher_suite(load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#delete_ssl_cipher_suite.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_ssl_cipher_suite." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling delete_ssl_cipher_suite." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/sslCipherSuites/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#delete_ssl_cipher_suite') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#get_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_backend.rb.html) to see an example of how to use get_backend API.
Gets the specified backend server’s configuration information.
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1504 def get_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_backend.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_backend." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling get_backend." if backend_set_name.nil? raise "Missing the required parameter 'backend_name' when calling get_backend." if backend_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::Backend' ) end # rubocop:enable Metrics/BlockLength end |
#get_backend_health(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_backend_health.rb.html) to see an example of how to use get_backend_health API.
Gets the current health status of the specified backend server.
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1572 def get_backend_health(load_balancer_id, backend_set_name, backend_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_backend_health.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_backend_health." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling get_backend_health." if backend_set_name.nil? raise "Missing the required parameter 'backend_name' when calling get_backend_health." if backend_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_health') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::BackendHealth' ) end # rubocop:enable Metrics/BlockLength end |
#get_backend_set(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_backend_set.rb.html) to see an example of how to use get_backend_set API.
Gets the specified backend set’s configuration information.
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1636 def get_backend_set(load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_backend_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling get_backend_set." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_set') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::BackendSet' ) end # rubocop:enable Metrics/BlockLength end |
#get_backend_set_health(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_backend_set_health.rb.html) to see an example of how to use get_backend_set_health API.
Gets the health status for the specified backend set.
1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1698 def get_backend_set_health(load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_backend_set_health.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set_health." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling get_backend_set_health." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/health'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_backend_set_health') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::BackendSetHealth' ) end # rubocop:enable Metrics/BlockLength end |
#get_health_checker(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_health_checker.rb.html) to see an example of how to use get_health_checker API.
Gets the health check policy information for a given load balancer and backend set.
1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1760 def get_health_checker(load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_health_checker.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_health_checker." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling get_health_checker." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_health_checker') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::HealthChecker' ) end # rubocop:enable Metrics/BlockLength end |
#get_hostname(load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_hostname.rb.html) to see an example of how to use get_hostname API.
Gets the specified hostname resource’s configuration information.
1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1822 def get_hostname(load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_hostname.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_hostname." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling get_hostname." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_hostname') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::Hostname' ) end # rubocop:enable Metrics/BlockLength end |
#get_load_balancer(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_load_balancer.rb.html) to see an example of how to use get_load_balancer API.
Gets the specified load balancer’s configuration information.
1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1880 def get_load_balancer(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_load_balancer.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_load_balancer') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::LoadBalancer' ) end # rubocop:enable Metrics/BlockLength end |
#get_load_balancer_health(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_load_balancer_health.rb.html) to see an example of how to use get_load_balancer_health API.
Gets the health status for the specified load balancer.
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1936 def get_load_balancer_health(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_load_balancer_health.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer_health." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/health'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_load_balancer_health') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::LoadBalancerHealth' ) end # rubocop:enable Metrics/BlockLength end |
#get_path_route_set(load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_path_route_set.rb.html) to see an example of how to use get_path_route_set API.
Gets the specified path route set’s configuration information.
1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1996 def get_path_route_set(load_balancer_id, path_route_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_path_route_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_path_route_set." if load_balancer_id.nil? raise "Missing the required parameter 'path_route_set_name' when calling get_path_route_set." if path_route_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util.blank_string?(path_route_set_name) path = '/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_path_route_set') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::PathRouteSet' ) end # rubocop:enable Metrics/BlockLength end |
#get_routing_policy(load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_routing_policy.rb.html) to see an example of how to use get_routing_policy API.
Gets the specified routing policy.
2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2058 def get_routing_policy(load_balancer_id, routing_policy_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_routing_policy.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_routing_policy." if load_balancer_id.nil? raise "Missing the required parameter 'routing_policy_name' when calling get_routing_policy." if routing_policy_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'routing_policy_name' must not be blank" if OCI::Internal::Util.blank_string?(routing_policy_name) path = '/loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{routingPolicyName}', routing_policy_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_routing_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::RoutingPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_rule_set.rb.html) to see an example of how to use get_rule_set API.
Gets the specified set of rules.
2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2120 def get_rule_set(load_balancer_id, rule_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_rule_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_rule_set." if load_balancer_id.nil? raise "Missing the required parameter 'rule_set_name' when calling get_rule_set." if rule_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'rule_set_name' must not be blank" if OCI::Internal::Util.blank_string?(rule_set_name) path = '/loadBalancers/{loadBalancerId}/ruleSets/{ruleSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{ruleSetName}', rule_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_rule_set') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::RuleSet' ) end # rubocop:enable Metrics/BlockLength end |
#get_ssl_cipher_suite(load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_ssl_cipher_suite.rb.html) to see an example of how to use get_ssl_cipher_suite API.
Gets the specified SSL cipher suite’s configuration information.
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2183 def get_ssl_cipher_suite(load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_ssl_cipher_suite.' if logger raise "Missing the required parameter 'load_balancer_id' when calling get_ssl_cipher_suite." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling get_ssl_cipher_suite." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/sslCipherSuites/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_ssl_cipher_suite') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::SSLCipherSuite' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(work_request_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/get_work_request.rb.html) to see an example of how to use get_work_request API.
Gets the details of a work request.
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2241 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#get_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/loadBalancerWorkRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#get_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::LoadBalancer::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_backend_sets(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_backend_sets.rb.html) to see an example of how to use list_backend_sets API.
Lists all backend sets associated with a given load balancer.
2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2297 def list_backend_sets(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_backend_sets.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_backend_sets." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/backendSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_backend_sets') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::BackendSet>' ) end # rubocop:enable Metrics/BlockLength end |
#list_backends(load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_backends.rb.html) to see an example of how to use list_backends API.
Lists the backend servers for a given load balancer and backend set.
2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2357 def list_backends(load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_backends.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_backends." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling list_backends." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_backends') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::Backend>' ) end # rubocop:enable Metrics/BlockLength end |
#list_certificates(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_certificates.rb.html) to see an example of how to use list_certificates API.
Lists all SSL certificates bundles associated with a given load balancer.
2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2417 def list_certificates(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_certificates.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_certificates." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/certificates'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_certificates') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::Certificate>' ) end # rubocop:enable Metrics/BlockLength end |
#list_hostnames(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_hostnames.rb.html) to see an example of how to use list_hostnames API.
Lists all hostname resources associated with the specified load balancer.
2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2475 def list_hostnames(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_hostnames.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_hostnames." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/hostnames'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_hostnames') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::Hostname>' ) end # rubocop:enable Metrics/BlockLength end |
#list_listener_rules(load_balancer_id, listener_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_listener_rules.rb.html) to see an example of how to use list_listener_rules API.
Lists all of the rules from all of the rule sets associated with the specified listener. The response organizes the rules in the following order:
-
Access control rules
-
Allow method rules
-
Request header rules
-
Response header rules
2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2540 def list_listener_rules(load_balancer_id, listener_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_listener_rules.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_listener_rules." if load_balancer_id.nil? raise "Missing the required parameter 'listener_name' when calling list_listener_rules." if listener_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util.blank_string?(listener_name) path = '/loadBalancers/{loadBalancerId}/listeners/{listenerName}/rules'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_listener_rules') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::ListenerRuleSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_load_balancer_healths(compartment_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_load_balancer_healths.rb.html) to see an example of how to use list_load_balancer_healths API.
Lists the summary health statuses for all load balancers in the specified compartment.
2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2608 def list_load_balancer_healths(compartment_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_load_balancer_healths.' if logger raise "Missing the required parameter 'compartment_id' when calling list_load_balancer_healths." if compartment_id.nil? path = '/loadBalancerHealths' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_load_balancer_healths') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerHealthSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_load_balancers(compartment_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_load_balancers.rb.html) to see an example of how to use list_load_balancers API.
Lists all load balancers in the specified compartment.
2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2695 def list_load_balancers(compartment_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_load_balancers.' if logger raise "Missing the required parameter 'compartment_id' when calling list_load_balancers." if compartment_id.nil? if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end if opts[:lifecycle_state] && !OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::LoadBalancer::Models::LoadBalancer::LIFECYCLE_STATE_ENUM.' end path = '/loadBalancers' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:detail] = opts[:detail] if opts[:detail] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_load_balancers') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancer>' ) end # rubocop:enable Metrics/BlockLength end |
#list_path_route_sets(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_path_route_sets.rb.html) to see an example of how to use list_path_route_sets API.
Lists all path route sets associated with the specified load balancer.
2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2772 def list_path_route_sets(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_path_route_sets.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_path_route_sets." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/pathRouteSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_path_route_sets') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::PathRouteSet>' ) end # rubocop:enable Metrics/BlockLength end |
#list_policies(compartment_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_policies.rb.html) to see an example of how to use list_policies API.
Lists the available load balancer policies.
2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2838 def list_policies(compartment_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_policies." if compartment_id.nil? path = '/loadBalancerPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerPolicy>' ) end # rubocop:enable Metrics/BlockLength end |
#list_protocols(compartment_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_protocols.rb.html) to see an example of how to use list_protocols API.
Lists all supported traffic protocols.
2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2906 def list_protocols(compartment_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_protocols.' if logger raise "Missing the required parameter 'compartment_id' when calling list_protocols." if compartment_id.nil? path = '/loadBalancerProtocols' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_protocols') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerProtocol>' ) end # rubocop:enable Metrics/BlockLength end |
#list_routing_policies(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_routing_policies.rb.html) to see an example of how to use list_routing_policies API.
Lists all routing policies associated with the specified load balancer.
2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2975 def list_routing_policies(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_routing_policies.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_routing_policies." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/routingPolicies'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_routing_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::RoutingPolicy>' ) end # rubocop:enable Metrics/BlockLength end |
#list_rule_sets(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_rule_sets.rb.html) to see an example of how to use list_rule_sets API.
Lists all rule sets associated with the specified load balancer.
3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3033 def list_rule_sets(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_rule_sets.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_rule_sets." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/ruleSets'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_rule_sets') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::RuleSet>' ) end # rubocop:enable Metrics/BlockLength end |
#list_shapes(compartment_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_shapes.rb.html) to see an example of how to use list_shapes API.
Lists the valid load balancer shapes.
3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3099 def list_shapes(compartment_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil? path = '/loadBalancerShapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_shapes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::LoadBalancerShape>' ) end # rubocop:enable Metrics/BlockLength end |
#list_ssl_cipher_suites(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_ssl_cipher_suites.rb.html) to see an example of how to use list_ssl_cipher_suites API.
Lists all SSL cipher suites associated with the specified load balancer.
3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3158 def list_ssl_cipher_suites(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_ssl_cipher_suites.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_ssl_cipher_suites." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/sslCipherSuites'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_ssl_cipher_suites') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::SSLCipherSuite>' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
Lists the work requests for a given load balancer.
3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3224 def list_work_requests(load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#list_work_requests.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_work_requests." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/workRequests'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'Array<OCI::LoadBalancer::Models::WorkRequest>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
93 94 95 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 93 def logger @api_client.config.logger end |
#update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_backend.rb.html) to see an example of how to use update_backend API.
Updates the configuration of a backend server within the specified backend set.
3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3297 def update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_backend.' if logger raise "Missing the required parameter 'update_backend_details' when calling update_backend." if update_backend_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_backend." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling update_backend." if backend_set_name.nil? raise "Missing the required parameter 'backend_name' when calling update_backend." if backend_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_backend_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_backend') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_backend_set.rb.html) to see an example of how to use update_backend_set API.
Updates a backend set.
3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3370 def update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_backend_set.' if logger raise "Missing the required parameter 'update_backend_set_details' when calling update_backend_set." if update_backend_set_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_backend_set." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling update_backend_set." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_backend_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_backend_set') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_health_checker.rb.html) to see an example of how to use update_health_checker API.
Updates the health check policy for a given load balancer and backend set.
3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3441 def update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_health_checker.' if logger raise "Missing the required parameter 'health_checker' when calling update_health_checker." if health_checker.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_health_checker." if load_balancer_id.nil? raise "Missing the required parameter 'backend_set_name' when calling update_health_checker." if backend_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name) path = '/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(health_checker) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_health_checker') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_hostname(update_hostname_details, load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_hostname.rb.html) to see an example of how to use update_hostname API.
Overwrites an existing hostname resource on the specified load balancer. Use this operation to change a virtual hostname.
3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3510 def update_hostname(update_hostname_details, load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_hostname.' if logger raise "Missing the required parameter 'update_hostname_details' when calling update_hostname." if update_hostname_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_hostname." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling update_hostname." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/hostnames/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_hostname_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_hostname') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_listener(update_listener_details, load_balancer_id, listener_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_listener.rb.html) to see an example of how to use update_listener API.
Updates a listener for a given load balancer.
3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3579 def update_listener(update_listener_details, load_balancer_id, listener_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_listener.' if logger raise "Missing the required parameter 'update_listener_details' when calling update_listener." if update_listener_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_listener." if load_balancer_id.nil? raise "Missing the required parameter 'listener_name' when calling update_listener." if listener_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util.blank_string?(listener_name) path = '/loadBalancers/{loadBalancerId}/listeners/{listenerName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_listener_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_listener') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_load_balancer.rb.html) to see an example of how to use update_load_balancer API.
Updates a load balancer’s configuration.
3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3646 def update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_load_balancer.' if logger raise "Missing the required parameter 'update_load_balancer_details' when calling update_load_balancer." if update_load_balancer_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_load_balancer." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_load_balancer_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_load_balancer') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_load_balancer_shape(load_balancer_id, update_load_balancer_shape_details, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_load_balancer_shape.rb.html) to see an example of how to use update_load_balancer_shape API.
Update the shape of a load balancer. The new shape can be larger or smaller compared to existing shape of the LB. The service will try to perform this operation in the least disruptive way to existing connections, but there is a possibility that they might be lost during the LB resizing process. The new shape becomes effective as soon as the related work request completes successfully, i.e. when reshaping to a larger shape, the LB will start accepting larger bandwidth and when reshaping to a smaller one, the LB will be accepting smaller bandwidth.
3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3717 def update_load_balancer_shape(load_balancer_id, update_load_balancer_shape_details, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_load_balancer_shape.' if logger raise "Missing the required parameter 'load_balancer_id' when calling update_load_balancer_shape." if load_balancer_id.nil? raise "Missing the required parameter 'update_load_balancer_shape_details' when calling update_load_balancer_shape." if update_load_balancer_shape_details.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/updateShape'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_load_balancer_shape_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_load_balancer_shape') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_network_security_groups(update_network_security_groups_details, load_balancer_id, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_network_security_groups.rb.html) to see an example of how to use update_network_security_groups API.
Updates the network security groups associated with the specified load balancer.
3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3782 def update_network_security_groups(update_network_security_groups_details, load_balancer_id, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_network_security_groups.' if logger raise "Missing the required parameter 'update_network_security_groups_details' when calling update_network_security_groups." if update_network_security_groups_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_network_security_groups." if load_balancer_id.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) path = '/loadBalancers/{loadBalancerId}/networkSecurityGroups'.sub('{loadBalancerId}', load_balancer_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_network_security_groups_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_network_security_groups') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_path_route_set(update_path_route_set_details, load_balancer_id, path_route_set_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_path_route_set.rb.html) to see an example of how to use update_path_route_set API.
Overwrites an existing path route set on the specified load balancer. Use this operation to add, delete, or alter path route rules in a path route set.
To add a new path route rule to a path route set, the pathRoutes in the update_path_route_set_details object must include both the new path route rule to add and the existing path route rules to retain.
3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3857 def update_path_route_set(update_path_route_set_details, load_balancer_id, path_route_set_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_path_route_set.' if logger raise "Missing the required parameter 'update_path_route_set_details' when calling update_path_route_set." if update_path_route_set_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_path_route_set." if load_balancer_id.nil? raise "Missing the required parameter 'path_route_set_name' when calling update_path_route_set." if path_route_set_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util.blank_string?(path_route_set_name) path = '/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_path_route_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_path_route_set') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_routing_policy(update_routing_policy_details, load_balancer_id, routing_policy_name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_routing_policy.rb.html) to see an example of how to use update_routing_policy API.
Overwrites an existing routing policy on the specified load balancer. Use this operation to add, delete, or alter routing policy rules in a routing policy.
To add a new routing rule to a routing policy, the body must include both the new routing rule to add and the existing rules to retain.
3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3932 def update_routing_policy(update_routing_policy_details, load_balancer_id, routing_policy_name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_routing_policy.' if logger raise "Missing the required parameter 'update_routing_policy_details' when calling update_routing_policy." if update_routing_policy_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_routing_policy." if load_balancer_id.nil? raise "Missing the required parameter 'routing_policy_name' when calling update_routing_policy." if routing_policy_name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'routing_policy_name' must not be blank" if OCI::Internal::Util.blank_string?(routing_policy_name) path = '/loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{routingPolicyName}', routing_policy_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_routing_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_routing_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_rule_set(load_balancer_id, rule_set_name, update_rule_set_details, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_rule_set.rb.html) to see an example of how to use update_rule_set API.
Overwrites an existing set of rules on the specified load balancer. Use this operation to add or alter the rules in a rule set.
To add a new rule to a set, the body must include both the new rule to add and the existing rules to retain.
4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 4001 def update_rule_set(load_balancer_id, rule_set_name, update_rule_set_details, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_rule_set.' if logger raise "Missing the required parameter 'load_balancer_id' when calling update_rule_set." if load_balancer_id.nil? raise "Missing the required parameter 'rule_set_name' when calling update_rule_set." if rule_set_name.nil? raise "Missing the required parameter 'update_rule_set_details' when calling update_rule_set." if update_rule_set_details.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'rule_set_name' must not be blank" if OCI::Internal::Util.blank_string?(rule_set_name) path = '/loadBalancers/{loadBalancerId}/ruleSets/{ruleSetName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{ruleSetName}', rule_set_name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_rule_set_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_rule_set') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_ssl_cipher_suite(update_ssl_cipher_suite_details, load_balancer_id, name, opts = {}) ⇒ Response
Click [here](docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/update_ssl_cipher_suite.rb.html) to see an example of how to use update_ssl_cipher_suite API.
Updates an existing SSL cipher suite for the specified load balancer.
4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 4071 def update_ssl_cipher_suite(update_ssl_cipher_suite_details, load_balancer_id, name, opts = {}) logger.debug 'Calling operation LoadBalancerClient#update_ssl_cipher_suite.' if logger raise "Missing the required parameter 'update_ssl_cipher_suite_details' when calling update_ssl_cipher_suite." if update_ssl_cipher_suite_details.nil? raise "Missing the required parameter 'load_balancer_id' when calling update_ssl_cipher_suite." if load_balancer_id.nil? raise "Missing the required parameter 'name' when calling update_ssl_cipher_suite." if name.nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id) raise "Parameter value for 'name' must not be blank" if OCI::Internal::Util.blank_string?(name) path = '/loadBalancers/{loadBalancerId}/sslCipherSuites/{name}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{name}', name.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_ssl_cipher_suite_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'LoadBalancerClient#update_ssl_cipher_suite') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |