udclient [global-args...] [global-flags...]
createSnapshot [JSON file]
{
"application": "Application name or ID",
"description": "Description",
"name": "Snapshot name",
"versions": "JSON array of mappings from components to
versions, such as [{\"JPetStore-APP\": \"latest\"}, {\"
JPetStore-DB\": \"1.0\"}]"
}
udclient -username jsmith -password passwd
-weburl https://myserver.example.com:8443
createSnapshot newSnapshot.json
{
"name": "My snapshot",
"application": "JPetStore",
"description": "JPetStore snapshot",
"versions": [
{"JPetStore-APP": "1.1"},
{"JPetStore-DB": "1.0"},
{"JPetStore-WEB": "1.1"}
]
}
{
"name": "My snapshot",
"application": "JPetStore",
"description": "Snapshots of most recently created component versions",
"versions": [
{"JPetStore-APP": "latest"},
{"JPetStore-DB": "latestVersion"},
{"JPetStore-WEB": "newest"}
]
}
{
"id": "ff9274d4-bc3d-493c-90aa-5020e2fda56d",
"name": "My snapshot",
"description": "JPetStore snapshot",
"created": 1391451659050,
"active": true,
"locked": false
}
Related REST command: Create a snapshot.