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

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

Deletes a specified rule from a OpenStack Networking security group.
public deleteSecurityGroupRule ( string $id ) : boolean
$id string The UUID of the security group rule to delete
Результат boolean Returns true on success or throws an exception
    public function deleteSecurityGroupRule($id)
    {
        $result = false;
        $response = $this->getClient()->call($this->service, sprintf('/security-group-rules/%s', $this->escape($id)), null, 'DELETE');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = true;
        }
        return $result;
    }