countryNamedLocation 资源类型

命名空间:microsoft.graph

表示Azure Active Directory地区定义的命名位置。 命名位置是定义网络位置的自定义规则,这些位置随后可在条件访问策略中使用。

继承自 namedLocation

方法

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

属性

属性 类型 说明
countriesAndRegions 字符串集合 ISO 3166-2 指定的两字母格式的国家/地区列表。 必需。
countryLookupMethod countryLookupMethodType 确定用于确定用户所在的国家/地区的方法。 可能的值为 (clientIpAddressauthenticatorAppGps) 。 注意 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)"
}

另请参阅