List Ingresses belonging to a project
GET/projects/ {projectId}/ ingresses/
v2
GET
ingress-list-ingresses-v2-deprecated
Request
- projectIdstring (uuid)required
ID of the Project to list Ingresses for
Responses
application/json
OK
- Schema documentation
- Example
- JSON Schema
- 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
- ipsobjectrequired
- 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
- verifiedbooleanrequired
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
- pathstringrequired
- targetone of 5 alternativesrequired
]
projectIdstring (uuid)
required
tlsone of 2 alternatives
required
]
[
{
"dnsValidationErrors": [
"ERROR_UNSPECIFIED"
],
"hostname": "string",
"id": "f0f86186-0a5a-45b2-aa33-502777496347",
"ips": {
"v4": [
"string"
]
},
"isDefault": true,
"isDomain": true,
"isEnabled": true,
"ownership": {
"txtRecord": "string",
"verified": true
},
"paths": [
{
"path": "string",
"target": {
"directory": "string"
}
}
],
"projectId": "f0f86186-0a5a-45b2-aa33-502777496347",
"tls": {
"acme": true
}
}
]
{
"items": {
"properties": {
"dnsValidationErrors": {
"description": "A list of errors that occurred while validating the ingress's dns before requesting a certificate.",
"items": {
"enum": [
"ERROR_UNSPECIFIED",
"ERROR_QUAD_A",
"ERROR_NO_A_RECORD",
"ERROR_ACME_CERTIFICATE_REQUEST_DEADLINE_EXCEEDED"
],
"type": "string"
},
"type": "array"
},
"hostname": {
"format": "idn-hostname",
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"ips": {
"properties": {
"v4": {
"items": {
"format": "ipv4",
"type": "string"
},
"type": "array"
}
},
"required": [
"v4"
],
"type": "object"
},
"isDefault": {
"description": "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.",
"type": "boolean"
},
"isDomain": {
"type": "boolean"
},
"isEnabled": {
"type": "boolean"
},
"ownership": {
"properties": {
"txtRecord": {
"type": "string"
},
"verified": {
"description": "Whether the domain ownership is verified or not.",
"type": "boolean"
}
},
"required": [
"verified"
],
"type": "object"
},
"paths": {
"description": "A list of paths. The default path `/` is always present and cannot be removed.",
"items": {
"properties": {
"path": {
"type": "string"
},
"target": {
"oneOf": [
{
"properties": {
"directory": {
"type": "string"
}
},
"required": [
"directory"
],
"type": "object"
},
{
"properties": {
"url": {
"format": "uri",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
{
"properties": {
"installationId": {
"format": "uuid",
"type": "string"
}
},
"required": [
"installationId"
],
"type": "object"
},
{
"properties": {
"useDefaultPage": {
"type": "boolean"
}
},
"required": [
"useDefaultPage"
],
"type": "object"
},
{
"properties": {
"container": {
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"portProtocol": {
"description": "docker-compose port specification in format port/protocol (e.g. 8080/TCP)",
"format": "docker-network-port",
"type": "string"
}
},
"required": [
"id",
"portProtocol"
],
"type": "object"
}
},
"required": [
"container"
],
"type": "object"
}
]
}
},
"required": [
"path",
"target"
],
"type": "object"
},
"type": "array"
},
"projectId": {
"format": "uuid",
"type": "string"
},
"tls": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"acme": {
"type": "boolean"
}
},
"required": [
"acme"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"certificateId": {
"format": "uuid",
"type": "string"
}
},
"required": [
"certificateId"
],
"type": "object"
}
]
}
},
"required": [
"id",
"hostname",
"projectId",
"isDefault",
"tls",
"paths",
"isEnabled",
"ips",
"dnsValidationErrors",
"ownership"
],
"type": "object"
},
"type": "array"
}
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/ingresses
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.domain.ingressListIngressesV2Deprecated({
"projectId": "f0f86186-0a5a-45b2-aa33-502777496347"
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\Domain\IngressListIngressesV2Deprecated\IngressListIngressesV2DeprecatedRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new IngressListIngressesV2DeprecatedRequest(
projectId: "f0f86186-0a5a-45b2-aa33-502777496347"
));
$response = $client->domain()->ingressListIngressesV2Deprecated($request);
var_dump($response->getBody();