Skip to main content

home_realm_discovery_policies

Creates, updates, deletes, gets or lists a home_realm_discovery_policies resource.

Overview

Namehome_realm_discovery_policies
TypeResource
Identra_id.policies.home_realm_discovery_policies

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
appliesToarray
definitionarrayA string collection containing a JSON string that defines the rules and settings for a policy. The syntax for the definition differs for each derived policy type. Required.
deletedDateTimestring (date-time)Date and time when this object was deleted. Always null when the object hasn't been deleted. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
descriptionstringDescription for this policy. Required.
displayNamestringDisplay name for this policy. Required.
isOrganizationDefaultbooleanIf set to true, activates this policy. There can be many policies for the same policy type, but only one can be activated as the organization default. Optional, default value is false.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthome_realm_discovery_policy_idRetrieve the properties and relationships of a homeRealmDiscoveryPolicy object.
listselectGet a list of homeRealmDiscoveryPolicy objects.
insertinsertCreate a new homeRealmDiscoveryPolicy object.
updateupdatehome_realm_discovery_policy_idUpdate the properties of a homeRealmDiscoveryPolicy object.
deletedeletehome_realm_discovery_policy_idIf-MatchDelete a homeRealmDiscoveryPolicy object.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
home_realm_discovery_policy_idstringThe unique identifier of homeRealmDiscoveryPolicy
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of a homeRealmDiscoveryPolicy object.

SELECT
id,
appliesTo,
definition,
deletedDateTime,
description,
displayName,
isOrganizationDefault
FROM entra_id.policies.home_realm_discovery_policies
WHERE home_realm_discovery_policy_id = '{{ home_realm_discovery_policy_id }}' -- required
;

INSERT examples

Create a new homeRealmDiscoveryPolicy object.

INSERT INTO entra_id.policies.home_realm_discovery_policies (
id,
deletedDateTime,
description,
displayName,
definition,
isOrganizationDefault,
appliesTo
)
SELECT
'{{ id }}',
'{{ deletedDateTime }}',
'{{ description }}',
'{{ displayName }}',
'{{ definition }}',
{{ isOrganizationDefault }},
'{{ appliesTo }}'
RETURNING
id,
appliesTo,
definition,
deletedDateTime,
description,
displayName,
isOrganizationDefault
;

UPDATE examples

Update the properties of a homeRealmDiscoveryPolicy object.

UPDATE entra_id.policies.home_realm_discovery_policies
SET
id = '{{ id }}',
deletedDateTime = '{{ deletedDateTime }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
definition = '{{ definition }}',
isOrganizationDefault = {{ isOrganizationDefault }},
appliesTo = '{{ appliesTo }}'
WHERE
home_realm_discovery_policy_id = '{{ home_realm_discovery_policy_id }}' --required
RETURNING
id,
appliesTo,
definition,
deletedDateTime,
description,
displayName,
isOrganizationDefault;

DELETE examples

Delete a homeRealmDiscoveryPolicy object.

DELETE FROM entra_id.policies.home_realm_discovery_policies
WHERE home_realm_discovery_policy_id = '{{ home_realm_discovery_policy_id }}' --required
AND If-Match = '{{ If-Match }}'
;