Amazon EC2 Security Groups API

Operations for managing security group rules and firewall settings

GitHub OpenAPI
Business capability
Cybersecurity Management BC-620

Operations 6

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

POST /?Action=ApplySecurityGroupsToClientVpnTargetNetwork Apply security groups to a Client VPN target network · Apply Security Groups To Client Vpn Target Network #
Ask an LLM
“How do I put a Client VPN endpoint's target network into a security group?”
“Does applying security groups to a Client VPN target network replace the existing ones?”
Tell an agent
Apply security groups {groups} to the target network of Client VPN endpoint {endpoint} in VPC {vpc}.
Replace the target network security groups of Client VPN endpoint {endpoint} with {groups}.
POST /?Action=CreateSecurityGroup Create a security group · Create Security Group #
Ask an LLM
“How do I create a security group for my instances?”
“Can I give a new security group a description when I create it?”
Tell an agent
Create security group {name} in VPC {vpc} described as {description}.
Create a new security group {name} with description {description}.
POST /?Action=DeleteSecurityGroup Delete a security group · Delete Security Group #
Ask an LLM
“How do I delete a security group I no longer use?”
“Why would deleting a security group fail if it's still attached to an instance?”
Tell an agent destructive · confirm first
Delete security group {group}.
Remove the unused security group {group}.
POST /?Action=DescribeSecurityGroups Describe security groups · Describe Security Groups #
Ask an LLM
“What inbound and outbound rules does a security group have?”
“Can I filter security groups by name or VPC?”
Tell an agent
Describe security groups {groups}.
Show security groups {groups} matching {filters}.
POST /?Action=GetSecurityGroupsForVpc List security groups usable in a VPC · Get Security Groups For Vpc #
Ask an LLM
“Which security groups can I attach to network interfaces in a VPC?”
“What security groups are available to an account for a given VPC?”
Tell an agent
List security groups available in VPC {vpc}.
Show security groups usable in VPC {vpc} matching {filters}.
POST /?Action=AuthorizeSecurityGroupIngress Authorize inbound traffic to a security group · Authorize Security Group Ingress #
Ask an LLM
“How do I allow inbound traffic from a CIDR range into a security group?”
“Can I open a port to another security group instead of an IP range?”
Tell an agent
Allow inbound traffic on {protocol} from {cidr} to security group {group}.
Authorize port {from} to {to} on {protocol} from security group {source} into {group}.

Documentation

Specifications

Schemas & Data

Other Resources

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/amazon-ec2:amazon-ec2-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

amazon-ec2-security-groups-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Elastic Compute Cloud Security Groups API
  version: '2016-11-15'
  description: Generated from AWS's published Smithy model for Amazon Elastic Compute Cloud. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ec2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


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