List Security Groups.

GET /security-group

Lists security groups. When visibility is set to public, lists public security groups. Public security groups are objects maintained by Exoscale which contain source addresses for relevant services hosted by Exoscale. They can be used a source in ingress rules and as a destination in egress rules.

Query parameters

Responses

  • 200 application/json

    200

    Hide response attribute Show response attribute object
    • security-groups array[object]

      Security Group

      Hide security-groups attributes Show security-groups attributes object
      • id string(uuid)

        Security Group ID

      • name string

        Security Group name

        Minimum length is 1, maximum length is 255.

      • Security Group description

        Maximum length is 255.

      • external-sources array[string]

        Security Group external sources

GET /security-group
curl \
 -X GET https://api-ch-gva-2.exoscale.com/v2/security-group
Response examples (200)
{
  "security-groups": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "external-sources": [
        "string"
      ]
    }
  ]
}