Skip to main content

conditional_access_named_locations

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

Overview

Nameconditional_access_named_locations
TypeResource
Identra_id.identity.conditional_access_named_locations

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringIdentifier of a namedLocation object. Read-only.
createdDateTimestring (date-time)The Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. (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])$)
deletedDateTimestring (date-time) (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])$)
displayNamestringHuman-readable name of the location.
modifiedDateTimestring (date-time)The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. (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])$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnamed_location_idRetrieve the properties and relationships of a countryNamedLocation object.
listselectGet a list of namedLocation objects.
insertinsertCreate a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects.
updateupdatenamed_location_idUpdate the properties of a countryNamedLocation object.
deletedeletenamed_location_idIf-MatchDelete a countryNamedLocation object.
restoreexecnamed_location_id

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
named_location_idstringThe unique identifier of namedLocation
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of a countryNamedLocation object.

SELECT
id,
createdDateTime,
deletedDateTime,
displayName,
modifiedDateTime
FROM entra_id.identity.conditional_access_named_locations
WHERE named_location_id = '{{ named_location_id }}' -- required
;

INSERT examples

Create a new namedLocation object. Named locations can be either ipNamedLocation or countryNamedLocation objects.

INSERT INTO entra_id.identity.conditional_access_named_locations (
deletedDateTime,
createdDateTime,
displayName,
id,
modifiedDateTime
)
SELECT
'{{ deletedDateTime }}',
'{{ createdDateTime }}',
'{{ displayName }}',
'{{ id }}',
'{{ modifiedDateTime }}'
RETURNING
id,
createdDateTime,
deletedDateTime,
displayName,
modifiedDateTime
;

UPDATE examples

Update the properties of a countryNamedLocation object.

UPDATE entra_id.identity.conditional_access_named_locations
SET
deletedDateTime = '{{ deletedDateTime }}',
createdDateTime = '{{ createdDateTime }}',
displayName = '{{ displayName }}',
id = '{{ id }}',
modifiedDateTime = '{{ modifiedDateTime }}'
WHERE
named_location_id = '{{ named_location_id }}' --required
RETURNING
id,
createdDateTime,
deletedDateTime,
displayName,
modifiedDateTime;

DELETE examples

Delete a countryNamedLocation object.

DELETE FROM entra_id.identity.conditional_access_named_locations
WHERE named_location_id = '{{ named_location_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Success

EXEC entra_id.identity.conditional_access_named_locations.restore
@named_location_id='{{ named_location_id }}' --required
;