UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

160 lines (159 loc) 4.25 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness Chaos Image Registry and checking override status * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Data source to verify the registry * const example = harness.chaos.getImageRegistry({ * orgId: "<org_id>", * projectId: "<project_id>", * }); * // Example of checking override status * const overrideCheck = harness.chaos.getImageRegistry({ * orgId: "<org_id>", * projectId: "<project_id>", * checkOverride: true, * }); * ``` */ export declare function getImageRegistry(args?: GetImageRegistryArgs, opts?: pulumi.InvokeOptions): Promise<GetImageRegistryResult>; /** * A collection of arguments for invoking getImageRegistry. */ export interface GetImageRegistryArgs { /** * Whether to check if override is allowed */ checkOverride?: boolean; /** * The infrastructure ID to set up the image registry */ infraId?: string; /** * The organization ID of the image registry */ orgId?: string; /** * The project ID of the image registry */ projectId?: string; } /** * A collection of values returned by getImageRegistry. */ export interface GetImageRegistryResult { /** * Whether to check if override is allowed */ readonly checkOverride?: boolean; /** * Creation timestamp */ readonly createdAt: string; /** * Custom images configuration */ readonly customImages: outputs.chaos.GetImageRegistryCustomImage[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The infrastructure ID to set up the image registry */ readonly infraId?: string; /** * Whether this is the default registry */ readonly isDefault: boolean; /** * Whether override is allowed for this registry */ readonly isOverrideAllowed: boolean; /** * Whether the registry is private */ readonly isPrivate: boolean; /** * The organization ID of the image registry */ readonly orgId?: string; /** * Indicates if override is blocked by scope (only populated if checkOverride is true) */ readonly overrideBlockedByScope: string; /** * The project ID of the image registry */ readonly projectId?: string; /** * The registry account name */ readonly registryAccount: string; /** * The registry server URL */ readonly registryServer: string; /** * The name of the secret for authentication */ readonly secretName: string; /** * Last update timestamp */ readonly updatedAt: string; /** * Whether custom images are used */ readonly useCustomImages: boolean; } /** * Data source for retrieving a Harness Chaos Image Registry and checking override status * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Data source to verify the registry * const example = harness.chaos.getImageRegistry({ * orgId: "<org_id>", * projectId: "<project_id>", * }); * // Example of checking override status * const overrideCheck = harness.chaos.getImageRegistry({ * orgId: "<org_id>", * projectId: "<project_id>", * checkOverride: true, * }); * ``` */ export declare function getImageRegistryOutput(args?: GetImageRegistryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetImageRegistryResult>; /** * A collection of arguments for invoking getImageRegistry. */ export interface GetImageRegistryOutputArgs { /** * Whether to check if override is allowed */ checkOverride?: pulumi.Input<boolean>; /** * The infrastructure ID to set up the image registry */ infraId?: pulumi.Input<string>; /** * The organization ID of the image registry */ orgId?: pulumi.Input<string>; /** * The project ID of the image registry */ projectId?: pulumi.Input<string>; }