bc-cliio data format

Name Value Count
acls acl 0/1 Optional ACLs.
calendars calendar 0+ Zero or more calendars.
properties property 0+ Zero or more properties.
jobs job 0+ Zero or more jobs.

Example

{ "acls": { "names": [ { "name": "/", "userRole": "admin", "permissions": [ "READ", "EXECUTE", "ENABLE", "WRITE", "ADMIN" ] }, { "name": "/", "userRole": "everyone", "permissions": [ "READ" ] } ], "hosts": [ { "userRole": "admin", "userGlob": "root" }, { "userRole": "developer", "userRegex": "root", "hostRegex": "devirt\\d{1,2}" } ] "protected": { "hosts": [ "localhost" ], "users": [ "root", "www" ] } } "calendars": [{ "name": "/examples/minimal/weekdays", "includes": ["beyondcron:/calendar/Weekday"] }], "jobs": [ { "name": "/examples/minimal/command", "type": "COMMAND", "mode": "ENABLED", "timezone": "Australia/Melbourne", "username": "nobody", "hostname": "localhost", "command": "/usr/bin/touch /tmp/nobody-was-here" }, { "name": "/examples/minimal/scheduled", "description": "Scheduled job description", "type": "COMMAND", "mode": "ENABLED", "calendar": "/examples/minimal/weekdays", "timezone": "Asia/Tokyo", "conditions": [{ "type": "ANY", "job": "/examples/minimal/command", }], "schedules": [{ "type": "DAILY", "time": "09:00:00" }], "properties": [{ "name": "beyond", "value": "cron" }], "username": "nobody", "hostname": "localhost", "command": "/usr/bin/touch /tmp/typical-job-was-here" }, { "name": "/examples/minimal/triggered", "description": "Triggered job description", "type": "COMMAND", "mode": "DISABLED", "timezone": "Asia/Tokyo", "conditions": [{ "type": "ANY", "job": "/examples/minimal/command", }], "username": "nobody", "hostname": "localhost", "command": "/usr/bin/touch /tmp/typical-job-was-here" }, { "name": "/examples/minimal/url", "type": "URL", "mode": "ENABLED", "timezone": "Australia/Melbourne", "url": "http://example.com/echo", "method": "JSON" } ] }

acls: names: - name: / userRole: admin permissions: [ READ, EXECUTE, ENABLE, WRITE, ADMIN ] - name: / userRole: everyone permissions: [ READ ] hosts: - userRole: admin userGlob: root - userRole: developer userRegex: root hostRegex: devirt\d{1,2} protected: hosts: - localhost users: - root - www calendars: - name: /examples/minimal/weekdays includes: ['beyondcron:/calendar/Weekday'] jobs: - name: /examples/minimal/command type: COMMAND mode: ENABLED timezone: Australia/Melbourne username: nobody, hostname: localhost command: /usr/bin/touch /tmp/nobody-was-here - name: /examples/minimal/scheduled description: Scheduled job description type: COMMAND mode: ENABLED calendar: /examples/minimal/weekdays timezone: Asia/Tokyo conditions: - type: ANY job: /examples/minimal/command schedules: - type: DAILY time: 09:00:00 properties: - name: beyond value: cron username: nobody hostname: localhost command: /usr/bin/touch /tmp/typical-job-was-here - name: /examples/minimal/triggered description: Triggered job description type: COMMAND mode: DISABLED timezone: Asia/Tokyo conditions: - type: ANY job: /examples/minimal/command username: nobody hostname: localhost command: /usr/bin/touch /tmp/typical-job-was-here - name: /examples/minimal/url type: URL mode: ENABLED timezone: Australia/Melbourne url: 'http://example.com/echo' method: JSON

See also