-
Notifications
You must be signed in to change notification settings - Fork 31
/
getazureADMetric.ts
77 lines (70 loc) · 2.32 KB
/
getazureADMetric.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
import * as utilities from "../utilities";
/**
* AzureADMetrics resource.
* API Version: 2020-07-01-preview.
*/
export function getazureADMetric(args: GetazureADMetricArgs, opts?: pulumi.InvokeOptions): Promise<GetazureADMetricResult> {
if (!opts) {
opts = {}
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("azure-native:aadiam:getazureADMetric", {
"azureADMetricsName": args.azureADMetricsName,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
export interface GetazureADMetricArgs {
/**
* Name of the azureADMetrics instance.
*/
azureADMetricsName: string;
/**
* Name of an Azure resource group.
*/
resourceGroupName: string;
}
/**
* AzureADMetrics resource.
*/
export interface GetazureADMetricResult {
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
readonly properties: outputs.aadiam.AzureADMetricsPropertiesFormatResponse;
/**
* Resource tags.
*/
readonly tags?: {[key: string]: string};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
export function getazureADMetricOutput(args: GetazureADMetricOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetazureADMetricResult> {
return pulumi.output(args).apply(a => getazureADMetric(a, opts))
}
export interface GetazureADMetricOutputArgs {
/**
* Name of the azureADMetrics instance.
*/
azureADMetricsName: pulumi.Input<string>;
/**
* Name of an Azure resource group.
*/
resourceGroupName: pulumi.Input<string>;
}