src/vsphere_cpi/lib/nsxt/nsxt_client/api/services_api.rb
# Get all network encryption key policies
# Get all network encryption key policies
# @param [Hash] opts the optional parameters
# @option opts [String] :cursor Opaque cursor to be used for getting next page of records (supplied by current result page)
# @option opts [String] :encrypt_algorithm DNE key encryption algorithm
# @option opts [String] :encrypt_type Key policy encryption type
# @option opts [String] :included_fields Comma separated list of fields that should be included to result of query
# @option opts [String] :mac_algorithm MAC algorithm type
# @option opts [Integer] :page_size Maximum number of results to return in this page (server may return fewer)
# @option opts [BOOLEAN] :sort_ascending 
# @option opts [String] :sort_by Field by which records are sorted
# @return [Array<(DneKeyPolicyListResult, Fixnum, Hash)>] DneKeyPolicyListResult data, response status code and response headers
Get all network encryption key policies
Get all network encryption key policies
Get all network encryption key policies Get all network encryption key policies
def list_dne_key_policies_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: ServicesApi.list_dne_key_policies ..."
      end
      if @api_client.config.client_side_validation && opts[:'encrypt_algorithm'] && !['ENC_NULL', 'ENC_AES_GCM_128'].include?(opts[:'encrypt_algorithm'])
        fail ArgumentError, 'invalid value for "encrypt_algorithm", must be one of ENC_NULL, ENC_AES_GCM_128'
      end
      if @api_client.config.client_side_validation && opts[:'encrypt_type'] && !['INTEGRITY_ONLY', 'ENCRYPTION_AND_INTEGRITY'].include?(opts[:'encrypt_type'])
        fail ArgumentError, 'invalid value for "encrypt_type", must be one of INTEGRITY_ONLY, ENCRYPTION_AND_INTEGRITY'
      end
      if @api_client.config.client_side_validation && opts[:'mac_algorithm'] && !['MAC_ALG_AES_GCM_128'].include?(opts[:'mac_algorithm'])
        fail ArgumentError, 'invalid value for "mac_algorithm", must be one of MAC_ALG_AES_GCM_128'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ServicesApi.list_dne_key_policies, must be smaller than or equal to 1000.'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ServicesApi.list_dne_key_policies, must be greater than or equal to 0.'
      end
      local_var_path = "/network-encryption/key-policies"
      query_params = {}
      query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
      query_params[:'encrypt_algorithm'] = opts[:'encrypt_algorithm'] if !opts[:'encrypt_algorithm'].nil?
      query_params[:'encrypt_type'] = opts[:'encrypt_type'] if !opts[:'encrypt_type'].nil?
      query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
      query_params[:'mac_algorithm'] = opts[:'mac_algorithm'] if !opts[:'mac_algorithm'].nil?
      query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
      query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
      query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = {}
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'DneKeyPolicyListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: ServicesApi#list_dne_key_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_dne_key_policies_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: ServicesApi.list_dne_key_policies ..." end if @api_client . config . client_side_validation && opts [ :' encrypt_algorithm ' ] && ! [ 'ENC_NULL' , 'ENC_AES_GCM_128' ] . include? ( opts [ :' encrypt_algorithm ' ] ) fail ArgumentError , 'invalid value for "encrypt_algorithm", must be one of ENC_NULL, ENC_AES_GCM_128' end if @api_client . config . client_side_validation && opts [ :' encrypt_type ' ] && ! [ 'INTEGRITY_ONLY' , 'ENCRYPTION_AND_INTEGRITY' ] . include? ( opts [ :' encrypt_type ' ] ) fail ArgumentError , 'invalid value for "encrypt_type", must be one of INTEGRITY_ONLY, ENCRYPTION_AND_INTEGRITY' end if @api_client . config . client_side_validation && opts [ :' mac_algorithm ' ] && ! [ 'MAC_ALG_AES_GCM_128' ] . include? ( opts [ :' mac_algorithm ' ] ) fail ArgumentError , 'invalid value for "mac_algorithm", must be one of MAC_ALG_AES_GCM_128' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] > 1000 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling ServicesApi.list_dne_key_policies, must be smaller than or equal to 1000.' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling ServicesApi.list_dne_key_policies, must be greater than or equal to 0.' end local_var_path = "/network-encryption/key-policies" query_params = { } query_params [ :' cursor ' ] = opts [ :' cursor ' ] if ! opts [ :' cursor ' ] . nil? query_params [ :' encrypt_algorithm ' ] = opts [ :' encrypt_algorithm ' ] if ! opts [ :' encrypt_algorithm ' ] . nil? query_params [ :' encrypt_type ' ] = opts [ :' encrypt_type ' ] if ! opts [ :' encrypt_type ' ] . nil? query_params [ :' included_fields ' ] = opts [ :' included_fields ' ] if ! opts [ :' included_fields ' ] . nil? query_params [ :' mac_algorithm ' ] = opts [ :' mac_algorithm ' ] if ! opts [ :' mac_algorithm ' ] . nil? query_params [ :' page_size ' ] = opts [ :' page_size ' ] if ! opts [ :' page_size ' ] . nil? query_params [ :' sort_ascending ' ] = opts [ :' sort_ascending ' ] if ! opts [ :' sort_ascending ' ] . nil? query_params [ :' sort_by ' ] = opts [ :' sort_by ' ] if ! opts [ :' sort_by ' ] . nil? header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = { } post_body = nil auth_names = [ 'BasicAuth' ] data , status_code , headers = @api_client . call_api ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'DneKeyPolicyListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: ServicesApi#list_dne_key_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Get all network encryption key policies
Get all network encryption key policies
Get all network encryption key policies Get all network encryption key policies
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
DneKeyPolicyListResult data, response status code and response headers
DneKeyPolicyListResult data response status code and response headers
Array<(DneKeyPolicyListResult, Fixnum, Hash)>
opts
:sort_by Field by which records are sorted
: sort_by Field by which records are sorted
opts the optional parameters
opts the optional parameters