@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 5.18 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Value object for saved search results.
*
* Uses Azure REST API version 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2020-08-01.
*
* Other available API versions: 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native operationalinsights [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare class SavedSearch extends pulumi.CustomResource {
/**
* Get an existing SavedSearch resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SavedSearch;
/**
* Returns true if the given object is an instance of SavedSearch. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is SavedSearch;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* The category of the saved search. This helps the user to find a saved search faster.
*/
readonly category: pulumi.Output<string>;
/**
* Saved search display name.
*/
readonly displayName: pulumi.Output<string>;
/**
* The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag
*/
readonly etag: pulumi.Output<string | undefined>;
/**
* The function alias if query serves as a function.
*/
readonly functionAlias: pulumi.Output<string | undefined>;
/**
* The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
*/
readonly functionParameters: pulumi.Output<string | undefined>;
/**
* The name of the resource
*/
readonly name: pulumi.Output<string>;
/**
* The query expression for the saved search.
*/
readonly query: pulumi.Output<string>;
/**
* The tags attached to the saved search.
*/
readonly tags: pulumi.Output<outputs.operationalinsights.TagResponse[] | undefined>;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: pulumi.Output<string>;
/**
* The version number of the query language. The current version is 2 and is the default.
*/
readonly version: pulumi.Output<number | undefined>;
/**
* Create a SavedSearch resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: SavedSearchArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a SavedSearch resource.
*/
export interface SavedSearchArgs {
/**
* The category of the saved search. This helps the user to find a saved search faster.
*/
category: pulumi.Input<string>;
/**
* Saved search display name.
*/
displayName: pulumi.Input<string>;
/**
* The function alias if query serves as a function.
*/
functionAlias?: pulumi.Input<string>;
/**
* The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
*/
functionParameters?: pulumi.Input<string>;
/**
* The query expression for the saved search.
*/
query: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The id of the saved search.
*/
savedSearchId?: pulumi.Input<string>;
/**
* The tags attached to the saved search.
*/
tags?: pulumi.Input<pulumi.Input<inputs.operationalinsights.TagArgs>[]>;
/**
* The version number of the query language. The current version is 2 and is the default.
*/
version?: pulumi.Input<number>;
/**
* The name of the workspace.
*/
workspaceName: pulumi.Input<string>;
}