Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi
harness.chaos.getImageRegistry
Data source for retrieving a Harness Chaos Image Registry and checking override status
Example Usage
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,
});
import pulumi
import pulumi_harness as harness
# Data source to verify the registry
example = harness.chaos.get_image_registry(org_id="<org_id>",
    project_id="<project_id>")
# Example of checking override status
override_check = harness.chaos.get_image_registry(org_id="<org_id>",
    project_id="<project_id>",
    check_override=True)
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Data source to verify the registry
		_, err := chaos.LookupImageRegistry(ctx, &chaos.LookupImageRegistryArgs{
			OrgId:     pulumi.StringRef("<org_id>"),
			ProjectId: pulumi.StringRef("<project_id>"),
		}, nil)
		if err != nil {
			return err
		}
		// Example of checking override status
		_, err = chaos.LookupImageRegistry(ctx, &chaos.LookupImageRegistryArgs{
			OrgId:         pulumi.StringRef("<org_id>"),
			ProjectId:     pulumi.StringRef("<project_id>"),
			CheckOverride: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    // Data source to verify the registry
    var example = Harness.Chaos.GetImageRegistry.Invoke(new()
    {
        OrgId = "<org_id>",
        ProjectId = "<project_id>",
    });
    // Example of checking override status
    var overrideCheck = Harness.Chaos.GetImageRegistry.Invoke(new()
    {
        OrgId = "<org_id>",
        ProjectId = "<project_id>",
        CheckOverride = true,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.ChaosFunctions;
import com.pulumi.harness.chaos.inputs.GetImageRegistryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        // Data source to verify the registry
        final var example = ChaosFunctions.getImageRegistry(GetImageRegistryArgs.builder()
            .orgId("<org_id>")
            .projectId("<project_id>")
            .build());
        // Example of checking override status
        final var overrideCheck = ChaosFunctions.getImageRegistry(GetImageRegistryArgs.builder()
            .orgId("<org_id>")
            .projectId("<project_id>")
            .checkOverride(true)
            .build());
    }
}
variables:
  # Data source to verify the registry
  example:
    fn::invoke:
      function: harness:chaos:getImageRegistry
      arguments:
        orgId: <org_id>
        projectId: <project_id>
  # Example of checking override status
  overrideCheck:
    fn::invoke:
      function: harness:chaos:getImageRegistry
      arguments:
        orgId: <org_id>
        projectId: <project_id>
        checkOverride: true
Using getImageRegistry
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getImageRegistry(args: GetImageRegistryArgs, opts?: InvokeOptions): Promise<GetImageRegistryResult>
function getImageRegistryOutput(args: GetImageRegistryOutputArgs, opts?: InvokeOptions): Output<GetImageRegistryResult>def get_image_registry(check_override: Optional[bool] = None,
                       infra_id: Optional[str] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetImageRegistryResult
def get_image_registry_output(check_override: Optional[pulumi.Input[bool]] = None,
                       infra_id: Optional[pulumi.Input[str]] = None,
                       org_id: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetImageRegistryResult]func LookupImageRegistry(ctx *Context, args *LookupImageRegistryArgs, opts ...InvokeOption) (*LookupImageRegistryResult, error)
func LookupImageRegistryOutput(ctx *Context, args *LookupImageRegistryOutputArgs, opts ...InvokeOption) LookupImageRegistryResultOutput> Note: This function is named LookupImageRegistry in the Go SDK.
public static class GetImageRegistry 
{
    public static Task<GetImageRegistryResult> InvokeAsync(GetImageRegistryArgs args, InvokeOptions? opts = null)
    public static Output<GetImageRegistryResult> Invoke(GetImageRegistryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetImageRegistryResult> getImageRegistry(GetImageRegistryArgs args, InvokeOptions options)
public static Output<GetImageRegistryResult> getImageRegistry(GetImageRegistryArgs args, InvokeOptions options)
fn::invoke:
  function: harness:chaos/getImageRegistry:getImageRegistry
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CheckOverride bool
- Whether to check if override is allowed
- InfraId string
- The infrastructure ID to set up the image registry
- OrgId string
- The organization ID of the image registry
- ProjectId string
- The project ID of the image registry
- CheckOverride bool
- Whether to check if override is allowed
- InfraId string
- The infrastructure ID to set up the image registry
- OrgId string
- The organization ID of the image registry
- ProjectId string
- The project ID of the image registry
- checkOverride Boolean
- Whether to check if override is allowed
- infraId String
- The infrastructure ID to set up the image registry
- orgId String
- The organization ID of the image registry
- projectId String
- The project ID of the image registry
- checkOverride boolean
- Whether to check if override is allowed
- infraId string
- The infrastructure ID to set up the image registry
- orgId string
- The organization ID of the image registry
- projectId string
- The project ID of the image registry
- check_override bool
- Whether to check if override is allowed
- infra_id str
- The infrastructure ID to set up the image registry
- org_id str
- The organization ID of the image registry
- project_id str
- The project ID of the image registry
- checkOverride Boolean
- Whether to check if override is allowed
- infraId String
- The infrastructure ID to set up the image registry
- orgId String
- The organization ID of the image registry
- projectId String
- The project ID of the image registry
getImageRegistry Result
The following output properties are available:
- CreatedAt string
- Creation timestamp
- CustomImages List<GetImage Registry Custom Image> 
- Custom images configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault bool
- Whether this is the default registry
- IsOverride boolAllowed 
- Whether override is allowed for this registry
- IsPrivate bool
- Whether the registry is private
- OverrideBlocked stringBy Scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- RegistryAccount string
- The registry account name
- RegistryServer string
- The registry server URL
- SecretName string
- The name of the secret for authentication
- UpdatedAt string
- Last update timestamp
- UseCustom boolImages 
- Whether custom images are used
- CheckOverride bool
- Whether to check if override is allowed
- InfraId string
- The infrastructure ID to set up the image registry
- OrgId string
- The organization ID of the image registry
- ProjectId string
- The project ID of the image registry
- CreatedAt string
- Creation timestamp
- CustomImages []GetImage Registry Custom Image 
- Custom images configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault bool
- Whether this is the default registry
- IsOverride boolAllowed 
- Whether override is allowed for this registry
- IsPrivate bool
- Whether the registry is private
- OverrideBlocked stringBy Scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- RegistryAccount string
- The registry account name
- RegistryServer string
- The registry server URL
- SecretName string
- The name of the secret for authentication
- UpdatedAt string
- Last update timestamp
- UseCustom boolImages 
- Whether custom images are used
- CheckOverride bool
- Whether to check if override is allowed
- InfraId string
- The infrastructure ID to set up the image registry
- OrgId string
- The organization ID of the image registry
- ProjectId string
- The project ID of the image registry
- createdAt String
- Creation timestamp
- customImages List<GetImage Registry Custom Image> 
- Custom images configuration
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault Boolean
- Whether this is the default registry
- isOverride BooleanAllowed 
- Whether override is allowed for this registry
- isPrivate Boolean
- Whether the registry is private
- overrideBlocked StringBy Scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- registryAccount String
- The registry account name
- registryServer String
- The registry server URL
- secretName String
- The name of the secret for authentication
- updatedAt String
- Last update timestamp
- useCustom BooleanImages 
- Whether custom images are used
- checkOverride Boolean
- Whether to check if override is allowed
- infraId String
- The infrastructure ID to set up the image registry
- orgId String
- The organization ID of the image registry
- projectId String
- The project ID of the image registry
- createdAt string
- Creation timestamp
- customImages GetImage Registry Custom Image[] 
- Custom images configuration
- id string
- The provider-assigned unique ID for this managed resource.
- isDefault boolean
- Whether this is the default registry
- isOverride booleanAllowed 
- Whether override is allowed for this registry
- isPrivate boolean
- Whether the registry is private
- overrideBlocked stringBy Scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- registryAccount string
- The registry account name
- registryServer string
- The registry server URL
- secretName string
- The name of the secret for authentication
- updatedAt string
- Last update timestamp
- useCustom booleanImages 
- Whether custom images are used
- checkOverride boolean
- Whether to check if override is allowed
- infraId string
- The infrastructure ID to set up the image registry
- orgId string
- The organization ID of the image registry
- projectId string
- The project ID of the image registry
- created_at str
- Creation timestamp
- custom_images Sequence[GetImage Registry Custom Image] 
- Custom images configuration
- id str
- The provider-assigned unique ID for this managed resource.
- is_default bool
- Whether this is the default registry
- is_override_ boolallowed 
- Whether override is allowed for this registry
- is_private bool
- Whether the registry is private
- override_blocked_ strby_ scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- registry_account str
- The registry account name
- registry_server str
- The registry server URL
- secret_name str
- The name of the secret for authentication
- updated_at str
- Last update timestamp
- use_custom_ boolimages 
- Whether custom images are used
- check_override bool
- Whether to check if override is allowed
- infra_id str
- The infrastructure ID to set up the image registry
- org_id str
- The organization ID of the image registry
- project_id str
- The project ID of the image registry
- createdAt String
- Creation timestamp
- customImages List<Property Map>
- Custom images configuration
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault Boolean
- Whether this is the default registry
- isOverride BooleanAllowed 
- Whether override is allowed for this registry
- isPrivate Boolean
- Whether the registry is private
- overrideBlocked StringBy Scope 
- Indicates if override is blocked by scope (only populated if check_override is true)
- registryAccount String
- The registry account name
- registryServer String
- The registry server URL
- secretName String
- The name of the secret for authentication
- updatedAt String
- Last update timestamp
- useCustom BooleanImages 
- Whether custom images are used
- checkOverride Boolean
- Whether to check if override is allowed
- infraId String
- The infrastructure ID to set up the image registry
- orgId String
- The organization ID of the image registry
- projectId String
- The project ID of the image registry
Supporting Types
GetImageRegistryCustomImage    
- Ddcr string
- DdcrFault string
- DdcrLib string
- LogWatcher string
- Ddcr string
- DdcrFault string
- DdcrLib string
- LogWatcher string
- ddcr String
- ddcrFault String
- ddcrLib String
- logWatcher String
- ddcr string
- ddcrFault string
- ddcrLib string
- logWatcher string
- ddcr str
- ddcr_fault str
- ddcr_lib str
- log_watcher str
- ddcr String
- ddcrFault String
- ddcrLib String
- logWatcher String
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
 
