You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I cannot fully control the RegistryAuth and Template using python API. The following features will be helpful:
RegistryAuth info retrieval:
Get RegistryAuth id from its name (since it does not allow two RegistryAuth with the same name, I would assume the name can also serve as a unique identifier), or
List all RegistryAuth (including id and name).
Delete Pod Template (from its id or name);
If using id to delete Pod Template, then Template info retrieval:
Get Template id from its name (same, seems like RunPod does not allow duplicated name for templates as well), or
List all Pod Template (including id and name).
Describe the solution you'd like
Implement the above API
Describe alternatives you've considered
I manually called the graphql api in python to delete the pod template. For info retrieval, i manually record it in local database and then retrieve it when used.
defdelete_pod_template(template_name: str) ->None:
"""Deletes a pod template."""try:
runpod.runpod.api.graphql.run_graphql_query(
f'mutation {{deleteTemplate(templateName: "{template_name}")}}')
exceptrunpod.runpod.error.QueryErrorase:
logger.warning(f'Failed to delete template {template_name}: {e}''Please delete it manually.')
Additional context
Implement those API would greatly enhance the experience for using runpod python SDK 🚀
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I cannot fully control the RegistryAuth and Template using python API. The following features will be helpful:
Describe the solution you'd like
Implement the above API
Describe alternatives you've considered
I manually called the graphql api in python to delete the pod template. For info retrieval, i manually record it in local database and then retrieve it when used.
Additional context
Implement those API would greatly enhance the experience for using runpod python SDK 🚀
The text was updated successfully, but these errors were encountered: