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;
}