@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
26 lines • 1.75 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTenantOutput = exports.getTenant = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The data source `dynatrace.getTenant` evalutes the configured Environment URL (either the environment variable `DYNATRACE_ENV_URL` or the configuration attribute `dtEnvUrl`) and extracts out the name/id of the environment this provider addresses.
* Main purpose is for migrating settings from one environment to another, but it can be used to in general to avoid hard coding the environment ID like in the example below.
*/
function getTenant(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getTenant:getTenant", {}, opts);
}
exports.getTenant = getTenant;
/**
* The data source `dynatrace.getTenant` evalutes the configured Environment URL (either the environment variable `DYNATRACE_ENV_URL` or the configuration attribute `dtEnvUrl`) and extracts out the name/id of the environment this provider addresses.
* Main purpose is for migrating settings from one environment to another, but it can be used to in general to avoid hard coding the environment ID like in the example below.
*/
function getTenantOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getTenant:getTenant", {}, opts);
}
exports.getTenantOutput = getTenantOutput;
//# sourceMappingURL=getTenant.js.map