src/vsphere_cpi/lib/nsxt/nsxt_client/api/aaa_api.rb
# Create registration access token
# By default, api role is network_engineer. 
# @param [Hash] opts the optional parameters
# @option opts [String] :registration_api_user_role API User Role for registration
# @return [Array<(RegistrationToken, Fixnum, Hash)>] RegistrationToken data, response status code and response headers
Create registration access token
By default, api role is network_engineer.
Create registration access token By default api role is network_engineer .
def create_registration_token_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: AaaApi.create_registration_token ..."
      end
      if @api_client.config.client_side_validation && opts[:'registration_api_user_role'] && !['enterprise_admin', 'network_engineer'].include?(opts[:'registration_api_user_role'])
        fail ArgumentError, 'invalid value for "registration_api_user_role", must be one of enterprise_admin, network_engineer'
      end
      local_var_path = "/aaa/registration-token"
      query_params = {}
      query_params[:'registration_api_user_role'] = opts[:'registration_api_user_role'] if !opts[:'registration_api_user_role'].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(:POST, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'RegistrationToken')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AaaApi#create_registration_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_registration_token_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: AaaApi.create_registration_token ..." end if @api_client . config . client_side_validation && opts [ :' registration_api_user_role ' ] && ! [ 'enterprise_admin' , 'network_engineer' ] . include? ( opts [ :' registration_api_user_role ' ] ) fail ArgumentError , 'invalid value for "registration_api_user_role", must be one of enterprise_admin, network_engineer' end local_var_path = "/aaa/registration-token" query_params = { } query_params [ :' registration_api_user_role ' ] = opts [ :' registration_api_user_role ' ] if ! opts [ :' registration_api_user_role ' ] . 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 ( :POST , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'RegistrationToken' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AaaApi#create_registration_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Create registration access token
By default, api role is network_engineer.
Create registration access token By default api role is network_engineer .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
RegistrationToken data, response status code and response headers
RegistrationToken data response status code and response headers
Array<(RegistrationToken, Fixnum, Hash)>
opts
:registration_api_user_role API User Role for registration
: registration_api_user_role API User Role for registration
opts the optional parameters
opts the optional parameters