Colin S 🥯
RRunPod
•Created by Colin S 🥯 on 12/17/2024 in #⛅|pods
i have an integration with runpod in python. after i deploy a pod, i want to show the user the ip
I need to be able to deploy a pod programmatically and get the ip.
9 replies
RRunPod
•Created by Colin S 🥯 on 12/17/2024 in #⛅|pods
i have an integration with runpod in python. after i deploy a pod, i want to show the user the ip
bagel@192 bagel % curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.runpod.io/graphql?api_key=rpa_S8G1...EU41wuktix' \
--data '{"query": "query Pod { pod(input: {podId: "{podid}"}) { id runtime { uptimeInSeconds ports { ip isIpPublic privatePort publicPort type } } } }"}'
{"data":{"pod":null}}
that doesn't seem to work either. there is a pod running, and api key is right
9 replies