Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::deletePort PHP Метод

deletePort() публичный Метод

This operation removes a port from a Quantum network. If IP addresses are associated with the port, they are returned to the respective subnets allocation pools.
public deletePort ( string $portId ) : boolean
$portId string The ID of the port to remove.
Результат boolean Returns true on success or throws an exception otherwise
    public function deletePort($portId)
    {
        $result = false;
        $response = $this->getClient()->call($this->service, sprintf('/ports/%s', $this->escape($portId)), null, 'DELETE');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = true;
        }
        return $result;
    }