//native
/**
* Get Ingress Deployment Status By Service
*
*/
export async function main(
auth: RT.Qovery,
serviceType: 'CONTAINER' | 'APPLICATION' | 'HELM',
serviceId: string
) {
const url = new URL(`https://api.qovery.com/${serviceType}/${serviceId}/ingressDeploymentStatus`)
const response = await fetch(url, {
method: 'GET',
headers: {
Authorization: 'Token ' + auth.apiKey
},
body: undefined
})
if (!response.ok) {
const text = await response.text()
throw new Error(`${response.status} ${text}`)
}
return await response.json()
}
Submitted by hugo697 235 days ago