@pulumi/azuread
Version:
A Pulumi package for creating and managing Azure Active Directory (Azure AD) cloud resources.
135 lines • 5.38 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNamedLocationOutput = exports.getNamedLocation = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(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