UNPKG

@pulumi/azuread

Version:

A Pulumi package for creating and managing Azure Active Directory (Azure AD) cloud resources.

112 lines 4.32 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getNamedLocationOutput = exports.getNamedLocation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a Named Location within Azure Active Directory. * * ## API Permissions * * The following API permissions are required in order to use this data source. * * When authenticated with a service principal, this resource requires the following application roles: `Policy.Read.All` * * When authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Reader` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getNamedLocation({ * displayName: "My Named Location", * }); * ``` * * ## Attributes Reference * * The following attributes are exported: * * * `country` - A `country` block as documented below, which describes a country-based named location. * * `id` - The ID of the named location. * * `ip` - An `ip` block as documented below, which describes an IP-based named location. * * `objectId` - The object ID of the named location. * * *** * * `country` block exports the following: * * * `countriesAndRegions` - List of countries and/or regions in two-letter format specified by ISO 3166-2. * * `includeUnknownCountriesAndRegions` - Whether IP addresses that don't map to a country or region are included in the named location. * * *** * * `ip` block exports the following: * * * `ipRanges` - List of IP address ranges in IPv4 CIDR format (e.g. `1.2.3.4/32`) or any allowable IPv6 format from IETF RFC596. * * `trusted` - Whether the named location is trusted. */ function getNamedLocation(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuread:index/getNamedLocation:getNamedLocation", { "displayName": args.displayName, }, opts); } exports.getNamedLocation = getNamedLocation; /** * Gets information about a Named Location within Azure Active Directory. * * ## API Permissions * * The following API permissions are required in order to use this data source. * * When authenticated with a service principal, this resource requires the following application roles: `Policy.Read.All` * * When authenticated with a user principal, this resource requires one of the following directory roles: `Conditional Access Administrator` or `Global Reader` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getNamedLocation({ * displayName: "My Named Location", * }); * ``` * * ## Attributes Reference * * The following attributes are exported: * * * `country` - A `country` block as documented below, which describes a country-based named location. * * `id` - The ID of the named location. * * `ip` - An `ip` block as documented below, which describes an IP-based named location. * * `objectId` - The object ID of the named location. * * *** * * `country` block exports the following: * * * `countriesAndRegions` - List of countries and/or regions in two-letter format specified by ISO 3166-2. * * `includeUnknownCountriesAndRegions` - Whether IP addresses that don't map to a country or region are included in the named location. * * *** * * `ip` block exports the following: * * * `ipRanges` - List of IP address ranges in IPv4 CIDR format (e.g. `1.2.3.4/32`) or any allowable IPv6 format from IETF RFC596. * * `trusted` - Whether the named location is trusted. */ function getNamedLocationOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuread:index/getNamedLocation:getNamedLocation", { "displayName": args.displayName, }, opts); } exports.getNamedLocationOutput = getNamedLocationOutput; //# sourceMappingURL=getNamedLocation.js.map