以下の例は、2つのpamMachineレコードと2つのpamUserレコードをインポートし、「My Shared Folder」という共有フォルダに追加するJSON形式のテンプレートです。
{
"shared_folders": [],
"records": [
{
"title": "Test Machine 1",
"$type": "pamMachine",
"custom_fields": {
"$pamHostname": {
"hostName": "207.148.1.154",
"port": "22"
},
"$checkbox:sslVerification": true
},
"login": "some-username",
"password": "some-password",
"folders": [
{
"shared_folder": "My Shared Folder",
"can_edit": true,
"can_share": true
}
]
},
{
"title": "Test Machine 2",
"$type": "pamMachine",
"custom_fields": {
"$pamHostname": {
"hostName": "207.148.1.155",
"port": "22"
},
"$checkbox:sslVerification": true
},
"login": "some-username",
"password": "some-password",
"folders": [
{
"shared_folder": "My Shared Folder",
"can_edit": true,
"can_share": true
}
]
},
{
"title": "Test User 1",
"login": "some-user",
"password": "some-password",
"$type": "pamUser",
"folders": [
{
"shared_folder": "My Shared Folder",
"can_edit": true,
"can_share": true
}
]
},
{
"title": "Test User 2",
"login": "some-other-user",
"password": "some-other-password",
"$type": "pamUser",
"folders": [
{
"shared_folder": "My Shared Folder",
"can_edit": true,
"can_share": true
}
]
}
]
}
import "c:\path\to\myfile.json" --format json