| 1 |
{ |
| 2 |
"sites": [ |
| 3 |
{ |
| 4 |
"resource_name": "site-a", |
| 5 |
"name": "site(A)", |
| 6 |
"description": "site(A) comment", |
| 7 |
"rrtype": "A", |
| 8 |
"endpoints": [ |
| 9 |
{ |
| 10 |
"resource_name": "endpoint-1", |
| 11 |
"name": "host-1", |
| 12 |
"monitoring_target": "www.example.jp.", |
| 13 |
"description": "endpoint#1", |
| 14 |
"weight": 1, |
| 15 |
"manual_failback": false, |
| 16 |
"manual_failover": false, |
| 17 |
"enabled": false, |
| 18 |
"rdata": [ |
| 19 |
{ |
| 20 |
"value": "192.168.0.1" |
| 21 |
}, |
| 22 |
{ |
| 23 |
"value": "192.168.1.1" |
| 24 |
} |
| 25 |
], |
| 26 |
"monitorings": [ |
| 27 |
{ |
| 28 |
"resource_name": "id1", |
| 29 |
"enabled": true |
| 30 |
} |
| 31 |
] |
| 32 |
} |
| 33 |
] |
| 34 |
}, |
| 35 |
{ |
| 36 |
"resource_name": "site-aaaa", |
| 37 |
"name": "site(AAAA)", |
| 38 |
"description": "site(AAAA) comment", |
| 39 |
"rrtype": "AAAA", |
| 40 |
"endpoints": [ |
| 41 |
{ |
| 42 |
"resource_name": "endpoint-2", |
| 43 |
"name": "host-2", |
| 44 |
"monitoring_target": "2001:db8::1", |
| 45 |
"description": "endpoint#2", |
| 46 |
"weight": 255, |
| 47 |
"manual_failback": true, |
| 48 |
"manual_failover": true, |
| 49 |
"enabled": true, |
| 50 |
"rdata": [ |
| 51 |
{ |
| 52 |
"value": "2001:db8::1" |
| 53 |
}, |
| 54 |
{ |
| 55 |
"value": "2001:db8::2" |
| 56 |
} |
| 57 |
], |
| 58 |
"monitorings": [ |
| 59 |
{ |
| 60 |
"resource_name": "id1", |
| 61 |
"enabled": true |
| 62 |
} |
| 63 |
] |
| 64 |
} |
| 65 |
] |
| 66 |
} |
| 67 |
], |
| 68 |
"monitorings": [ |
| 69 |
{ |
| 70 |
"resource_name": "id1", |
| 71 |
"name": "monitoring-1", |
| 72 |
"mtype": "ping", |
| 73 |
"description": "comment 1", |
| 74 |
"props": { |
| 75 |
"location": "all", |
| 76 |
"interval": 30, |
| 77 |
"holdtime": 0, |
| 78 |
"timeout": 1 |
| 79 |
} |
| 80 |
} |
| 81 |
], |
| 82 |
"rules": [ |
| 83 |
{ |
| 84 |
"resource_name": "rule-a", |
| 85 |
"name": "default", |
| 86 |
"description": "default rule", |
| 87 |
"methods": [ |
| 88 |
{ |
| 89 |
"method": { |
| 90 |
"resource_name": "entry-a-1", |
| 91 |
"mtype": "entry_a", |
| 92 |
"enabled": true |
| 93 |
} |
| 94 |
}, |
| 95 |
{ |
| 96 |
"method": { |
| 97 |
"resource_name": "entry-aaaa-1", |
| 98 |
"mtype": "entry_aaaa", |
| 99 |
"enabled": true |
| 100 |
} |
| 101 |
}, |
| 102 |
{ |
| 103 |
"method": { |
| 104 |
"resource_name": "exit-a-1", |
| 105 |
"parent_resource_name": "entry-a-1", |
| 106 |
"site_resource_name": "site-a", |
| 107 |
"mtype": "exit_site", |
| 108 |
"enabled": true |
| 109 |
} |
| 110 |
}, |
| 111 |
{ |
| 112 |
"method": { |
| 113 |
"resource_name": "exit-aaaa-1", |
| 114 |
"parent_resource_name": "entry-aaaa-1", |
| 115 |
"site_resource_name": "site-aaaa", |
| 116 |
"mtype": "exit_site", |
| 117 |
"enabled": true |
| 118 |
} |
| 119 |
} |
| 120 |
] |
| 121 |
} |
| 122 |
] |
| 123 |
} |