osc compute server remove-security-group

Removes a security group from a server.

Specify the removeSecurityGroup action in the request body.

Normal response codes: 202

Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404), conflict(409)

Usage: osc compute server remove-security-group [OPTIONS] --name <NAME> <ID>

Arguments:

  • <ID> — id parameter for /v2.1/servers/{id}/action API

Options:

  • --name <NAME> — The security group name
  • --property <key=value> — Additional properties to be sent with the request