Chuyển tới nội dung chính

Xoá security group

DELETE/v2.0/security-groups/{security_group_id}

Xoá security group cùng toàn bộ rule của nó. Group không được gắn vào bất kỳ port nào.

Request​

Tham số​

security_group_idstringbắt buộc

ID của security group.

Request mẫu​

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://api.vietnix.cloud:9696/v2.0/security-groups/{security_group_id}

Response​

Mã trạng thái​

Thành công​

MãMô tả
204 - No ContentSecurity group đã bị xoá.

Lỗi​

MãMô tả
401 - UnauthorizedCần xác thực trước khi gửi request.
403 - ForbiddenPolicy không cho phép user hiện tại thực hiện thao tác này, hoặc group là group default của project.
404 - Not FoundSecurity group không tồn tại.
409 - ConflictGroup vẫn còn gắn với một port.
note

Để xoá group đang được dùng, trước tiên hãy chuyển các port của nó sang group khác, hoặc xoá các VM sở hữu những port đó. Không thể xoá group default.