pass profile along with connection_args

pass profile name along with connection_args to helper methods of endpoint_create
Done the changes