@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
66 lines • 2.5 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.getGeoCitiesOutput = exports.getGeoCities = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `dynatrace.getGeoCities` data source retrieves the list of cities and their codes based on country and region code.
*
* - `countryCode` (String) - The ISO code of the required country
* - `regionCode` (String) - The code of the required region
*
* Geographic regions API: GET regions of a country - https://docs.dynatrace.com/docs/shortlink/api-v2-rum-geographic-regions-get-regions-country
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGeoCities({
* countryCode: "FR",
* regionCode: "BRE",
* });
* export const test = example;
* ```
*/
function getGeoCities(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getGeoCities:getGeoCities", {
"countryCode": args.countryCode,
"regionCode": args.regionCode,
}, opts);
}
exports.getGeoCities = getGeoCities;
/**
* The `dynatrace.getGeoCities` data source retrieves the list of cities and their codes based on country and region code.
*
* - `countryCode` (String) - The ISO code of the required country
* - `regionCode` (String) - The code of the required region
*
* Geographic regions API: GET regions of a country - https://docs.dynatrace.com/docs/shortlink/api-v2-rum-geographic-regions-get-regions-country
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const example = dynatrace.getGeoCities({
* countryCode: "FR",
* regionCode: "BRE",
* });
* export const test = example;
* ```
*/
function getGeoCitiesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getGeoCities:getGeoCities", {
"countryCode": args.countryCode,
"regionCode": args.regionCode,
}, opts);
}
exports.getGeoCitiesOutput = getGeoCitiesOutput;
//# sourceMappingURL=getGeoCities.js.map