����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 216.73.216.45 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/rackspace/php-opencloud/doc/_build/html/services/networking/ |
Upload File : |
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Ports — php-opencloud 1.12.1 documentation</title> <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> <link rel="top" title="php-opencloud 1.12.1 documentation" href="../../index.html"/> <link rel="up" title="Networking v2" href="index.html"/> <link rel="next" title="Security Groups" href="security-groups.html"/> <link rel="prev" title="Subnets" href="subnets.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../../index.html" class="fa fa-home"> php-opencloud</a> <div role="search"> <form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../autoscale/index.html">Auto Scale v2</a><ul> <li class="toctree-l2"><a class="reference internal" href="../autoscale/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../autoscale/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../autoscale/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../autoscale/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../compute/index.html">Compute v2</a><ul> <li class="toctree-l2"><a class="reference internal" href="../compute/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../compute/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../compute/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../compute/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Databases v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../dns/index.html">DNS v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../dns/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../dns/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../dns/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../dns/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../identity/index.html">Identity v2</a><ul> <li class="toctree-l2"><a class="reference internal" href="../identity/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../identity/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../identity/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../identity/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../image/index.html">Images v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../image/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../image/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../image/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../image/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../load-balancer/index.html">Load Balancer v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../load-balancer/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../load-balancer/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../load-balancer/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../load-balancer/index.html#further-links">Further Links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../monitoring/index.html">Monitoring v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../monitoring/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../monitoring/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../monitoring/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../monitoring/index.html#further-links">Further links</a></li> </ul> </li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Networking v2</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="index.html#setup">Setup</a></li> <li class="toctree-l2 current"><a class="reference internal" href="index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="index.html#further-links">Further links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../object-store/index.html">Object Store v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../object-store/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../object-store/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../object-store/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../object-store/index.html#further-links">Further links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../orchestration/index.html">Orchestration v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../orchestration/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../orchestration/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../orchestration/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../orchestration/index.html#further-links">Further links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../queues/index.html">Queues v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../queues/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../queues/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../queues/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../queues/index.html#further-links">Further links</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../volume/index.html">Volumes v1</a><ul> <li class="toctree-l2"><a class="reference internal" href="../volume/index.html#setup">Setup</a></li> <li class="toctree-l2"><a class="reference internal" href="../volume/index.html#operations">Operations</a></li> <li class="toctree-l2"><a class="reference internal" href="../volume/index.html#glossary">Glossary</a></li> <li class="toctree-l2"><a class="reference internal" href="../volume/index.html#further-links">Further links</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../../debugging.html">Debugging</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../debugging.html#strategy-1-meaningful-exception-handling">Strategy 1: Meaningful exception handling</a></li> <li class="toctree-l2"><a class="reference internal" href="../../debugging.html#strategy-2-wire-logging">Strategy 2: Wire logging</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../caching-creds.html">Caching credentials</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../caching-creds.html#filesystem-example">Filesystem example</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../iterators.html">Iterators</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../iterators.html#common-behaviour">Common behaviour</a></li> <li class="toctree-l2"><a class="reference internal" href="../../iterators.html#very-important-note">Very important note</a></li> <li class="toctree-l2"><a class="reference internal" href="../../iterators.html#using-paginated-collections">Using paginated collections</a></li> <li class="toctree-l2"><a class="reference internal" href="../../iterators.html#setting-up-a-paginatediterator">Setting up a PaginatedIterator</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../regions.html">Rackspace regions</a></li> <li class="toctree-l1"><a class="reference internal" href="../../url-types.html">URL types</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../url-types.html#internalurl">internalURL</a></li> <li class="toctree-l2"><a class="reference internal" href="../../url-types.html#publicurl">publicURL</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../logging.html">Logging</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../logging.html#logger-injection">Logger injection</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../http-clients.html">HTTP Clients</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../http-clients.html#default-http-headers">Default HTTP headers</a></li> <li class="toctree-l2"><a class="reference internal" href="../../http-clients.html#user-agents">User agents</a></li> <li class="toctree-l2"><a class="reference internal" href="../../http-clients.html#other-functionality">Other functionality</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../../auth.html">Authentication</a><ul> <li class="toctree-l2"><a class="reference internal" href="../../auth.html#service-catalog">Service Catalog</a></li> </ul> </li> </ul> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../index.html">php-opencloud</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../index.html">Docs</a> »</li> <li><a href="index.html">Networking v2</a> »</li> <li>Ports</li> <li class="wy-breadcrumbs-aside"> <a href="../../_sources/services/networking/ports.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main"> <div class="section" id="ports"> <h1>Ports<a class="headerlink" href="#ports" title="Permalink to this headline">¶</a></h1> <div class="section" id="create-a-port"> <h2>Create a port<a class="headerlink" href="#create-a-port" title="Permalink to this headline">¶</a></h2> <p>This operation takes one parameter, an associative array, with the following keys:</p> <table border="1" class="docutils"> <colgroup> <col width="7%" /> <col width="28%" /> <col width="18%" /> <col width="4%" /> <col width="12%" /> <col width="32%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Name</th> <th class="head">Description</th> <th class="head">Data type</th> <th class="head">Required?</th> <th class="head">Default value</th> <th class="head">Example value</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">networkId</span></tt></td> <td>Network this port is associated with</td> <td>String</td> <td>Yes</td> <td><ul class="first last simple"> <li></li> </ul> </td> <td><tt class="docutils literal"><span class="pre">eb60583c-57ea-41b9-8d5c-8fab2d22224c</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">name</span></tt></td> <td>A human-readable name for the port. This name might not be unique.</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">My</span> <span class="pre">port</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">adminStateUp</span></tt></td> <td>The administrative state of port. If <tt class="docutils literal"><span class="pre">false</span></tt> (down), the port does not forward packets.</td> <td>Boolean</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">true</span></tt></td> <td><tt class="docutils literal"><span class="pre">true</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">macAddress</span></tt></td> <td>MAC address to use on this port</td> <td>String (MAC address in 6-octet form separated by colons)</td> <td>No</td> <td>Generated</td> <td><tt class="docutils literal"><span class="pre">0F:5A:6F:70:E9:5C</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">fixedIps</span></tt></td> <td>IP addresses for this port</td> <td>Indexed array of associative arrays</td> <td>No</td> <td>Automatically allocated from the pool</td> <td><tt class="docutils literal"><span class="pre">array(array('subnetId'</span> <span class="pre">=></span> <span class="pre">'75906d20-6625-11e4-9803-0800200c9a66',</span> <span class="pre">'ipAddress'</span> <span class="pre">=></span> <span class="pre">'192.168.199.17'))</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">deviceId</span></tt></td> <td>Identifies the device (for example, virtual server) using this port</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">5e3898d7-11be-483e-9732-b2f5eccd2b2e</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">deviceOwner</span></tt></td> <td>Identifies the entity (for example, DHCP agent) using this port</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">network:router_interface</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">securityGroups</span></tt></td> <td>Specifies the IDs of any security groups associated with this port</td> <td>Indexed array of strings</td> <td>No</td> <td>Empty array</td> <td><tt class="docutils literal"><span class="pre">array('f0ac4394-7e4a-4409-9701-ba8be283dbc3')</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">tenantId</span></tt></td> <td>Owner of the port. Only admin users can specify a tenant ID other than their own.</td> <td>String</td> <td>No</td> <td>Same as the tenant creating the port</td> <td><tt class="docutils literal"><span class="pre">123456</span></tt></td> </tr> </tbody> </table> <p>You can create a port 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> <span class="o">=</span> <span class="nv">$networkingService</span><span class="o">-></span><span class="na">createPort</span><span class="p">(</span><span class="k">array</span><span class="p">(</span> <span class="s1">'name'</span> <span class="o">=></span> <span class="s1">'My port'</span><span class="p">,</span> <span class="s1">'networkId'</span> <span class="o">=></span> <span class="s1">'eb60583c-57ea-41b9-8d5c-8fab2d22224c'</span> <span class="p">));</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Networking/create-port.php">Get the executable PHP script for this example</a></p> </div> <div class="section" id="create-multiple-ports"> <h2>Create multiple ports<a class="headerlink" href="#create-multiple-ports" title="Permalink to this headline">¶</a></h2> <p>This operation takes one parameter, an indexed array. Each element of this array must be an associative array with the keys shown in <a class="reference external" href="#create-a-port">the preceding table</a>.</p> <p>You can create multiple ports 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</span><span class="o">-></span><span class="na">createPorts</span><span class="p">(</span><span class="k">array</span><span class="p">(</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'name'</span> <span class="o">=></span> <span class="s1">'My port #1'</span><span class="p">,</span> <span class="s1">'networkId'</span> <span class="o">=></span> <span class="s1">'eb60583c-57ea-41b9-8d5c-8fab2d22224c'</span> <span class="p">),</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'name'</span> <span class="o">=></span> <span class="s1">'My port #2'</span><span class="p">,</span> <span class="s1">'networkId'</span> <span class="o">=></span> <span class="s1">'eb60583c-57ea-41b9-8d5c-8fab2d22224c'</span> <span class="p">)</span> <span class="p">));</span> <span class="k">foreach</span> <span class="p">(</span><span class="nv">$ports</span> <span class="k">as</span> <span class="nv">$port</span><span class="p">)</span> <span class="p">{</span> <span class="sd">/** @var $port OpenCloud\Networking\Resource\Port **/</span> <span class="p">}</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/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</span><span class="o">-></span><span class="na">listPorts</span><span class="p">();</span> <span class="k">foreach</span> <span class="p">(</span><span class="nv">$ports</span> <span class="k">as</span> <span class="nv">$port</span><span class="p">)</span> <span class="p">{</span> <span class="sd">/** @var $port OpenCloud\Networking\Resource\Port **/</span> <span class="p">}</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/rackspace/php-opencloud/master/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’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> <span class="o">=</span> <span class="nv">$networkingService</span><span class="o">-></span><span class="na">getPort</span><span class="p">(</span><span class="s1">'{portId}'</span><span class="p">);</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Networking/get-port.php">Get the executable PHP script for this example</a></p> </div> <div class="section" id="update-a-port"> <h2>Update a port<a class="headerlink" href="#update-a-port" title="Permalink to this headline">¶</a></h2> <p>This operation takes one parameter, an associative array, with the following keys:</p> <table border="1" class="docutils"> <colgroup> <col width="7%" /> <col width="30%" /> <col width="12%" /> <col width="4%" /> <col width="13%" /> <col width="34%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Name</th> <th class="head">Description</th> <th class="head">Data type</th> <th class="head">Required?</th> <th class="head">Default value</th> <th class="head">Example value</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">name</span></tt></td> <td>A human-readable name for the port. This name might not be unique.</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">My</span> <span class="pre">port</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">adminStateUp</span></tt></td> <td>The administrative state of port. If <tt class="docutils literal"><span class="pre">false</span></tt> (down), the port does not forward packets.</td> <td>Boolean</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">true</span></tt></td> <td><tt class="docutils literal"><span class="pre">true</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">fixedIps</span></tt></td> <td>IP addresses for this port</td> <td>Indexed array of associative arrays</td> <td>No</td> <td>Automatically allocated from the pool</td> <td><tt class="docutils literal"><span class="pre">array(array('subnetId'</span> <span class="pre">=></span> <span class="pre">'75906d20-6625-11e4-9803-0800200c9a66',</span> <span class="pre">'ipAddress'</span> <span class="pre">=></span> <span class="pre">'192.168.199.59'))</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">deviceId</span></tt></td> <td>Identifies the device (for example, virtual server) using this port</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">5e3898d7-11be-483e-9732-b2f5eccd2b2e</span></tt></td> </tr> <tr class="row-even"><td><tt class="docutils literal"><span class="pre">deviceOwner</span></tt></td> <td>Identifies the entity (for example, DHCP agent) using this port</td> <td>String</td> <td>No</td> <td><tt class="docutils literal"><span class="pre">null</span></tt></td> <td><tt class="docutils literal"><span class="pre">network:router_interface</span></tt></td> </tr> <tr class="row-odd"><td><tt class="docutils literal"><span class="pre">securityGroups</span></tt></td> <td>Specifies the IDs of any security groups associated with this port</td> <td>Indexed array of strings</td> <td>No</td> <td>Empty array</td> <td><tt class="docutils literal"><span class="pre">array('f0ac4394-7e4a-4409-9701-ba8be283dbc3')</span></tt></td> </tr> </tbody> </table> <p>You can update a port as shown in the following example:</p> <div class="highlight-php"><div class="highlight"><pre><span class="nv">$port</span><span class="o">-></span><span class="na">update</span><span class="p">(</span><span class="k">array</span><span class="p">(</span> <span class="s1">'fixedIps'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span> <span class="k">array</span><span class="p">(</span> <span class="s1">'subnetId'</span> <span class="o">=></span> <span class="s1">'75906d20-6625-11e4-9803-0800200c9a66'</span><span class="p">,</span> <span class="s1">'ipAddress'</span> <span class="o">=></span> <span class="s1">'192.168.199.59'</span> <span class="p">)</span> <span class="p">)</span> <span class="p">));</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Networking/update-port.php">Get the executable PHP script for this example</a></p> </div> <div class="section" id="delete-a-port"> <h2>Delete a port<a class="headerlink" href="#delete-a-port" title="Permalink to this headline">¶</a></h2> <p>You can delete a port as shown in the following example:</p> <div class="highlight-php"><div class="highlight"><pre><span class="nv">$port</span><span class="o">-></span><span class="na">delete</span><span class="p">();</span> </pre></div> </div> <p><a class="reference external" href="https://raw.githubusercontent.com/rackspace/php-opencloud/master/samples/Networking/delete-port.php">Get the executable PHP script for this example</a></p> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="security-groups.html" class="btn btn-neutral float-right" title="Security Groups"/>Next <span class="fa fa-arrow-circle-right"></span></a> <a href="subnets.html" class="btn btn-neutral" title="Subnets"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 2015, Jamie Hannaford, Shaunak Kashyap. </p> </div> <a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a> </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../', VERSION:'1.12.1', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../../_static/jquery.js"></script> <script type="text/javascript" src="../../_static/underscore.js"></script> <script type="text/javascript" src="../../_static/doctools.js"></script> <script type="text/javascript" src="../../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>