Get ingress details
client.ingresses.get(stringid, RequestOptionsoptions?): Ingress { id, created_at, name, rules }
/ingresses/{id}
Get ingress details
Parameters
id: string
Returns
Get ingress details
import Hypeman from '@onkernel/hypeman';
const client = new Hypeman({
apiKey: 'My API Key',
});
const ingress = await client.ingresses.get('id');
console.log(ingress.id);
{
"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
}
]
}