- User
- Tenant / Regions
- VPC
- Images
- Flavors
- Storage Policy
- Instances
- Subnet
- Security group
- Floating IP
- Activity Logs
- Tags
- Iam
- Billing
- Project
- S3
Create Security Group
Developing
POST
/api/v1/vmware/vpc/{vpc_id}/security-groups
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
vpc_id
string
required
Header Params
OrgId
string
required
Example:
ed2dab76-61a9-4352-a7d6-64fe716f6795
Body Params application/json
name
string
required
network
string
required
ip_address
array[string]
required
rules
string
required
schema
tag_ids
array[string]
required
Example
{
"name": "security-group-5662",
"network": "f09f9d6d-399e-42cc-bcfc-ec8e3e3fffad",
"ip_address": [
"10.0.1.232"
],
"rules": "[{\"destinationPorts\":\"80\",\"protocol\":null,\"description\":\"description\",\"port\":\"ed55f780-6e33-4bb0-b04d-3010cab5afe4\",\"sources\":[\"10.10.10.10\"],\"action\":\"ALLOW\",\"direction\":\"ingress\"}]",
"tag_ids": [
"bea8782e-de99-46ac-b3c1-70dd8408728f"
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/vmware/vpc//security-groups' \
--header 'OrgId: ed2dab76-61a9-4352-a7d6-64fe716f6795' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "security-group-5662",
"network": "f09f9d6d-399e-42cc-bcfc-ec8e3e3fffad",
"ip_address": [
"10.0.1.232"
],
"rules": "[{\"destinationPorts\":\"80\",\"protocol\":null,\"description\":\"description\",\"port\":\"ed55f780-6e33-4bb0-b04d-3010cab5afe4\",\"sources\":[\"10.10.10.10\"],\"action\":\"ALLOW\",\"direction\":\"ingress\"}]",
"tag_ids": [
"bea8782e-de99-46ac-b3c1-70dd8408728f"
]
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-05-24 07:10:00