> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hypercore.vn/llms.txt
> Use this file to discover all available pages before exploring further.

# Get VPC by ID

> Retrieve a specific VPC by its UUID



## OpenAPI

````yaml /api-reference/openapi.yaml get /network/vpcs/{vpc_id}
openapi: 3.0.3
info:
  title: HyperCore Cloud API - OpenAPI 3.0
  description: >-
    Welcome to the **HyperCore Cloud API** documentation. This API allows
    developers to seamlessly integrate with the HyperCore Cloud platform,
    enabling them to manage cloud resources efficiently and securely. With our
    API, you can automate processes, retrieve detailed account information, and
    manage virtual machines (VPS), networking, storage, and more.
  contact:
    email: support@hypercore.vn
  version: 1.2.0
servers:
  - url: https://api.hypercore.vn
security: []
tags:
  - name: SSH Key
    description: Manage SSH keys for secure server access.
  - name: VPC
    description: Manage Virtual Private Cloud (VPC) networks for isolated networking.
  - name: Firewall
    description: Manage firewall groups for VM security.
  - name: OS Template
    description: >-
      We have a wide range of operating systems available to deploy server
      instances.
  - name: Instance Type
    description: We provide different instance types for different workload.
  - name: Startup Script
    description: >-
      Manage startup scripts that run on first boot of a server instance.
      Maximum 10 scripts per team.
  - name: IP List
    description: >-
      Manage IP lists for use in firewall rules. IP lists group multiple IP
      addresses/CIDRs together.
  - name: Firewall Rule
    description: Manage firewall rules within a firewall group.
  - name: Object Storage
    description: Manage S3-compatible object storage services, buckets, and access keys.
paths:
  /network/vpcs/{vpc_id}:
    get:
      tags:
        - VPC
      summary: Get VPC by ID
      description: Retrieve a specific VPC by its UUID
      operationId: getVPC
      parameters:
        - name: vpc_id
          in: path
          description: VPC UUID
          required: true
          schema:
            type: string
            format: uuid
        - name: team_id
          in: query
          description: Team ID. Default team will be used if not provided.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VPCDetail'
        '401':
          description: Unauthorized
        '404':
          description: VPC not found
      security:
        - api_key: []
components:
  schemas:
    VPCDetail:
      type: object
      properties:
        vpc:
          allOf:
            - $ref: '#/components/schemas/VPC'
            - type: object
              properties:
                attached_vms:
                  type: array
                  items:
                    $ref: '#/components/schemas/AttachedVM'
    VPC:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: f5a3e2d8-9876-4abc-1234-543210fedcba
        name:
          type: string
          example: Production VPC
        description:
          type: string
          example: VPC for production environment
        date_created:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
        status:
          type: string
          enum:
            - active
            - building
            - deleting
          example: active
        location:
          type: string
          example: sydney
        v4_subnet:
          type: string
          example: 10.0.0.0
        v4_subnet_mask:
          type: string
          example: '24'
        owner_team:
          $ref: '#/components/schemas/VPCTeam'
        teams:
          type: array
          items:
            $ref: '#/components/schemas/VPCTeam'
        attached_vms_count:
          type: integer
          example: 5
      required:
        - id
        - name
        - description
        - date_created
        - status
        - location
        - v4_subnet
        - v4_subnet_mask
        - owner_team
        - teams
    AttachedVM:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: a1b2c3d4-5678-9abc-def0-123456789abc
        name:
          type: string
          example: web-server-01
        power_status:
          type: string
          example: running
        owner_team:
          $ref: '#/components/schemas/VPCTeam'
        mac:
          type: string
          example: '52:54:00:12:34:56'
        vpc_id:
          type: string
          format: uuid
          example: f5a3e2d8-9876-4abc-1234-543210fedcba
        vpc_name:
          type: string
          example: Production VPC
        address:
          type: string
          format: ipv4
          example: 10.0.0.10
    VPCTeam:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: c1d45377-b2a9-4407-ab8d-6909c34dfaac
        name:
          type: string
          example: IT Development
  securitySchemes:
    api_key:
      type: http
      scheme: bearer

````