github.com/IBM-Cloud/bluemix-go@v0.0.0-20240423071914-9e96525baef4/examples/icd/icdv4/user/README.md (about) 1 # Cloud Database User Create/Update/Delete 2 3 - Creates a user in the database which can access the database through a connection. 4 - Sets the password of a database-level user. 5 - Removes a database-level user from the deployment. 6 7 ICD resource instance must be created first via UI or using the `resource/service-instance` example to create an icd instance. Any of the ICD instance types are supported, Postgres, ElasticSearch, RabbitMQ, Etcd, etc. The 64 digit CRN of the icd instance should be supplied as the icdId. Environment variable IC_API_KEY must be set with API key and IC_REGION set to the ICD deployment region. 8 9 Details of the API function implemented can be found in the IBM CLoud API docs: 10 https://console.bluemix.net/apidocs/cloud-databases-api#creates-a-database-level-user 11 12 parameters: 13 Required: --icdId - 64 digit CRN for ICD instance 14 Required: --userId - Userid to create 15 Required: --password - password to be assigned to user 16 17 Example: 18 ``` 19 go run main.go --icdId crn:v1:bluemix:public:databases-for-postgresql:us-south:a%2F4ea1882a2d3401ed1e459979941966ea:9504e257-8916-4c00-890a-23189eeebdfd:: --userId anyone --password password1234 20 ```