aster/samples/Networking/list-ports.php">Get the executable PHP script for this example</a></p>
</div>
<div class="section" id="get-a-port">
<h2>Get a port<a class="headerlink" href="#get-a-port" title="Permalink to this headline">¶</a></h2>
<p>You can retrieve a specific port by using that port&#8217;s ID, as shown in
the following example:</p>
<div class="highlight-php"><div class="highlight"><pre><span class="sd">/** @var $port OpenCloud\Networking\Resource\Port **/</span>
<span class="nv">$port</span> 