Scaleway Security Groups API

A security group is a set of firewall rules on a set of Instances. Security groups enable you to create rules that either drop or allow incoming traffic from certain ports of your Instances. Security groups are stateful by default which means return traffic is automatically allowed, regardless of any rules. As a contrary, you have to switch in a stateless mode to define explicitly allowed.

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /instance/v1/zones/{zone}/security_groups List security groups · List security groups #
Ask an LLM
“Which security groups exist in my project?”
“Can I list security groups tagged with a certain value?”
Tell an agent
List security groups in {zone}.
Find security groups named {name} in {zone}.
POST /instance/v1/zones/{zone}/security_groups Create a security group · Create a security group #
Ask an LLM
“How do I create a new security group for my instances?”
“Can a new security group be stateful and have a default inbound policy?”
Tell an agent
Create a security group named {name} in {zone}.
Create security group {name} in {zone} with inbound default policy {inbound_default_policy}.
PUT /instance/v1/zones/{zone}/security_groups/{id} Replace a security group's properties · Update a security group #
Ask an LLM
“How do I overwrite every property of an existing security group?”
“Can I set a security group's default policies in a full replace?”
Tell an agent
Replace all properties of security group {id} in {zone}.
Overwrite security group {id} in {zone} with name {name} and description {description}.
GET /instance/v1/zones/{zone}/security_groups/{security_group_id} Get a security group's details · Get a security group #
Ask an LLM
“What are the details of one security group?”
“Can I look up a security group by its ID?”
Tell an agent
Get security group {security_group_id} in {zone}.
Show the details of security group {security_group_id} in {zone}.
PATCH /instance/v1/zones/{zone}/security_groups/{security_group_id} Update a security group's properties · Update a security group #
Ask an LLM
“How do I change just the description of a security group?”
“Can I set a security group as the default for new instances?”
Tell an agent
Update security group {security_group_id} in {zone} with description {description}.
Set security group {security_group_id} in {zone} as the default for new instances.
DELETE /instance/v1/zones/{zone}/security_groups/{security_group_id} Delete a security group · Delete a security group #
Ask an LLM
“How do I delete a security group I no longer use?”
“Can I remove a security group by its ID?”
Tell an agent destructive · confirm first
Delete security group {security_group_id} in {zone}.
Remove the unused security group {security_group_id} from {zone}.
GET /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules List the rules of a security group · List rules #
Ask an LLM
“What rules are in a particular security group?”
“Can I page through a security group's rules?”
Tell an agent
List the rules of security group {security_group_id} in {zone}.
Show page {page} of rules for security group {security_group_id} in {zone}.
POST /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules Add a rule to a security group · Create rule #
Ask an LLM
“How do I allow SSH traffic into my instances from a range of IPs?”
“Can I set a rule's position when I create it?”
Tell an agent
Add a {direction} {action} rule on {protocol} for {ip_range} to security group {security_group_id} in {zone}.
Create rule {direction} {action} {protocol} from {ip_range} to port {dest_port_from} in security group {security_group_id} in {zone}.
PUT /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules Replace all rules of a security group · Update all the rules of a security group #
Ask an LLM
“How do I replace every rule in a security group at once?”
“Does replacing a security group's rules delete rules I leave out?”
Tell an agent
Replace all rules of security group {security_group_id} in {zone} with {rules}.
Overwrite the rule list of security group {security_group_id} in {zone}.
GET /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules/{security_group_rule_id} Get a security group rule · Get rule #
Ask an LLM
“What does one rule in a security group allow or deny?”
“Can I look up a single security group rule by its ID?”
Tell an agent
Get rule {security_group_rule_id} in security group {security_group_id} in {zone}.
Show the details of rule {security_group_rule_id} on security group {security_group_id} in {zone}.
PUT /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules/{security_group_rule_id} Replace a security group rule's properties · Set security group rule #
Ask an LLM
“How do I change the IP range or port range of a rule in a security group?”
“Can I reorder a security group rule by its position?”
Tell an agent
Replace rule {rule} in security group {group} in {zone} with protocol {protocol}.
Change the IP range of rule {rule} in {group} to {ip_range}, position {position}.
PATCH /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules/{security_group_rule_id} Update a security group rule · Update security group rule #
Ask an LLM
“How do I change just the destination port range of a security group rule?”
“Can I move a single rule to a different position?”
Tell an agent
Update rule {security_group_rule_id} on security group {security_group_id} in {zone} to allow {action} on {protocol}.
Change the port range of rule {security_group_rule_id} on security group {security_group_id} in {zone} to {dest_port_from}-{dest_port_to}.
DELETE /instance/v1/zones/{zone}/security_groups/{security_group_id}/rules/{security_group_rule_id} Delete a security group rule · Delete rule #
Ask an LLM
“How do I remove one rule from a security group?”
“What happens to the other rules when I delete one rule from a security group?”
Tell an agent destructive · confirm first
Delete rule {rule} from security group {group} in {zone}.
Remove the {rule} rule from {group} in zone {zone}.
GET /instance/v1/zones/{zone}/security_groups/default/rules List the default rules for all security groups · Get default rules #
Ask an LLM
“What default rules apply to every security group?”
“Which ports are blocked by default for all security groups?”
Tell an agent
List the default rules for all security groups in {zone}.
Show the default security group rules in {zone}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/scaleway:scaleway-security-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

scaleway-security-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Instance Security Groups API
  description: Scaleway Instances are virtual machines in the cloud.
  version: v1
servers:
- url: https://api.scaleway.com
tags:


# --- truncated at 32 KB (47 KB total) ---
# Full source: https://artifacts.apis.io/scaleway/openapi/scaleway-security-groups-api-openapi.yml