@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get the specified trigger for the specified image template resource
*
* Uses Azure REST API version 2024-02-01.
*
* Other available API versions: 2022-07-01, 2023-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native virtualmachineimages [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getTrigger(args: GetTriggerArgs, opts?: pulumi.InvokeOptions): Promise<GetTriggerResult>;
export interface GetTriggerArgs {
/**
* The name of the image Template
*/
imageTemplateName: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
/**
* The name of the trigger
*/
triggerName: string;
}
/**
* Represents a trigger that can invoke an image template build.
*/
export interface GetTriggerResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The kind of trigger.
*/
readonly kind: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Provisioning state of the resource
*/
readonly provisioningState: string;
/**
* Trigger status
*/
readonly status: outputs.virtualmachineimages.TriggerStatusResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.virtualmachineimages.SystemDataResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Get the specified trigger for the specified image template resource
*
* Uses Azure REST API version 2024-02-01.
*
* Other available API versions: 2022-07-01, 2023-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native virtualmachineimages [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getTriggerOutput(args: GetTriggerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTriggerResult>;
export interface GetTriggerOutputArgs {
/**
* The name of the image Template
*/
imageTemplateName: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the trigger
*/
triggerName: pulumi.Input<string>;
}