API
VPCs
List VPCs

List VPCs

  • Name
    get
    Type
    /v1/vpc
    Description

    You can get a list of VPCs associated with your account by sending a GET.

Request

Example

curl -X GET "https://api.simplystack.com/v1/vpc" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0"

Response

JSON object with a key named vpc which is an array of the following attributes:

Attributes

See VPC model.

Example

json
{
  "vpc": [
    {
      "uuid": "56a78994-75fe-11eb-9439-024202430002",
      "cidr": "192.168.128.0/24",
      "created_at": "2021-02-13T08:33:25.371494Z",
      "name": "vpc01",
      "region": {
        "available": true,
        "features": ["floating_ips"],
        "name": "Frankfurt",
        "slug": "fra"
      },
      "stackelt_ids": []
    },
    {
      "uuid": "60c4f024-75fe-11eb-9439-0242ac130242",
      "cidr": "10.0.0.0/8",
      "created_at": "2021-02-13T08:35:48.584245Z",
      "name": "vpc02",
      "region": {
        "available": true,
        "features": ["floating_ips"],
        "name": "Frankfurt",
        "slug": "fra"
      },
      "stackelt_ids": []
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "pages": 1,
      "per_page": 25,
      "previous_page": null,
      "total": 2
    },
    "query": null,
    "sort": null
  }
}