Endpoint
/api/v2/tenants/{tenantId}/resources/{resourceId}/availability/rule
Gets the availability rule defined on a resource.
Notes
Refer to Search Resources API to get the list of a client’s resource IDs.
Path Parameters
tenantIdstring
resourceIdstring
Responses
OK
availabilityRulestring
descriptionstring
{
"availabilityRule": "AND",
"description": "Resource is Up if ALL availability monitors are OK, Resource is Down otherwise"
}
{
"availabilityRule": "OR",
"description": "Resource is Up if ANY availability monitor is OK, Resource is Down otherwise"
}
Endpoint
/api/v2/tenants/{tenantId}/resources/{resourceId}/availability/rule
Updates the availability rule defined on a resource.
Path Parameters
tenantIdstring
resourceIdstring
availabilityRulestring
AND - Show resource status Up if ALL the availability monitors assigned on the resource are in OK state, else show the status as Down. OR - Show resource status Up if ANY of the availability monitors assigned on the resource are in OK state, else show the status as Down.
{
"availabilityRule": "OR"
}
Responses
OK