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 #
- Sign in to HPE Machine Learning Inferencing Software.
- Navigate to Registries.
- Scroll to the registry you want to edit.
- Select the Ellipses icon.
- Select Edit.
- Update the details for the following:
- Select Save.
Via the CLI #
- Sign in via the CLI.
aioli user login <YOUR_USERNAME>
- 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 #
- 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>" }'
- Obtain the Bearer token from the response.
- 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>'
- Copy the registry ID from the response.
- 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>" }'