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
-
#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_rule_set(load_balancer_id, create_rule_set_details, opts = {}) ⇒ Response
Creates a new rule set associated with the specified load balancer.
-
#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_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Deletes a rule set from the specified 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_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Gets the specified set of rules.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the details of a work request.
-
#initialize(config: nil, region: 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_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_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_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_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_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.
Constructor Details
#initialize(config: nil, region: 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
A region must be specified in either the config or the region parameter. If specified in both,
then the region parameter will be used.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 51 def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals) # 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 unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner) if signer.nil? signer = OCI::Signer.new( config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content ) end @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
13 14 15 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 13 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
17 18 19 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 17 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
27 28 29 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 27 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
23 24 25 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 23 def retry_config @retry_config end |
Instance Method Details
#create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {}) ⇒ Response
Adds a backend server to a backend set.
125 126 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 125 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
Adds a backend set to a load balancer.
191 192 193 194 195 196 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 191 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
Creates an asynchronous request to add an SSL certificate bundle.
255 256 257 258 259 260 261 262 263 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 255 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
Adds a hostname resource to the specified load balancer. For more information, see [Managing Request Routing](docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm).
321 322 323 324 325 326 327 328 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 321 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
Adds a listener to a load balancer.
385 386 387 388 389 390 391 392 393 394 395 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 385 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
Creates a new load balancer in the specified compartment. For general information about load balancers, see [Overview of the Load Balancing Service](docs.us-phoenix-1.oraclecloud.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.us-phoenix-1.oraclecloud.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.us-phoenix-1.oraclecloud.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.us-phoenix-1.oraclecloud.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.
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 500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 475 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
Adds a path route set to a load balancer. For more information, see [Managing Request Routing](docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm).
539 540 541 542 543 544 545 546 547 548 549 550 551 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 539 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_rule_set(load_balancer_id, create_rule_set_details, opts = {}) ⇒ Response
Creates a new rule set associated with the specified load balancer.
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 598 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 |
#delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Removes a backend server from a given load balancer and backend set.
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 661 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
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.
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 726 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
Deletes an SSL certificate bundle from a load balancer.
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 788 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
Deletes a hostname resource from the specified load balancer.
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 849 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
Deletes a listener from a load balancer.
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 909 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
Stops a load balancer and removes it from service.
965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 965 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
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.
1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1027 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_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Deletes a rule set from the specified load balancer.
To delete a rule from a rule set, use the update_rule_set operation.
1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1091 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 |
#get_backend(load_balancer_id, backend_set_name, backend_name, opts = {}) ⇒ Response
Gets the specified backend server’s configuration information.
1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1155 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
Gets the current health status of the specified backend server.
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1222 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
Gets the specified backend set’s configuration information.
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1285 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
Gets the health status for the specified backend set.
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1346 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
Gets the health check policy information for a given load balancer and backend set.
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1407 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
Gets the specified hostname resource’s configuration information.
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1468 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
Gets the specified load balancer’s configuration information.
1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1525 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
Gets the health status for the specified load balancer.
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 1613 1614 1615 1616 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1580 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
Gets the specified path route set’s configuration information.
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 1675 1676 1677 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1639 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_rule_set(load_balancer_id, rule_set_name, opts = {}) ⇒ Response
Gets the specified set of rules.
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 1737 1738 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1700 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_work_request(work_request_id, opts = {}) ⇒ Response
Gets the details of a work request.
1757 1758 1759 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1757 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
Lists all backend sets associated with a given load balancer.
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1812 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
Lists the backend servers for a given load balancer and backend set.
1871 1872 1873 1874 1875 1876 1877 1878 1879 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1871 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
Lists all SSL certificates bundles associated with a given load balancer.
1930 1931 1932 1933 1934 1935 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1930 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
Lists all hostname resources associated with the specified load balancer.
1987 1988 1989 1990 1991 1992 1993 1994 1995 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 1987 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_load_balancer_healths(compartment_id, opts = {}) ⇒ Response
Lists the summary health statuses for all load balancers in the specified compartment.
2052 2053 2054 2055 2056 2057 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2052 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
Lists all load balancers in the specified compartment.
2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2138 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
Lists all path route sets associated with the specified load balancer.
2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2214 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
Lists the available load balancer policies.
2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2279 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
Lists all supported traffic protocols.
2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2346 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_rule_sets(load_balancer_id, opts = {}) ⇒ Response
Lists all rule sets associated with the specified load balancer.
2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2403 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
Lists the valid load balancer shapes.
2468 2469 2470 2471 2472 2473 2474 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2468 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_work_requests(load_balancer_id, opts = {}) ⇒ Response
Lists the work requests for a given load balancer.
2535 2536 2537 2538 2539 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2535 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.
96 97 98 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 96 def logger @api_client.config.logger end |
#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.
2607 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 2647 2648 2649 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2607 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
Updates a backend set.
2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2679 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
Updates the health check policy for a given load balancer and backend set.
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2749 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
Overwrites an existing hostname resource on the specified load balancer. Use this operation to change a virtual hostname.
2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2817 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
Updates a listener for a given load balancer.
2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2885 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
Updates a load balancer’s configuration.
2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 2951 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_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. 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.
3025 3026 3027 3028 3029 3030 3031 3032 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3025 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_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. 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.
3093 3094 3095 3096 3097 3098 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 |
# File 'lib/oci/load_balancer/load_balancer_client.rb', line 3093 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 |