{"push_id":972741275,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"621b2d6233595efaabc24e1a83a637fa4537948a","before":"9e3ab39de4ce3c5845ba7633a05243f4d7279a27","commits":[{"sha":"621b2d6233595efaabc24e1a83a637fa4537948a","author":{"email":"ef971ee38bba25d9ac8a840d235457a038448b09@ixsystems.com","name":"Brandon Schneider"},"message":"Change iocage API call getjailsettings to align better with iocage syntax.\n\nThe new behavior has 4 modes. The user can specify a prop + jail, -r and a prop, all + jail, or just jail.\n\nFor prop + jail:\n\nREST Request:\n-------------------------------\nPUT /sysadm/iocage\n{\n   \"jail\" : \"test\",\n   \"action\" : \"getjailsettings\",\n   \"prop\" : \"vnet\"\n}\n\nWebSocket Request:\n-------------------------------\n{\n   \"name\" : \"iocage\",\n   \"id\" : \"fooid\",\n   \"namespace\" : \"sysadm\",\n   \"args\" : {\n      \"prop\" : \"vnet\",\n      \"action\" : \"getjailsettings\",\n      \"jail\" : \"test\"\n   }\n}\n\nResponse:\n-------------------------------\n{\n  \"args\": {\n    \"getjailsettings\": {\n      \"test\": {\n        \"vnet\": \"off\"\n      }\n    }\n  },\n  \"id\": \"fooid\",\n  \"name\": \"response\",\n  \"namespace\": \"sysadm\"\n}\n\n-r and a prop:\n\nREST Request:\n-------------------------------\nPUT /sysadm/iocage\n{\n   \"switches\" : \"-r\",\n   \"prop\" : \"vnet\",\n   \"action\" : \"getjailsettings\"\n}\n\nWebSocket Request:\n-------------------------------\n{\n   \"name\" : \"iocage\",\n   \"namespace\" : \"sysadm\",\n   \"args\" : {\n      \"prop\" : \"vnet\",\n      \"action\" : \"getjailsettings\",\n      \"switches\" : \"-r\"\n   },\n   \"id\" : \"fooid\"\n}\n\nResponse:\n-------------------------------\n{\n  \"args\": {\n    \"getjailsettings\": {\n      \"9b8e1033-d065-11e5-8209-d05099728dbf\": {\n        \"TAG\": \"test\",\n        \"vnet\": \"off\"\n      },\n      \"b67065a9-cfb9-11e5-8209-d05099728dbf\": {\n        \"TAG\": \"2016-02-09@23:47:04\",\n        \"vnet\": \"off\"\n      }\n    }\n  },\n  \"id\": \"fooid\",\n  \"name\": \"response\",\n  \"namespace\": \"sysadm\"\n}\n\nall + jail (or just jail, they are identical outputs.) :\n\nREST Request:\n-------------------------------\nPUT /sysadm/iocage\n{\n   \"jail\" : \"test\",\n   \"action\" : \"getjailsettings\",\n   \"prop\" : \"all\"\n}\n\nWebSocket Request:\n-------------------------------\n{\n   \"id\" : \"fooid\",\n   \"name\" : \"iocage\",\n   \"namespace\" : \"sysadm\",\n   \"args\" : {\n      \"jail\" : \"test\",\n      \"action\" : \"getjailsettings\",\n      \"prop\" : \"all\"\n   }\n}\n\nResponse:\n-------------------------------\n{\n  \"args\": {\n    \"getjailsettings\": {\n      \"test\": {\n        \"allow_chflags\": \"0\",\n        \"allow_mount\": \"0\",\n        \"allow_mount_devfs\": \"0\",\n        \"allow_mount_nullfs\": \"0\",\n        \"allow_mount_procfs\": \"0\",\n        \"allow_mount_tmpfs\": \"0\",\n        \"allow_mount_zfs\": \"0\",\n        \"allow_quotas\": \"0\",\n        \"allow_raw_sockets\": \"0\",\n        \"allow_set_hostname\": \"1\",\n        \"allow_socket_af\": \"0\",\n        \"allow_sysvipc\": \"0\",\n        \"available\": \"83.4G\",\n        \"boot\": \"off\",\n        \"bpf\": \"off\",\n        \"branch\": \"-\",\n        \"children_max\": \"0\",\n        \"compression\": \"lz4\",\n        \"compressratio\": \"2.27x\",\n        \"coredumpsize\": \"off\",\n        \"count\": \"1\",\n        \"cpuset\": \"off\",\n        \"cputime\": \"off\",\n        \"datasize\": \"off\",\n        \"dedup\": \"off\",\n        \"defaultrouter\": \"none\",\n        \"defaultrouter6\": \"none\",\n        \"devfs_ruleset\": \"4\",\n        \"dhcp\": \"off\",\n        \"enforce_statfs\": \"2\",\n        \"exec_clean\": \"1\",\n        \"exec_fib\": \"0\",\n        \"exec_jail_user\": \"root\",\n        \"exec_poststart\": \"/usr/bin/true\",\n        \"exec_poststop\": \"/usr/bin/true\",\n        \"exec_prestart\": \"/usr/bin/true\",\n        \"exec_prestop\": \"/usr/bin/true\",\n        \"exec_start\": \"/bin/sh /etc/rc\",\n        \"exec_stop\": \"/bin/sh /etc/rc.shutdown\",\n        \"exec_system_jail_user\": \"0\",\n        \"exec_system_user\": \"root\",\n        \"exec_timeout\": \"60\",\n        \"ftpdir\": \"-\",\n        \"ftpfiles\": \"-\",\n        \"ftphost\": \"-\",\n        \"ftplocaldir\": \"-\",\n        \"gitlocation\": \"https\",\n        \"hack88\": \"0\",\n        \"host_domainname\": \"none\",\n        \"host_hostname\": \"9b8e1033-d065-11e5-8209-d05099728dbf\",\n        \"host_hostuuid\": \"9b8e1033-d065-11e5-8209-d05099728dbf\",\n        \"hostid\": \"a60db2df-3c0e-11e5-8986-d05099728dbf\",\n        \"interfaces\": \"vnet0\",\n        \"ip4\": \"new\",\n        \"ip4_addr\": \"none\",\n        \"ip4_autoend\": \"none\",\n        \"ip4_autostart\": \"none\",\n        \"ip4_autosubnet\": \"none\",\n        \"ip4_saddrsel\": \"1\",\n        \"ip6\": \"new\",\n        \"ip6_addr\": \"none\",\n        \"ip6_saddrsel\": \"1\",\n        \"istemplate\": \"no\",\n        \"jail_zfs\": \"off\",\n        \"jail_zfs_dataset\": \"iocage/jails/9b7f1420-d065-11e5-8209-d05099728dbf/data\",\n        \"jail_zfs_mountpoint\": \"none\",\n        \"last_started\": \"2016-02-10_20\",\n        \"login_flags\": \"-f root\",\n        \"maxproc\": \"off\",\n        \"memorylocked\": \"off\",\n        \"memoryuse\": \"8G\",\n        \"mount_devfs\": \"1\",\n        \"mount_fdescfs\": \"1\",\n        \"mount_linprocfs\": \"0\",\n        \"mount_procfs\": \"0\",\n        \"mountpoint\": \"/iocage/jails/9b8e1033-d065-11e5-8209-d05099728dbf\",\n        \"msgqqueued\": \"off\",\n        \"msgqsize\": \"off\",\n        \"nmsgq\": \"off\",\n        \"notes\": \"none\",\n        \"nsemop\": \"off\",\n        \"nshm\": \"off\",\n        \"nthr\": \"off\",\n        \"openfiles\": \"off\",\n        \"origin\": \"-\",\n        \"owner\": \"root\",\n        \"pcpu\": \"off\",\n        \"pkglist\": \"none\",\n        \"priority\": \"99\",\n        \"pseudoterminals\": \"off\",\n        \"quota\": \"none\",\n        \"release\": \"10.2-RELEASE\",\n        \"reservation\": \"none\",\n        \"resolver\": \"none\",\n        \"rlimits\": \"off\",\n        \"securelevel\": \"2\",\n        \"shmsize\": \"off\",\n        \"stacksize\": \"off\",\n        \"start\": \"-\",\n        \"stop_timeout\": \"30\",\n        \"swapuse\": \"off\",\n        \"sync_stat\": \"-\",\n        \"sync_target\": \"none\",\n        \"sync_tgt_zpool\": \"none\",\n        \"tag\": \"test\",\n        \"template\": \"-\",\n        \"type\": \"basejail\",\n        \"used\": \"1.76M\",\n        \"vmemoryuse\": \"off\",\n        \"vnet\": \"off\",\n        \"vnet0_mac\": \"none\",\n        \"vnet1_mac\": \"none\",\n        \"vnet2_mac\": \"none\",\n        \"vnet3_mac\": \"none\",\n        \"wallclock\": \"off\"\n      }\n    }\n  },\n  \"id\": \"fooid\",\n  \"name\": \"response\",\n  \"namespace\": \"sysadm\"\n}","distinct":true,"url":"https://api.github.com/repos/pcbsd/sysadm/commits/621b2d6233595efaabc24e1a83a637fa4537948a"}]}