@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Capture logs and metrics of Azure resources based on ARM tags.
*
* Uses Azure REST API version 2024-03-01.
*
* Other available API versions: 2023-06-01, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview, 2025-01-15-preview, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native elastic [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getTagRule(args: GetTagRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetTagRuleResult>;
export interface GetTagRuleArgs {
/**
* Monitor resource name
*/
monitorName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Tag Rule Set resource name
*/
ruleSetName: string;
}
/**
* Capture logs and metrics of Azure resources based on ARM tags.
*/
export interface GetTagRuleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The id of the rule set.
*/
readonly id: string;
/**
* Name of the rule set.
*/
readonly name: string;
/**
* Properties of the monitoring tag rules.
*/
readonly properties: outputs.elastic.MonitoringTagRulesPropertiesResponse;
/**
* The system metadata relating to this resource
*/
readonly systemData: outputs.elastic.SystemDataResponse;
/**
* The type of the rule set.
*/
readonly type: string;
}
/**
* Capture logs and metrics of Azure resources based on ARM tags.
*
* Uses Azure REST API version 2024-03-01.
*
* Other available API versions: 2023-06-01, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview, 2025-01-15-preview, 2025-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native elastic [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getTagRuleOutput(args: GetTagRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagRuleResult>;
export interface GetTagRuleOutputArgs {
/**
* Monitor resource name
*/
monitorName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Tag Rule Set resource name
*/
ruleSetName: pulumi.Input<string>;
}