//native
/**
* Get Container Network information
* Get status of the container network settings.
*/
export async function main(auth: RT.Qovery, containerId: string) {
const url = new URL(`https://api.qovery.com/container/${containerId}/network`)
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