@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.17 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Obtains the details of a suppression.
*
* Uses Azure REST API version 2023-09-01-preview.
*
* Other available API versions: 2023-01-01, 2024-11-18-preview, 2025-01-01, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native advisor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSuppression(args: GetSuppressionArgs, opts?: pulumi.InvokeOptions): Promise<GetSuppressionResult>;
export interface GetSuppressionArgs {
/**
* The name of the suppression.
*/
name: string;
/**
* The recommendation ID.
*/
recommendationId: string;
/**
* The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
*/
resourceUri: string;
}
/**
* The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.
*/
export interface GetSuppressionResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Gets or sets the expiration time stamp.
*/
readonly expirationTimeStamp: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The GUID of the suppression.
*/
readonly suppressionId?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.advisor.SystemDataResponse;
/**
* The duration for which the suppression is valid.
*/
readonly ttl?: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Obtains the details of a suppression.
*
* Uses Azure REST API version 2023-09-01-preview.
*
* Other available API versions: 2023-01-01, 2024-11-18-preview, 2025-01-01, 2025-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native advisor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSuppressionOutput(args: GetSuppressionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSuppressionResult>;
export interface GetSuppressionOutputArgs {
/**
* The name of the suppression.
*/
name: pulumi.Input<string>;
/**
* The recommendation ID.
*/
recommendationId: pulumi.Input<string>;
/**
* The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
*/
resourceUri: pulumi.Input<string>;
}