cURL
curl --request PATCH \ --url https://rest.compute.cudo.org/v1/projects/{projectId}/security-groups/{id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "dataCenterId": "<string>", "description": "<string>", "rules": [ { "icmpType": "<string>", "id": "<string>", "ipRangeCidr": "<string>", "ports": "<string>", "protocol": "PROTOCOL_UNKNOWN", "ruleType": "RULE_TYPE_UNKNOWN" } ] } '
{ "dataCenterId": "<string>", "id": "<string>", "description": "<string>", "projectId": "<string>", "rules": [ { "icmpType": "<string>", "id": "<string>", "ipRangeCidr": "<string>", "ports": "<string>", "protocol": "PROTOCOL_UNKNOWN", "ruleType": "RULE_TYPE_UNKNOWN" } ] }
Updates an existing security group.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
Update security group params
Show child attributes
PROTOCOL_UNKNOWN
PROTOCOL_ALL
PROTOCOL_TCP
PROTOCOL_UDP
PROTOCOL_ICMP
PROTOCOL_ICMPv6
PROTOCOL_IPSEC
RULE_TYPE_UNKNOWN
RULE_TYPE_INBOUND
RULE_TYPE_OUTBOUND
A successful response.