Security Groups
All operations require authentication.
List security groupsProduction
Returns the security groups of the project.
Path parameters
Project ID
Headers
Pagination cursor
Pagination size
Response
Computed hash representing the current target specification value
Creation date of the security group
Current state of the security group
Ongoing asynchronous tasks related to the security group
Unique identifier of the security group
Security group readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the security group
Last update date of the security group
Example uses projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ securityGroup \
-H "authorization: Bearer $OVH_TOKEN"[ { "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "defaultRules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ], "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "updatedAt": "2024-01-01T12:00:00Z" }]
Get a security groupProduction
Returns the security group, including its rules and default egress rules.
Path parameters
Project ID
Security group ID
Response
Computed hash representing the current target specification value
Creation date of the security group
Current state of the security group
Ongoing asynchronous tasks related to the security group
Unique identifier of the security group
Security group readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the security group
Last update date of the security group
Example uses projectId = string, securityGroupId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ securityGroup/ {securityGroupId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "defaultRules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ], "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Create a security groupProduction
Creates a security group with inline rules. OpenStack adds default egress rules automatically.
Path parameters
Project ID
Request body (required)
Desired target specification for the security group to create
Response
Computed hash representing the current target specification value
Creation date of the security group
Current state of the security group
Ongoing asynchronous tasks related to the security group
Unique identifier of the security group
Security group readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the security group
Last update date of the security group
Example uses projectId = string
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ securityGroup \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "defaultRules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ], "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Delete a security groupProduction
Deletes the security group. Deletion is not blocked for a group still attached to interfaces or the project's default group.
Path parameters
Project ID
Security group ID
Response
Computed hash representing the current target specification value
Creation date of the security group
Current state of the security group
Ongoing asynchronous tasks related to the security group
Unique identifier of the security group
Security group readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the security group
Last update date of the security group
Example uses projectId = string, securityGroupId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ securityGroup/ {securityGroupId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "defaultRules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ], "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}
Update a security groupProduction
Replaces the security group's name, description and rules as a whole.
Path parameters
Project ID
Security group ID
Request body (required)
Optional concurrency-control checksum. When supplied, it must match the resource's current checksum or the request is rejected with a 409 checksum-mismatch conflict. When omitted or empty, the concurrency check is skipped and the write is forced (last-write-wins).
Desired target specification for the security group
Response
Computed hash representing the current target specification value
Creation date of the security group
Current state of the security group
Ongoing asynchronous tasks related to the security group
Unique identifier of the security group
Security group readiness in the system
CREATINGCREATION_PLANNEDDELETINGERROROUT_OF_SYNCREADYSUSPENDEDUNKNOWNUPDATINGLast target specification of the security group
Last update date of the security group
Example uses projectId = string, securityGroupId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ v2/ publicCloud/ project/ {projectId}/ securityGroup/ {securityGroupId} \
-H "authorization: Bearer $OVH_TOKEN"{ "checksum": "string", "createdAt": "2024-01-01T12:00:00Z", "currentState": { "defaultRules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ], "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "id": "00000000-0000-0000-0000-000000000000", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "currentTasks": [ { "errors": [ { "message": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "link": "string", "status": "ERROR", "type": "string" } ], "id": "00000000-0000-0000-0000-000000000000", "resourceStatus": "CREATING", "targetSpec": { "description": "string", "location": { "availabilityZone": "string", "region": "string" }, "name": "string", "rules": [ { "description": "string", "direction": "EGRESS", "ethernetType": "IPV4", "portRangeMax": 0, "portRangeMin": 0, "protocol": "AH", "remoteGroup": { "id": "00000000-0000-0000-0000-000000000000" }, "remoteIpPrefix": "192.0.2.0/24" } ] }, "updatedAt": "2024-01-01T12:00:00Z"}