Zum Hauptinhalt springen

List Ingresses

GET/ingresses/
v2
GET
ingress-list-ingresses

Request

Responses

Response-Header

  • X-Pagination-Limitnumber

    The limit used to select the resources for the response

  • X-Pagination-Skipnumber

    The number of skipped items

  • X-Pagination-Pagenumber

    The calculate page of the list response. Refer to parameters to learn more.

  • X-Pagination-TotalCountnumber

    The total amount of items available in the remote ressource. Use this value in combination with the limit to calculate the available pages.

application/json

OK

  • Array[
  • *object
    • dnsValidationErrorsarray of string (one of: ERROR_UNSPECIFIED, ERROR_QUAD_A, ERROR_NO_A_RECORD, ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED)
      required

      A list of errors that occurred while validating the ingress's dns before requesting a certificate.

      • Array[
      • *string (one of: ERROR_UNSPECIFIED, ERROR_QUAD_A, ERROR_NO_A_RECORD, ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED)
      • ]
    • hostnamestring (idn-hostname)
      required
    • idstring (uuid)
      required
    • ipsobject
      required
      • v4array of string (ipv4)
        required
        • Array[
        • *string (ipv4)
        • ]
    • isDefaultboolean
      required

      Whether this ingress is the default ingress or not. A default ingress is automatically created, it cannot be deleted. There can be only one default ingress per project.

    • isDomainboolean
    • isEnabledboolean
      required
    • ownershipobject
      required
      • txtRecordstring
      • verifiedboolean
        required

        Whether the domain ownership is verified or not.

    • pathsarray of object
      required

      A list of paths. The default path / is always present and cannot be removed.

      • Array[
      • *object
        • pathstring
          required
        • targetone of 4 alternatives
          required
          • Alternativeobject

            Redirect requests to this path to another URL

            • urlstring (uri)
              required

              The URL to which requests should be forwarded.

          • Alternativeobject

            Serve a specific app installation

            • installationIdstring (uuid)
              required

              The ID of an app installation within the same project to which requests should be forwarded.

          • Alternativeobject

            Serve a generic default page

            • useDefaultPageboolean
              required

              Set this to true to serve a generic default site at this path.

          • Alternativeobject

            Forward requests to this path to a specific container.

            • containerobject
              required
              • idstring (uuid)
                required
              • portProtocolstring (docker-network-port)
                required

                docker-compose port specification in format port/protocol (e.g. 8080/TCP)

      • ]
    • projectIdstring (uuid)
      required
    • tlsone of 2 alternatives
      required
      • Alternativeobject
        • acmeboolean
          required

          Has to be true, as ssl cannot be deactivated.

        • isCreatedboolean
          required
        • requestDeadlinestring (date-time)
      • Alternativeobject
        • certificateIdstring (uuid)
          required
  • ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/ingresses?projectId=f0f86186-0a5a-45b2-aa33-502777496347&certificateId=f0f86186-0a5a-45b2-aa33-502777496347&limit=50&page=1