---
title: "ServiceSelector"
url: "https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-1/versions/781fdf4f-a935-4ec1-9343-3203c8afd399/schemas/ServiceSelector"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-service-catalog-1/versions/781fdf4f-a935-4ec1-9343-3203c8afd399.md

# ServiceSelector

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Service Catalog
  version: 1.3.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    AllEntitiesSelector:
      description: Entity selector that includes all entities of the given type within
        the catalog.
      type: object
      properties:
        selector:
          type: string
          enum:
            - all
        selector_parameters:
          type: string
          enum:
            - null
          nullable: true
      required:
        - selector
        - selector_parameters
    ByIDsSelector:
      description: Entity selector that includes entities contained within a list of IDs.
      type: object
      properties:
        selector:
          type: string
          enum:
            - ids
        selector_parameters:
          type: object
          properties:
            ids:
              type: array
              items:
                type: string
                format: uuid
          required:
            - ids
      required:
        - selector
        - selector_parameters
    ByNameSelector:
      description: Entity selector that includes entities by `name`.
      type: object
      properties:
        selector:
          type: string
          enum:
            - name
        selector_parameters:
          $ref: "#/components/schemas/StringFieldSelectorParams"
      required:
        - selector
        - selector_parameters
    ByDisplayNameSelector:
      description: Entity selector that includes entities by `display_name`.
      type: object
      properties:
        selector:
          type: string
          enum:
            - display_name
        selector_parameters:
          $ref: "#/components/schemas/StringFieldSelectorParams"
      required:
        - selector
        - selector_parameters
    ByCustomFieldSelector:
      description: Entity selector that include entities by a custom field.
      type: object
      properties:
        selector:
          type: string
          enum:
            - custom_field
        selector_parameters:
          oneOf:
            - type: object
              title: StringCustomFieldSelectorParams
              required:
                - field
                - value
                - operator
              properties:
                field:
                  description: Name of the custom field.
                  type: string
                value:
                  type: string
                operator:
                  $ref: "#/components/schemas/StringSelectorOperator"
            - type: object
              title: NumberCustomFieldSelectorParams
              required:
                - field
                - value
                - operator
              properties:
                field:
                  description: Name of the custom field.
                  type: string
                value:
                  type: number
                operator:
                  $ref: "#/components/schemas/NumberSelectorOperator"
            - type: object
              title: BooleanCustomFieldSelectorParams
              required:
                - field
                - value
                - operator
              properties:
                field:
                  description: Name of the custom field.
                  type: string
                value:
                  type: boolean
                operator:
                  $ref: "#/components/schemas/BooleanSelectorOperator"
            - type: object
              title: UrlCustomFieldSelectorParams
              required:
                - field
                - subfield
                - value
                - operator
              properties:
                field:
                  description: Name of the custom field.
                  type: string
                subfield:
                  description: Specify which subfield of the `url` custom field value to use for
                    selection.
                  type: string
                  enum:
                    - name
                    - link
                value:
                  type: string
                operator:
                  $ref: "#/components/schemas/StringSelectorOperator"
      required:
        - selector
        - selector_parameters
    ByLabelSelector:
      description: Entity selector that includes entities by `label` value.
      type: object
      properties:
        selector:
          type: string
          enum:
            - label
        selector_parameters:
          type: object
          properties:
            operator:
              $ref: "#/components/schemas/StringSelectorOperator"
            value:
              type: string
            label_key:
              type: string
          required:
            - operator
            - value
            - label_key
          title: LabelSelectorParams
      required:
        - selector
        - selector_parameters
    HasLabelKeySelector:
      description: Entity selector that includes entities by inclusion of a `label` key.
      type: object
      properties:
        selector:
          type: string
          enum:
            - has_label_key
        selector_parameters:
          type: object
          properties:
            label_key:
              type: string
          required:
            - label_key
          title: HasLabelKeySelectorParams
      required:
        - selector
        - selector_parameters
    HasDocsSelector:
      description: Entity selector to include entities by attached documentation.
      type: object
      properties:
        selector:
          type: string
          enum:
            - has_docs
        selector_parameters:
          type: string
          enum:
            - null
          nullable: true
      required:
        - selector
        - selector_parameters
    HasApisSelector:
      description: Entity selector that includes services by attached APIs.
      type: object
      properties:
        selector:
          type: string
          enum:
            - api_count
        selector_parameters:
          $ref: "#/components/schemas/HasSelectorParams"
      required:
        - selector
        - selector_parameters
    HasResourcesSelector:
      description: Entity selector that includes services by mapped resources.
      type: object
      properties:
        selector:
          type: string
          enum:
            - resource_count
        selector_parameters:
          type: object
          properties:
            operator:
              $ref: "#/components/schemas/HasRelationshipSelectorOperator"
            value:
              type: number
            resource_type:
              $ref: "#/components/schemas/CatalogResourceType"
            integration:
              description: The machine name of the integration that uniquely identifies it
                within the catalog.
              type: string
              example: gateway-manager
          required:
            - operator
            - value
            - resource_type
            - integration
          title: HasResourcesSelectorParams
      required:
        - selector
        - selector_parameters
    StringFieldSelectorParams:
      type: object
      properties:
        operator:
          $ref: "#/components/schemas/StringSelectorOperator"
        value:
          type: string
      required:
        - operator
        - value
    StringSelectorOperator:
      type: string
      enum:
        - eq
        - contains
    NumberSelectorOperator:
      type: string
      enum:
        - eq
        - lt
        - gt
    BooleanSelectorOperator:
      type: string
      enum:
        - eq
    HasSelectorParams:
      type: object
      properties:
        operator:
          $ref: "#/components/schemas/HasRelationshipSelectorOperator"
        value:
          type: number
      required:
        - operator
        - value
    HasRelationshipSelectorOperator:
      type: string
      enum:
        - eq
        - gte
        - lte
    CatalogResourceType:
      description: >
        The resource type. Available resource types are compiled from the
        integrations installed within the catalog.
      type: string
      example: gateway_svc
      maxLength: 120
      minLength: 1
    ServiceSelector:
      oneOf:
        - $ref: "#/components/schemas/AllEntitiesSelector"
        - $ref: "#/components/schemas/ByIDsSelector"
        - $ref: "#/components/schemas/ByNameSelector"
        - $ref: "#/components/schemas/ByDisplayNameSelector"
        - $ref: "#/components/schemas/ByCustomFieldSelector"
        - $ref: "#/components/schemas/ByLabelSelector"
        - $ref: "#/components/schemas/HasLabelKeySelector"
        - $ref: "#/components/schemas/HasDocsSelector"
        - $ref: "#/components/schemas/HasApisSelector"
        - $ref: "#/components/schemas/HasResourcesSelector"
```
