Container Registry

Container Registry is a service for storing private container images. It provides a subset of features provided by Artifact Registry, a universal repository manager and the recommended service for managing container images and other artifacts .

List of Container Registry

To get the list of Container Registry, send a GET request to the Container Registry Endpoint

https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/?apikey={{tapi_key}}
import requests

url = "https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/?apikey={{tapi_key}}"

payload = ""
headers = {
    'Authorization': 'Bearer {{Token}}',
    'Content-Type': 'application/json',
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...

Create Container Registry

To create the Container Registry, send a POST request to the Container Registry Endpoint

https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/?apikey={{tapi_key}}
import requests
import json

url = "https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/?apikey={{tapi_key}}"

payload = json.dumps({
"name": "okkdfsf4",
"username": "ogdkk"
})
headers = {
      'Authorization': 'Bearer {{Token}}',
    'Content-Type': 'application/json',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...
{
"name": "Aashish",
"username": "ADMIN"
}

Delete Container Registry

To delete the Container Registry, send a DELETE request to the Container Registry Endpoint

https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/{{containerreg_id}}/?apikey={{tapi_key}}
import requests

url = "https://api.e2enetworks.com/myaccount/api/v1/gpu/teams/{{team_id}}/projects/{{project_id}}/container_registry/{{containerreg_id}}/?apikey={{tapi_key}}"

payload={}
headers = {
    'Authorization': 'Bearer {{Token}}',
    'Content-Type': 'application/json',
}

response = requests.request("DELETE", url, headers=headers, data=payload)

print(response.text)
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAi...