---
title: "Get network configuration"
method: GET
path: "/api/v1/cvms/{cvm_id}/network-config"
tags: ["CVMs", "cvms-network-config"]
---

# Get network configuration

`GET /api/v1/cvms/{cvm_id}/network-config`

Returns real-time KMS URLs, Gateway URLs, and port mappings from VMM.

## Path parameters

- `cvm_id` string, required

## Response `200`

Network configuration

- NetworkConfigResponse — Real-time network configuration from VMM.
  - `kms_urls` string[]
  - `gateway_urls` string[]
  - `ports` NetworkConfigPortMappingEntry[]
    - `host_port` integer, required
    - `vm_port` integer, required
    - `protocol` string
    - `host_address` string

## Other responses

- `404` — CVM not found
- `422` — Validation Error
- `500` — Failed to query VMM

---

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