How do I use node_load() with an array as first parameter? In Drupal 6, I would use the following code. 

$nodes = node_load(array('title' =&gt; $vcenter_name, 'type' =&gt; 'vcenter')); 


What is the equivalent code for Drupal 8? I could use node_load($nid), but not node_load(array('title' =&gt; $vcenter_name, 'type' =&gt; 'vcenter')).

UPDATE

As per the answer , am getting the the $nodes array as 

Array
(
    [1147] =&gt; Drupal\node\Entity\Node Object
        (
            [in_preview] =&gt; 
            [values:protected] =&gt; Array
                (
                    [vid] =&gt; Array
                        (
                            [x-default] =&gt; 9272
                        )

                    [langcode] =&gt; Array
                        (
                            [x-default] =&gt; und
                        )

                    [revision_timestamp] =&gt; Array
                        (
                            [x-default] =&gt; 1452106357
                        )

                    [revision_uid] =&gt; Array
                        (
                            [x-default] =&gt; 0
                        )

                    [revision_log] =&gt; Array
                        (
                            [x-default] =&gt; 
                        )

                    [nid] =&gt; Array
                        (
                            [x-default] =&gt; 1147
                        )


and i can't access the fields like $nodes-&gt;field_name[0]-&gt;value;

But how i get like this : 

Drupal\node\Entity\Node Object
(
    [in_preview] =&gt; 
    [values:protected] =&gt; Array
        (
            [vid] =&gt; Array
                (
                    [x-default] =&gt; 9173
                )

            [langcode] =&gt; Array
                (
                    [x-default] =&gt; und
                )

            [revision_timestamp] =&gt; Array
                (
                    [x-default] =&gt; 1448312269
                )

            [revision_uid] =&gt; Array
                (
                    [x-default] =&gt; 0
                )

            [revision_log] =&gt; Array
                (
                    [x-default] =&gt; 
                )

            [nid] =&gt; Array
                (
                    [x-default] =&gt; 1107
                )
The equivalent of $values = array('title' =&gt; $vcenter_name, 'type' =&gt; 'vcenter'); $nodes = node_load($values); for Drupal 8 is entity_load_multiple_by_properties(), whose first parameter is the entity type, differently from node_load().

Since entity_load_multiple_by_properties($entity_type, array $values) is deprecated, you should use the following code.

$nodes = \Drupal::entityTypeManager()
  -&gt;getStorage('node')
  -&gt;loadByProperties($values);