---
title: "Get Product Version by CP/Service ID"
url: "https://nov18-dev.movespot.fyi/apis/internal-portal-1/versions/6cf3dd19-2471-4683-ab50-f062b4345eaa/operations/get-cp-gw-product-version"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/internal-portal-1/versions/6cf3dd19-2471-4683-ab50-f062b4345eaa.md

# Get Product Version by CP/Service ID

`GET` `/internal/control-planes/{controlPlaneId}/gateway-services/{gatewayServiceId}/product-version`

Operation ID: `get-cp-gw-product-version`

retrieves a product version id by control plane and gateway service

## Path parameters

- `controlPlaneId` (string, uuid, required) - The UUID of your control plane. This variable is available in the Konnect manager.
- `gatewayServiceId` (string, uuid, required) - ID of the gateway service.

## Responses

- `200` - A product version
- `404` - Not Found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Internal Portal
  version: 1.0.2
servers:
  - url: http://konnect-api.konnect.svc.cluster.local:300/v0
    description: Konnect cluster
paths:
  /internal/control-planes/{controlPlaneId}/gateway-services/{gatewayServiceId}/product-version:
    parameters:
      - $ref: "#/components/parameters/controlPlaneId"
      - $ref: "#/components/parameters/GatewayServiceId"
    get:
      operationId: get-cp-gw-product-version
      summary: Get Product Version by CP/Service ID
      description: retrieves a product version id by control plane and gateway service
      responses:
        "200":
          $ref: "#/components/responses/GetProductVersion"
        "404":
          $ref: "#/components/responses/NotFound"
      tags:
        - api-products
components:
  parameters:
    controlPlaneId:
      name: controlPlaneId
      in: path
      required: true
      schema:
        type: string
        format: uuid
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The UUID of your control plane. This variable is available in the
        Konnect manager.
    GatewayServiceId:
      schema:
        type: string
        format: uuid
      name: gatewayServiceId
      in: path
      required: true
      description: ID of the gateway service.
  responses:
    GetProductVersion:
      description: A product version
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ProductVersion"
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/NotFoundError"
          examples:
            NotFoundExample:
              $ref: "#/components/examples/NotFoundExample"
  schemas:
    ProductVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
      additionalProperties: false
      required:
        - id
    NotFoundError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 404
            title:
              example: Not Found
            type:
              example: https://httpstatuses.com/404
            instance:
              example: kong:trace:1234567890
            detail:
              example: Not found
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
  examples:
    NotFoundExample:
      value:
        status: 404
        title: Not Found
        instance: kong:trace:6816496025408232265
        detail: Not Found
```
