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
tenantId
string

Describes the client ID of the tenant

resourceId
string

Responses

OK

availabilityRule
string

description
string

{
  "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
tenantId
string

Describes the client ID of the tenant

resourceId
string

availabilityRule
string

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