m/rackspace/php-opencloud/master/samples/Networking/create-ports.php">Get the executable PHP script for this example</a></p>
</div>
<div class="section" id="list-ports">
<h2>List ports<a class="headerlink" href="#list-ports" title="Permalink to this headline">¶</a></h2>
<p>You can list all the ports to which you have access as shown in the following example:</p>
<div class="highlight-php"><div class="highlight"><pre><span class="nv">$ports</span> <span class="o">=</span> <span class="nv">$networkingService