lib/oci/core/virtual_network_client.rb
# Removes one or more customer public IP prefixes from the specified public virtual circuit.
# Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
# to remove prefixes from the virtual circuit. When the virtual circuit's state switches
# back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.
#
# @param [String] virtual_circuit_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit.
# @param [OCI::Core::Models::BulkDeleteVirtualCircuitPublicPrefixesDetails] bulk_delete_virtual_circuit_public_prefixes_details Request with public prefixes to be deleted from the virtual circuit.
# @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/bulk_delete_virtual_circuit_public_prefixes.rb.html) to see an example of how to use bulk_delete_virtual_circuit_public_prefixes API.
Removes one or more customer public IP prefixes from the specified public virtual circuit.
Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
to remove prefixes from the virtual circuit. When the virtual circuit's state switches
back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection.
Removes one or more customer public IP prefixes from the specified public virtual circuit . Use this operation ( and not { #update_virtual_circuit update_virtual_circuit } ) to remove prefixes from the virtual circuit . When the virtual circuit ' s state switches back to PROVISIONED Oracle stops advertising the specified prefixes across the connection .
def bulk_delete_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_delete_virtual_circuit_public_prefixes_details, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes.' if logger
      raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
      raise "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details.nil?
      raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_circuit_id)
      path = '/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes'.sub('{virtualCircuitId}', virtual_circuit_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(bulk_delete_virtual_circuit_public_prefixes_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes') 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 bulk_delete_virtual_circuit_public_prefixes ( virtual_circuit_id , bulk_delete_virtual_circuit_public_prefixes_details , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes.' if logger raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_delete_virtual_circuit_public_prefixes." if virtual_circuit_id . nil? raise "Missing the required parameter 'bulk_delete_virtual_circuit_public_prefixes_details' when calling bulk_delete_virtual_circuit_public_prefixes." if bulk_delete_virtual_circuit_public_prefixes_details . nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( virtual_circuit_id ) path = '/virtualCircuits/{virtualCircuitId}/actions/bulkDeletePublicPrefixes' . sub ( '{virtualCircuitId}' , virtual_circuit_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 ( bulk_delete_virtual_circuit_public_prefixes_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'VirtualNetworkClient#bulk_delete_virtual_circuit_public_prefixes' ) 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
Removes one or more customer public IP prefixes from the specified public virtual circuit.
Removes one or more customer public IP prefixes from the specified public virtual circuit .
# 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
virtual_circuit_id
<not_specific>
bulk_delete_virtual_circuit_public_prefixes_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 bulk_delete_virtual_circuit_public_prefixes API.
Click [ here ] to see an example of how to use bulk_delete_virtual_circuit_public_prefixes API .