lib/oci/core/virtual_network_client.rb
# Connects this RPC to another one in a different region.
#
# This operation must be called by the VCN administrator who is designated as
# the *requestor* in the peering relationship. The *acceptor* must implement
# an Identity and Access Management (IAM) policy that gives the requestor permission
# to connect to RPCs in the acceptor's compartment. Without that permission, this
# operation will fail. For more information, see
# [VCN Peering](https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm).
#
# @param [String] remote_peering_connection_id The OCID of the remote peering connection (RPC).
# @param [OCI::Core::Models::ConnectRemotePeeringConnectionsDetails] connect_remote_peering_connections_details Details to connect peering connection with peering connection from remote region
#
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @return [Response] A Response object with data of type nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/core/connect_remote_peering_connections.rb.html) to see an example of how to use connect_remote_peering_connections API.
Connects this RPC to another one in a different region.
This operation must be called by the VCN administrator who is designated as
the *requestor* in the peering relationship. The *acceptor* must implement
an Identity and Access Management (IAM) policy that gives the requestor permission
to connect to RPCs in the acceptor's compartment. Without that permission, this
operation will fail. For more information, see
[VCN Peering].
Connects this RPC to another one in a different region . This operation must be called by the VCN administrator who is designated as the * requestor * in the peering relationship . The * acceptor * must implement an Identity and Access Management ( IAM ) policy that gives the requestor permission to connect to RPCs in the acceptor ' s compartment . Without that permission this operation will fail . For more information see [ VCN Peering ] .
def connect_remote_peering_connections(remote_peering_connection_id, connect_remote_peering_connections_details, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#connect_remote_peering_connections.' if logger
      raise "Missing the required parameter 'remote_peering_connection_id' when calling connect_remote_peering_connections." if remote_peering_connection_id.nil?
      raise "Missing the required parameter 'connect_remote_peering_connections_details' when calling connect_remote_peering_connections." if connect_remote_peering_connections_details.nil?
      raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(remote_peering_connection_id)
      path = '/remotePeeringConnections/{remotePeeringConnectionId}/actions/connect'.sub('{remotePeeringConnectionId}', remote_peering_connection_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = @api_client.object_to_http_body(connect_remote_peering_connections_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#connect_remote_peering_connections') 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
    end
def connect_remote_peering_connections ( remote_peering_connection_id , connect_remote_peering_connections_details , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#connect_remote_peering_connections.' if logger raise "Missing the required parameter 'remote_peering_connection_id' when calling connect_remote_peering_connections." if remote_peering_connection_id . nil? raise "Missing the required parameter 'connect_remote_peering_connections_details' when calling connect_remote_peering_connections." if connect_remote_peering_connections_details . nil? raise "Parameter value for 'remote_peering_connection_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( remote_peering_connection_id ) path = '/remotePeeringConnections/{remotePeeringConnectionId}/actions/connect' . sub ( '{remotePeeringConnectionId}' , remote_peering_connection_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = @api_client . object_to_http_body ( connect_remote_peering_connections_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'VirtualNetworkClient#connect_remote_peering_connections' ) 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 end
Connects this RPC to another one in a different region.
Connects this RPC to another one in a different region .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type nil
A Response object with data of type nil
Response
remote_peering_connection_id
<not_specific>
connect_remote_peering_connections_details
<not_specific>
opts
:retry_config The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
: retry_config The retry configuration to apply to this operation . If no key is provided then the service - level retry configuration defined by { #retry_config } will be used . If an explicit ` nil ` value is provided then the operation will not retry
<not_specific>
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use connect_remote_peering_connections API.
Click [ here ] to see an example of how to use connect_remote_peering_connections API .