Update Security Group
Update a security group.
The unique identifier for the resource
{
"name": "string",
"globally_enabled": {
"running": false,
"staging": false
},
"rules": [
{
"protocol": "string",
"destination": "string",
"ports": "string",
"type": 0,
"code": 0,
"description": "string"
}
],
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
}
}
Name of the security group
globally_enabled
Rules for the security group
Metadata is a JSON object that contains information about a resource. It includes the GUID of the resource, the time the resource was created, the time the resource was last updated, and links to the resource. Metadata is included in the response body of a request to retrieve a resource.
OK
{
"guid": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"globally_enabled": {
"running": false,
"staging": false
},
"rules": [
{
"protocol": "string",
"destination": "string",
"ports": "string",
"type": 0,
"code": 0,
"description": "string"
}
],
"running_spaces": {
"data": [
{
"guid": "string"
}
]
},
"staging_spaces": {
"data": [
{
"guid": "string"
}
]
},
"links": {
"self": {
"href": "string",
"method": "string"
},
"running_spaces": {
"href": "string",
"method": "string"
},
"staging_spaces": {
"href": "string",
"method": "string"
}
},
"metadata": {
"labels": {
"labels": "string"
},
"annotations": {
"annotations": "string"
}
}
}
Bad Request
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Unauthorized
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Forbidden
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Not Found
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Conflict
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Unprocessable Entity
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Internal Server Error
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
Service Unavailable
{
"errors": [
{
"code": 0,
"detail": "string",
"title": "string"
}
]
}
errors
curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}'