'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Networking service object from the client. $networkingService = $client->networkingService(null, '{region}'); // 3. Get port. $port = $networkingService->getPort('{portId}'); // 4. Update port. $port->update(array( 'name' => 'My updated port', 'fixedIps' => array( array( 'subnetId' => '{subnetId}', 'ipAddress' => '{ipAddress}' ) ) ));