Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::deleteSecurityGroup PHP Méthode

deleteSecurityGroup() public méthode

This operation deletes an OpenStack Networking security group and its associated security group rules, provided that a port is not associated with the security group
public deleteSecurityGroup ( string $id ) : boolean
$id string The UUID of the security group to delete
Résultat boolean Returns true on success or throws an exception
    public function deleteSecurityGroup($id)
    {
        $result = false;
        $response = $this->getClient()->call($this->service, sprintf('/security-groups/%s', $this->escape($id)), null, 'DELETE');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = true;
        }
        return $result;
    }