"Cluster Backup in Progress"VMware NSX 4.1
API call to be used :- GET /policy/api/v1/cluster/backups/config
adminst en :-Enter the root password hereroot login prompt. curl -X GET -H 'Content-Type: application/json' -sN -k -u admin "https://<NSX-Manager-IP>/policy/api/v1/cluster/backups/config"
Example output:
{
"backup_enabled" : true;
"backup_schedule":{
"resource_type": "WeeklyBackupSchedule",
"days_of_week":[
1,
3,
5
],
"hour_of_day":0,
"minute_of_day":0
},
"remote_file_server":{
"server":"<Backup-Server-Ip>",
"port":22,
"protocol":{
"protocol_name":"sftp",
"ssh_fingerprint":"SHA256:###########################",
"authentication_scheme":{
"scheme_name":"<Password of the Backup server>",
"username":"<UserAccount of the Backup server>"
}
},
"directory_path":"/<Directory_folder_path>"
},
"inventory_summary_interval":300
}
To update the credentials of the Backup server on NSX manager
PUT API along -with d option and with new backups server credentials :-API call to be used :- PUT /policy/api/v1/cluster/backups/config
curl -X PUT -H 'Content-Type: application/json' -d '{"backup_enabled" : true; "backup_schedule":{"resource_type": "WeeklyBackupSchedule", "days_of_week":[1,3,5], "hour_of_day":0,"minute_of_day":0}, "remote_file_server":{"server":"<Backup-Server-Ip>", "port":22,"protocol":{"protocol_name":"sftp", "ssh_fingerprint":"SHA256:###########################", "authentication_scheme":{"scheme_name":"<New_Password>", "username":"<Bacukp_UserName>"}}, "directory_path":"/<Directory_folder_path>"}, "inventory_summary_interval":300}' -sN -k -u admin "https://localhost/policy/api/v1/infra/security-global-config"
systemctl restart nsx-mp-api-server