After creating updatable.json as above, you can import all of the objects in the "GEO Locations" tree like so:
[Expert@DallasSA]# mgmt_cli -f json -r true login > session.txt
[Expert@DallasSA]# grep "GEO Locations" updatable.json | jq '."uid-in-updatable-objects-repository"' | xargs -L 1 -I % mgmt_cli -f json -s session.txt add updatable-object uid-in-updatable-objects-repository %
...
[Expert@DallasSA]# mgmt_cli -f json -s session.txt publish
...
[Expert@DallasSA]# mgmt_cli -f json -s session.txt logout && rm session.txt
On a lab SmartCenter (Hyper-V VM on an Intel Atom C3758; 2c, 8 GB, 200 GB storage backed by a ~1 GB/s SATA SSD array), all that took about five minutes (including writing the commands) and left me with 258 objects in my management.
Afterwards, I ran this to test all of the country names you've reported problems with:
[Expert@DallasSA]# mgmt_cli -f json -s session.txt add group name "Geo-Block" members.1 Albania members.2 Algeria members.3 Togo members.4 Tunisia
{
"uid" : "6ff07760-8c91-41ed-92b0-2f497d30aa83",
"name" : "Geo-Block",
"type" : "group",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"members" : [ {
"uid" : "09bfd6cf-3608-4ef1-9e10-5553a81083c8",
"name" : "Tunisia",
"type" : "updatable-object",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"icon" : "@app/cp_geo_tn",
"color" : "black"
}, {
"uid" : "a6e54df5-4b0c-46ee-a081-25575b36e66a",
"name" : "Algeria",
"type" : "updatable-object",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"icon" : "@app/cp_geo_dz",
"color" : "black"
}, {
"uid" : "54346ff0-2d5e-42f2-9a3e-f3c9c18d126c",
"name" : "Togo",
"type" : "updatable-object",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"icon" : "@app/cp_geo_tg",
"color" : "black"
}, {
"uid" : "9125b1e0-891c-41d1-81ac-1d90f63bbcb0",
"name" : "Albania",
"type" : "updatable-object",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"icon" : "@app/cp_geo_al",
"color" : "black"
} ],
"groups" : [ ],
"comments" : "",
"color" : "black",
"icon" : "General/group",
"tags" : [ ],
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1689861228450,
"iso-8601" : "2023-07-20T09:53-0400"
},
"last-modifier" : "WEB_API",
"creation-time" : {
"posix" : 1689861228450,
"iso-8601" : "2023-07-20T09:53-0400"
},
"creator" : "WEB_API"
},
"read-only" : true
}
To update an existing group, you would need to use 'set' instead of 'add', and all of the mentions of 'members.' should be replaced with 'members.add.'.