Setting and modifying backup credentials

Deployment options: Netezza Performance Server for Cloud Pak for Data

Before you begin

To set and or modify the backup credentials you need:
  1. The cloud provider's object storage credentials.
    • On AWS, those are AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
    • On IBM Cloud, those are access key, secret access key and endpoint.
  2. The cloud provider's region and, in case of IBM Cloud, the endpoint url.
  3. The bucket name.

Procedure

  1. Make sure that NZ_USER, NZ_PASSWORD and NZ_HOST are set correctly.
    ACCESS_KEY=<value of access key id> SECRET_ACCESS_KEY=<value secret access key>
    BUCKET=<bucket name> REGION=<region> ENDPOINT=<optional endpoint url - only for IBM Cloud>
  2. Run:
    • AWS:
      curl -k -X PUT  "https://${NZ_HOST}/v1/backup/creds" -d " { 
          \"access_key_id\":\"${ACCESS_KEY}\", 
          \"secret_access_key\":\"${SECRET_ACCESS_KEY}\",
          \"bucket\":\"${BUCKET]\", \"default_region\":\"${REGION}\"
      } " -H "Content-Type: application/json"
    • IBM Cloud:

      Add \"endpoint\" : \"${ENDPOINT}\"

      curl -k -X PUT  "https://${NZ_HOST}/v1/backup/creds" -d " { 
          \"access_key_id\":\"${ACCESS_KEY}\", 
          \"secret_access_key\":\"${SECRET_ACCESS_KEY}\",
          \"bucket\":\"${BUCKET]\", \"default_region\":\"${REGION}\"
      } " -H "Content-Type: application/json" \"endpoint\" : \"${ENDPOINT}\"