Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
security-groups
Create a security group
curl --request POST \
  --url https://rest.compute.cudo.org/v1/projects/{projectId}/security-groups \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dataCenterId": "<string>",
  "description": "<string>",
  "id": "<string>",
  "rules": [
    {
      "icmpType": "<string>",
      "id": "<string>",
      "ipRangeCidr": "<string>",
      "ports": "<string>",
      "protocol": "PROTOCOL_UNKNOWN",
      "ruleType": "RULE_TYPE_UNKNOWN"
    }
  ]
}'
{
  "dataCenterId": "<string>",
  "description": "<string>",
  "id": "<string>",
  "projectId": "<string>",
  "rules": [
    {
      "icmpType": "<string>",
      "id": "<string>",
      "ipRangeCidr": "<string>",
      "ports": "<string>",
      "protocol": "PROTOCOL_UNKNOWN",
      "ruleType": "RULE_TYPE_UNKNOWN"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required

Body

application/json

Create security group params

dataCenterId
string
required
id
string
required
description
string
rules
object[]

Response

A successful response.

dataCenterId
string
required
id
string
required
description
string
projectId
string
rules
object[]