Edit Registry

You can edit a registry’s details, such as its access key, secret access key, and endpoint.


How to Edit a Registry

Via the UI

  1. Sign in to HPE Machine Learning Inferencing Software.
  2. Navigate to Registries.
  3. Scroll to the registry you want to edit.
  4. Select the Ellipses icon.
  5. Select Edit.
  6. Update the details for the following:
  7. Select Save.

Via the CLI

  1. Sign in via the CLI.
    aioli user login <YOUR_USERNAME>
  2. Update the registry with the following command:
     aioli registry update <REGISTRY_NAME> \
     --type <REGISTRY_TYPE> \
     --bucket <BUCKET_ADDRESS> \
     --access-key <ACCESS_KEY> \
     --secret-key <SECRET_KEY> \
     --endpoint-url <BUCKET_ENDPOINT_URL>

Via the API

  1. Sign in to HPE Machine Learning Inferencing Software.
    curl -X 'POST' \
      '<YOUR_EXT_CLUSTER_IP>/api/v1/login' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -d '{
      "username": "<YOUR_USERNAME>",
      "password": "<YOUR_PASSWORD>"
    }'
  2. Obtain the Bearer token from the response.
  3. Get a list of registries to find the registry ID.
    curl -X 'GET' \
         '<YOUR_EXT_CLUSTER_IP>/api/v1/registries' \
         -H 'accept: application/json' \
         -H 'Authorization : Bearer <YOUR_ACCESS_TOKEN>'
  4. Copy the registry ID from the response.
  5. Use the following cURL command to edit the registry.
    curl -X 'PUT' \
      '<YOUR_EXT_CLUSTER_IP>/api/v1/registries/<REGISTRY_ID>' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
      -d '{
      "accessKey": "<ACCESS_KEY>",
      "bucket": "<BUCKET_ADDRESS>",
      "endpointURL": "<BUCKET_ENDPOINT_URL>",
      "insecureHttps": true,
      "name": "<REGISTRY_NAME>",
      "secretKey": "<SECRET_KEY>",
      "type": "<REGISTRY_TYPE>"
    }'