PingIDM

Cluster activation

The openidm/cluster/active endpoint lets you read and set the cluster readiness state of an IDM instance.

This endpoint is available only when both org.forgerock.feature.cluster.active.passive and org.forgerock.feature.cluster.improved are set to true in resolver/boot.properties.

Learn more in Cluster standby mode.

Endpoint summary

HTTP Operation Endpoint Description

GET

/openidm/cluster/active

Read the current readiness state of this node.

PUT

/openidm/cluster/active

Set the readiness state of this node.

Read the cluster readiness state

curl \
--header "X-OpenIDM-Username: openidm-admin" \
--header "X-OpenIDM-Password: openidm-admin" \
--header "Accept-API-Version: resource=1.0" \
--request GET \
'http://localhost:8080/openidm/cluster/active'
Example response
{
  "state": "STANDBY"
}

Set the cluster readiness state

To activate a node:

curl \
--header "X-OpenIDM-Username: openidm-admin" \
--header "X-OpenIDM-Password: openidm-admin" \
--request PUT \
--header "Accept-API-Version: resource=1.0" \
--header 'Content-Type: application/json' \
--header 'If-Match: *' \
--data '{"state":"ACTIVE"}' \
'http://localhost:8080/openidm/cluster/active'
Example response
{
  "state": "ACTIVE"
}

To set a node to standby:

curl \
--header "X-OpenIDM-Username: openidm-admin" \
--header "X-OpenIDM-Password: openidm-admin" \
--request PUT \
--header "Accept-API-Version: resource=1.0" \
--header 'Content-Type: application/json' \
--header 'If-Match: *' \
--data '{"state":"STANDBY"}' \
'http://localhost:8080/openidm/cluster/active'
Example response
{
  "state": "STANDBY"
}

Request body

Property Type Description

state

String

The readiness state. Valid values: ACTIVE, STANDBY.

Authentication

Access to this endpoint is authenticated using credentials configured through the purpose idm.cluster.activation.credentials.