Create ingress
/ingresses
Create ingress
Body Parameters
name: string
Human-readable name (lowercase letters, digits, and dashes only; cannot start or end with a dash)
maxLength63
Returns
Create ingress
curl http://localhost:8080/ingresses \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $HYPEMAN_API_KEY" \
-d '{
"name": "my-api-ingress",
"rules": [
{
"match": {
"hostname": "{instance}.example.com"
},
"target": {
"instance": "{instance}",
"port": 8080
}
}
]
}'
{
"id": "2OgJqXsP7j1qLVVYvGJDNiYVlPO",
"created_at": "2025-01-15T10:00:00Z",
"name": "my-api-ingress",
"rules": [
{
"match": {
"hostname": "{instance}.example.com",
"port": 8080
},
"target": {
"instance": "{instance}",
"port": 8080
},
"redirect_http": true,
"tls": true
}
]
}
Returns Examples
{
"id": "2OgJqXsP7j1qLVVYvGJDNiYVlPO",
"created_at": "2025-01-15T10:00:00Z",
"name": "my-api-ingress",
"rules": [
{
"match": {
"hostname": "{instance}.example.com",
"port": 8080
},
"target": {
"instance": "{instance}",
"port": 8080
},
"redirect_http": true,
"tls": true
}
]
}