---
title: "Get all Secondary IP Addresses attached to VPS instance"
method: GET
path: "/vps/{deviceId}/secondaryIp"
tags: ["VPS"]
---

# Get all Secondary IP Addresses attached to VPS instance

`GET /vps/{deviceId}/secondaryIp`

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- IPAssignment[]
  - `assignmentId` integer — Unique ID of this assignment
  - `broadcastIp` string — Broadcast address for this subnet.
  - `clientId` integer — Unique ID of the assignment owner
  - `description` string — Description for this assignment.
  - `deviceId` integer — The device receiving traffic from the assignment.
  - `dnsResolvers` string[] — DNS resolvers for this subnet. Only applicable to VPS instances.
  - `facilityCode` string — Facility code of this assignment.
  - `firstUsableIp` string — First address available for use by Devices on this subnet.
  - `gatewayIp` string — Gateway address for this subnet.
  - `lastUsableIp` string — Last address available for use by Devices on this subnet.
  - `netmask` string — Netmask for this assignment.
  - `nextHopIp` string — Next Hop IP address, if this assignment is statically routed.
  - `portId` integer — The port receiving traffic from the assignment.
  - `subnet` string — CIDR representation of this assignment.
  - `usableIps` string[] — A list of usable IP addresses on assignment. It is only filled for IPv4 subnets.
  - `version` integer, required — IP version of this assignment (ipv4 or ipv6)
  - `vlanId` integer — The VLAN receiving traffic from the assignment.

## Other responses

- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/versions/ee6b717b5015/schema)
