I want to get all of the allowed values of a field
For list type field you can use list_allowed_values function , You can also use field_info_field($field_name) for more details about field.

$my_field = field_info_field('field_resource_type');
$allowed_values= list_allowed_values($my_field);