import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness Chaos Probe Template. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Example 1: Lookup Probe Template by Identity (Recommended) * const byIdentity = harness.chaos.getProbeTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * identity: "http-health-check", * }); * export const probeName = byIdentity.then(byIdentity => byIdentity.name); * export const probeType = byIdentity.then(byIdentity => byIdentity.type); * // Example 2: Lookup Probe Template by Name * const byName = harness.chaos.getProbeTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * name: "HTTP Health Check Probe", * }); * // Example 3: Use in another resource * const example = new harness.chaos.Experiment("example", {probe: [{ * name: byIdentity.then(byIdentity => byIdentity.name), * type: byIdentity.then(byIdentity => byIdentity.type), * }]}); * ``` */ export declare function getProbeTemplate(args: GetProbeTemplateArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProbeTemplate. */ export interface GetProbeTemplateArgs { /** * Identity of the chaos hub. */ hubIdentity: string; /** * Unique identifier of the probe template. */ identity?: string; /** * Name of the probe template. */ name?: string; /** * Organization identifier. */ orgId?: string; /** * Project identifier. */ projectId?: string; } /** * A collection of values returned by getProbeTemplate. */ export interface GetProbeTemplateResult { /** * Account identifier. */ readonly accountId: string; /** * Command probe configuration. */ readonly cmdProbes: outputs.chaos.GetProbeTemplateCmdProbe[]; /** * Description of the probe template. */ readonly description: string; /** * HTTP probe configuration. */ readonly httpProbes: outputs.chaos.GetProbeTemplateHttpProbe[]; /** * Identity of the chaos hub. */ readonly hubIdentity: string; /** * Hub reference. */ readonly hubRef: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the probe template. */ readonly identity?: string; /** * Infrastructure type. */ readonly infrastructureType: string; /** * Whether this is the default version. */ readonly isDefault: boolean; /** * Kubernetes probe configuration. */ readonly k8sProbes: outputs.chaos.GetProbeTemplateK8sProbe[]; /** * Name of the probe template. */ readonly name?: string; /** * Organization identifier. */ readonly orgId?: string; /** * Project identifier. */ readonly projectId?: string; /** * Revision number. */ readonly revision: number; /** * Run properties. */ readonly runProperties: outputs.chaos.GetProbeTemplateRunProperty[]; /** * Tags associated with the probe template. */ readonly tags: string[]; /** * Type of the probe template. */ readonly type: string; /** * Template variables. */ readonly variables: outputs.chaos.GetProbeTemplateVariable[]; } /** * Data source for retrieving a Harness Chaos Probe Template. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Example 1: Lookup Probe Template by Identity (Recommended) * const byIdentity = harness.chaos.getProbeTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * identity: "http-health-check", * }); * export const probeName = byIdentity.then(byIdentity => byIdentity.name); * export const probeType = byIdentity.then(byIdentity => byIdentity.type); * // Example 2: Lookup Probe Template by Name * const byName = harness.chaos.getProbeTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * name: "HTTP Health Check Probe", * }); * // Example 3: Use in another resource * const example = new harness.chaos.Experiment("example", {probe: [{ * name: byIdentity.then(byIdentity => byIdentity.name), * type: byIdentity.then(byIdentity => byIdentity.type), * }]}); * ``` */ export declare function getProbeTemplateOutput(args: GetProbeTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProbeTemplate. */ export interface GetProbeTemplateOutputArgs { /** * Identity of the chaos hub. */ hubIdentity: pulumi.Input; /** * Unique identifier of the probe template. */ identity?: pulumi.Input; /** * Name of the probe template. */ name?: pulumi.Input; /** * Organization identifier. */ orgId?: pulumi.Input; /** * Project identifier. */ projectId?: pulumi.Input; } //# sourceMappingURL=getProbeTemplate.d.ts.map