@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
74 lines • 2.51 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImageRegistryOutput = exports.getImageRegistry = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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,
* });
* ```
*/
function getImageRegistry(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:chaos/getImageRegistry:getImageRegistry", {
"checkOverride": args.checkOverride,
"infraId": args.infraId,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getImageRegistry = getImageRegistry;
/**
* 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,
* });
* ```
*/
function getImageRegistryOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("harness:chaos/getImageRegistry:getImageRegistry", {
"checkOverride": args.checkOverride,
"infraId": args.infraId,
"orgId": args.orgId,
"projectId": args.projectId,
}, opts);
}
exports.getImageRegistryOutput = getImageRegistryOutput;
//# sourceMappingURL=getImageRegistry.js.map