George McKinney Adventures in Software Development

January 11, 2021

Cloudant undeleting a user account

Filed under: Cloud,Cloudant,IBM,IBM Cloud — georgemck @ 6:58 pm

The following procedure can be used to undelete a user document in Cloudant.

First, login to the Cloudant database as an administrator. Use an Administrator’s username and password. Only admins have access to the _users table.

The previously deleted document needs to be retrieved from the database. However, since it has been deleted, all requests for it will fail. You can instead download a file of all deleted revisions for document by browser url as a get request, e.g. Looking through the downloaded file, create a target revision working from the most recent. After creating the target revision, you can use it to retrieve it’s document. In the downloaded file, take the latest revision and subtract one from its number, then look at the top of the list of revision ids and get the second one and use it as the TARGETREVISION. It will be immediately following the last revision id. Now the specific revision of the document can be retrieved by browser url get request, e.g.

The retrieved document will contain the “_rev”. Delete it. Use the rest of the document revision in a put/post/insert into the database to restore it as the version of the document, thus undeleting a user document in Cloudant.

//This Node.js program will restore the deleted user document.

var ACCOUNTUSERNAME = ‘aaa-bbb-ccc-ddd-eee-bluemix’;
var PASSWORD = ‘@dministrator$ecretP@ssW0rd’;

“name”: “”,
“roles”: [],
“type”: “user”,
“password_scheme”: “pbkdf2”,
“iterations”: 111,
“derived_key”: “9dbbd43599b6fdae170bb6990e9afca99881f6e7”,
“salt”: “e0b6331fe04fc2aef4b152de70fac8d8”,
“updateTime”: “2021-01-11T23:52:45.006Z”

var Cloudant = require(‘cloudant’);

var cloudant = Cloudant({
password: PASSWORD

var db = cloudant.db.use(‘_users’);

db.insert(USERDOCUMENTREVISION, function (err, result) {
if (err) {
throw err;

Also at

Based on information from:

June 13, 2020

Cloud Day Spring 2020

Filed under: Cloud — georgemck @ 10:31 am


Morning Employer and Technology Sessions  10:00am – 12:30pm
CA Cloud Computing Project Overview/Technology Trends/Employment Trends Morning Panel Zoom Link
Afternoon Workshops 1:00 – 2:30 pm 2:30 – 4:00 pm
AWS 101 –Learn about what builds cloud infrastructure the AWS way. Introduction to infrastructure as a service, cloud architecture, EC2, S3, VPC, containerization and Kubernetes. Zoom Link  Password: 289666 Zoom Link  Password: aws101
Cloud Hackathon – Do you have what it takes to troubleshoot with the time ticking? Play a game accumulating points in this competitive approach to accumulate points in developing cloud architecture and testing your skills. Zoom Link   Password: 034432 Login 
AWS Deep Racer- Introduction to reinforcement learning by developing reward functions for a self-driving model car. Virtual verification and feedback through AWS platform Zoom Link  Password: deepracer
Intro to Microsoft Azure – Learn about the cloud in Azure and learn about the cloud technologies that assist building AI architecture. Zoom Link  Password: 918789 Zoom Link  Password: 918789
AWS Alexa Skills – Ever want to create your own Alexa skill to automate something in your life? Learn how to get started with an Alexa skill. Create alexa developer account Zoom Link  Password: 178586 Zoom Link  Password: 178586
Big Data Technologies – Learn about data and how to prepared for downstream usage in Business Intelligence and Machine Learning. Download file Zoom Link  Password: 634318
Raspberry Pi + Cloud – Learn how to collect sensor data from small affordable computer to begin your journey in Internet of Things (IoT). Technologies include Python, MQTT and AWS Zoom Link Password: 247175 Zoom Link  Password: 455497
Cloud Career Preparedness – Learn how you can get prepared with assistance of AWS Educate by developing your resume and talking points in your upcoming interview to secure your next step. Zoom Link  Password: 973054 Zoom Link Password:464235
Intro to Machine Learning – Learn about the algorithms that are used to predict results. General concepts covered with hands-on programming in Python and SciKit-Learn. Download file Zoom Link Password: 331232
Moorpark College Cloud Program – Learn about the new program launching in Ventura. Zoom Link 

Powered by WordPress