Networking
Update security group
Update a security group's name, description, or rules. Passing rules replaces the entire rule set — to add or remove a single rule, GET the current rules first, modify the array, then PUT the result.
put/api/v1/security-groups/{id}
Path parameters
idstring uuid required
Security group ID (UUID).
Headers
X-Project-IDstring uuid required
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Request body
Example request
{
"rules": [
{
"range": "80",
"ip": "0.0.0.0"
}
]
}Response
Security group updated
Example response
{
"data": {
"name": "web-server",
"rules": [
{
"range": "80",
"ip": "0.0.0.0"
}
]
}
}