lib/oci/core/virtual_network_client.rb
# Lists the VNICs in the specified network security group.
#
# @param [String] network_security_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security group.
# @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
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
#   \"List\" call. For important details about how pagination works, see
#   [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
#
#   Example: `50`
#
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
#   call. For important details about how pagination works, see
#   [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
#
# @option opts [String] :sort_by The field to sort by.
#   Allowed values are: TIMEASSOCIATED
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
#   is case sensitive.
#
#   Allowed values are: ASC, DESC
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::NetworkSecurityGroupVnic NetworkSecurityGroupVnic}>
Lists the VNICs in the specified network security group.
Lists the VNICs in the specified network security group .
def list_network_security_group_vnics(network_security_group_id, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#list_network_security_group_vnics.' if logger
      raise "Missing the required parameter 'network_security_group_id' when calling list_network_security_group_vnics." if network_security_group_id.nil?
      if opts[:sort_by] && !%w[TIMEASSOCIATED].include?(opts[:sort_by])
        raise 'Invalid value for "sort_by", must be one of TIMEASSOCIATED.'
      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
      raise "Parameter value for 'network_security_group_id' must not be blank" if OCI::Internal::Util.blank_string?(network_security_group_id)
      path = '/networkSecurityGroups/{networkSecurityGroupId}/vnics'.sub('{networkSecurityGroupId}', network_security_group_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:limit] = opts[:limit] if opts[:limit]
      query_params[:page] = opts[:page] if opts[:page]
      query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
      query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_network_security_group_vnics') 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::Core::Models::NetworkSecurityGroupVnic>'
        )
      end
    end
def list_network_security_group_vnics ( network_security_group_id , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#list_network_security_group_vnics.' if logger raise "Missing the required parameter 'network_security_group_id' when calling list_network_security_group_vnics." if network_security_group_id . nil? if opts [ :sort_by ] && ! %w[ TIMEASSOCIATED ] . include? ( opts [ :sort_by ] ) raise 'Invalid value for "sort_by", must be one of TIMEASSOCIATED.' 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 raise "Parameter value for 'network_security_group_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( network_security_group_id ) path = '/networkSecurityGroups/{networkSecurityGroupId}/vnics' . sub ( '{networkSecurityGroupId}' , network_security_group_id . to_s ) operation_signing_strategy = :standard query_params = { } query_params [ :limit ] = opts [ :limit ] if opts [ :limit ] query_params [ :page ] = opts [ :page ] if opts [ :page ] query_params [ :sortBy ] = opts [ :sort_by ] if opts [ :sort_by ] query_params [ :sortOrder ] = opts [ :sort_order ] if opts [ :sort_order ] header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'VirtualNetworkClient#list_network_security_group_vnics' ) 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::Core::Models::NetworkSecurityGroupVnic>' ) end end
Lists the VNICs in the specified network security group.
Lists the VNICs in the specified network security group .
# 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 Array<{OCI::Core::Models::NetworkSecurityGroupVnic NetworkSecurityGroupVnic}>
A Response object with data of type Array< { OCI :: Core :: Models :: NetworkSecurityGroupVnic NetworkSecurityGroupVnic } >
Response
network_security_group_id
<not_specific>
opts
:sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order is case sensitive. Allowed values are: ASC, DESC
: sort_order The sort order to use either ascending ( ` ASC ` ) or descending ( ` DESC ` ) . The DISPLAYNAME sort order is case sensitive . Allowed values are : ASC DESC
<not_specific>
opts the optional parameters
opts the optional parameters