countryNamedLocation 资源类型

命名空间:microsoft.graph

表示由国家和地区定义的命名位置Microsoft Entra ID。 命名位置是定义网络位置的自定义规则,可在条件访问策略中使用。

继承自 namedLocation

方法

方法 返回类型 说明
列出 countryNamedLocations countryNamedLocation 集合 获取组织中所有 countryNamedLocation 对象。
创建 countryNamedLocation countryNamedLocation 创建新的 countryNamedLocation 对象。
获取 countryNamedLocation countryNamedLocation 读取 countryNamedLocation 对象的属性和关系。
更新 countryNamedLocation countryNamedLocation 更新 countryNamedLocation 对象。
删除 countryNamedLocation 删除 countryNamedLocation 对象。

属性

属性 类型 说明
countriesAndRegions 字符串集合 ISO 3166-2 指定的双字母格式的国家/地区和/或区域列表。 必填。
countryLookupMethod countryLookupMethodType 确定使用哪种方法确定用户所在的国家/地区。 可能的值 (clientIpAddress 默认) 和 authenticatorAppGps。 注意: authenticatorAppGps Microsoft Cloud for US Government尚不支持。
createdDateTime DateTimeOffset 时间戳类型表示使用 ISO 8601 格式创建位置的日期和时间,并且始终采用 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 只读。 继承自 namedLocation
displayName String 位置的用户可读名称。 必填。 继承自 namedLocation
id String namedLocation 对象的标识符。 此为只读属性。 继承自 namedLocation
includeUnknownCountriesAndRegions 布尔值 true 如果未映射到国家或地区的 IP 地址应包含在命名位置中,则为 。 可选。 默认值为 false
modifiedDateTime DateTimeOffset 时间戳类型使用 ISO 8601 格式表示上次修改的日期和时间,并且始终采用 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 只读。 继承自 namedLocation

关系

无。

JSON 表示形式

下面是资源的 JSON 表示形式。

{
  "countriesAndRegions": ["String"],
  "countryLookupMethod": "String",
  "createdDateTime": "String (timestamp)",
  "displayName": "String",
  "id": "String (identifier)",
  "includeUnknownCountriesAndRegions": true,
  "modifiedDateTime": "String (timestamp)"
}