---
updatedAt: 2026-08-03T18:00:52.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Get a VPC subnet

Get information about a single VPC Subnet.


**Permissions and scopes**

To call this operation, you need the following:

- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).
  - Permissions: `view_vpc_subnet`


**CLI**

```shell
linode-cli vpcs subnet-view $vpcId $vpcSubnetId
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "natgateways:read_only": "Allows access to Get NAT Gateways on your account.",
              "natgateways:read_write": "Allows access to all NAT Gateway endpoints.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_only": "Allows access to GET information for VPCs.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "VPCs",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/vpcs/{vpcId}/subnets/{vpcSubnetId}": {
      "get": {
        "description": "Get information about a single VPC Subnet.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).\n  - Permissions: `view_vpc_subnet`\n\n\n**CLI**\n\n```shell\nlinode-cli vpcs subnet-view $vpcId $vpcSubnetId\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/get-vpc-subnet"
        },
        "operationId": "get-vpc-subnet",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "created": "2023-07-11T00:00:00",
                  "databases": [
                    {
                      "id": 3333,
                      "ipv4_range": "192.168.0.20/30",
                      "ipv6_ranges": [
                        {
                          "range": "2001:DB8::/62"
                        }
                      ]
                    }
                  ],
                  "id": 456,
                  "ipv4": "10.0.1.0/24",
                  "label": "vpc-subnet-temp",
                  "linodes": [
                    {
                      "id": 111,
                      "interfaces": [
                        {
                          "active": true,
                          "config_id": 4567,
                          "id": 421
                        }
                      ]
                    }
                  ],
                  "natgateway": {
                    "addresses": [
                      "203.0.113.42"
                    ],
                    "id": 43,
                    "label": "my-nat-gateway"
                  },
                  "nodebalancers": [
                    {
                      "id": 4444,
                      "ipv4_range": "192.168.0.20/30",
                      "ipv6_ranges": [
                        {
                          "range": "2001:DB8::/62"
                        }
                      ]
                    }
                  ],
                  "updated": "2026-07-11T00:00:00"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "An object describing a VPC subnet.",
                  "properties": {
                    "created": {
                      "description": "__Filterable__, __Read-only__ The date-time of VPC Subnet creation.",
                      "example": "2023-07-11T00:00:00",
                      "format": "date-time",
                      "readOnly": true,
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-filterable": true
                    },
                    "databases": {
                      "description": "__Read-only__ Managed databases assigned to the VPC Subnet.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "description": "ID of a managed database assigned to the VPC Subnet.",
                            "example": 3333,
                            "type": "integer"
                          },
                          "ipv4_range": {
                            "description": "IPv4 range assigned to the database.",
                            "example": "192.168.0.20/30",
                            "type": "string"
                          },
                          "ipv6_ranges": {
                            "description": "__Read-only__ IPv6 ranges assigned to the database.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "range": {
                                  "description": "An IPv6 address range in CIDR notation.",
                                  "example": "2830:0:0:4::/62",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "nullable": true,
                            "readOnly": true,
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      "readOnly": true,
                      "type": "array",
                      "x-linode-cli-display": 6
                    },
                    "id": {
                      "description": "__Filterable__, __Read-only__ The unique ID of the VPC subnet.",
                      "example": 456,
                      "readOnly": true,
                      "type": "integer",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 1,
                      "x-linode-filterable": true
                    },
                    "ipv4": {
                      "description": "IPv4 range in CIDR canonical form.\n\n- The range must belong to a private address space as defined in [RFC1918](https://datatracker.ietf.org/doc/html/rfc1918).\n- Allowed prefix lengths: 1-29.\n- The range must not overlap with 192.168.128.0/17.\n- The range must not overlap with other subnets on the same VPC.",
                      "example": "10.0.1.0/24",
                      "format": "ipv4-cidr",
                      "type": "string",
                      "x-linode-cli-display": 3
                    },
                    "label": {
                      "description": "__Filterable__ The VPC subnet's label, for display purposes only.\n\n- Must be unique among the VPC's subnets.\n- Can only contain ASCII letters, numbers, and dashes (`-`). You can't use two consecutive dashes (`--`).",
                      "example": "cool-vpc-subnet",
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 2,
                      "x-linode-filterable": true
                    },
                    "linodes": {
                      "description": "__Read-only__ An array of Linode IDs assigned to the VPC subnet.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "description": "ID of a Linode assigned to the VPC subnet.",
                            "example": 111,
                            "type": "integer"
                          },
                          "interfaces": {
                            "description": "VPC purpose interfaces with the subnet's `subnet_id` assigned to the Linode.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "active": {
                                  "description": "Returns `true` if the interface is in use, meaning that the Linode was powered on using the configuration profile to which the interface belongs. Otherwise returns `false`.",
                                  "example": true,
                                  "type": "boolean"
                                },
                                "config_id": {
                                  "description": "The globally general entity identifier for the Linode configuration profile that includes the VPC. If this is a VPC Linode interface, the value is `null`.",
                                  "example": 4567,
                                  "nullable": true,
                                  "type": "integer"
                                },
                                "id": {
                                  "description": "ID of the interface.",
                                  "example": 421,
                                  "type": "integer"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      "readOnly": true,
                      "type": "array",
                      "x-linode-cli-display": 5
                    },
                    "natgateway": {
                      "additionalProperties": false,
                      "description": "__Beta__ Information about the NAT Gateway attached to this interface's subnet. This field returns `null` if no NAT Gateway is attached to the subnet.",
                      "nullable": true,
                      "properties": {
                        "addresses": {
                          "description": "__Read-only__ All public IPv4 address strings allocated to this gateway instance.",
                          "example": [
                            "203.0.113.42"
                          ],
                          "items": {
                            "format": "ipv4",
                            "type": "string"
                          },
                          "readOnly": true,
                          "type": "array"
                        },
                        "id": {
                          "description": "The unique identifier of the attached NAT Gateway instance.",
                          "example": 42,
                          "type": "integer"
                        },
                        "label": {
                          "description": "__Read-only__ The user-defined display label for the assigned NAT Gateway.",
                          "example": "my-nat-gateway",
                          "readOnly": true,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "type": "object",
                      "x-akamai": {
                        "status": "BETA"
                      },
                      "x-linode-cli-display": 4
                    },
                    "nodebalancers": {
                      "description": "__Read-only__ NodeBalancers assigned to the VPC Subnet.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "description": "ID of a NodeBalancer assigned to the VPC Subnet.",
                            "example": 4444,
                            "type": "integer"
                          },
                          "ipv4_range": {
                            "description": "IPv4 range assigned to the NodeBalancer.",
                            "example": "192.168.0.20/30",
                            "type": "string"
                          },
                          "ipv6_ranges": {
                            "description": "__Read-only__ IPv6 ranges assigned to the NodeBalancers.",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "range": {
                                  "description": "An IPv6 address range in CIDR notation.",
                                  "example": "2830:0:0:4::/62",
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "nullable": true,
                            "readOnly": true,
                            "type": "array"
                          }
                        },
                        "type": "object",
                        "x-linode-cli-display": 7
                      },
                      "readOnly": true,
                      "type": "array"
                    },
                    "updated": {
                      "description": "__Filterable__, __Read-only__ The date-time of the most recent VPC Subnet update.",
                      "example": "2023-09-11T00:00:00",
                      "format": "date-time",
                      "nullable": true,
                      "readOnly": true,
                      "type": "string",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-filterable": true
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/vpc-subnet.yaml"
                  }
                }
              }
            },
            "description": "A VPC Subnet object."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](ref:post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](ref:errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": []
          }
        ],
        "summary": "Get a VPC subnet",
        "tags": [
          "VPC subnets"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli vpcs subnet-view $vpcId $vpcSubnetId",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            }
          ]
        },
        "x-linode-cli-action": "subnet-view",
        "x-linode-iam": [
          {
            "permissions": [
              "view_vpc_subnet"
            ]
          }
        ]
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        },
        {
          "description": "The `id` of the VPC.",
          "in": "path",
          "name": "vpcId",
          "required": true,
          "schema": {
            "example": 527,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/vpc-id.yaml"
          }
        },
        {
          "description": "The `id` of the VPC Subnet.",
          "in": "path",
          "name": "vpcSubnetId",
          "required": true,
          "schema": {
            "example": 627,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/vpc-subnet-id.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/vpc-subnet.yaml",
        "path-info": "/{apiVersion}/vpcs/{vpcId}/subnets/{vpcSubnetId}"
      },
      "x-linode-cli-command": "vpcs"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Use the VPC subnet endpoints to view, create, and manage Virtual Private Cloud (VPC) subnet resources.",
      "name": "VPC subnets"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "vpcs.yaml"
  },
  "x-readme": {
    "apply-tag-changes": true,
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Create a VPC subnet](https://techdocs.akamai.com/linode-api/reference/post-vpc-subnet.md)
* [List VPC subnets](https://techdocs.akamai.com/linode-api/reference/get-vpc-subnets.md)
* [Update a VPC subnet](https://techdocs.akamai.com/linode-api/reference/put-vpc-subnet.md)
* [Delete a VPC subnet](https://techdocs.akamai.com/linode-api/reference/delete-vpc-subnet.md)