Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi
harness.chaos.getImageRegistry
Explore with Pulumi AI
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 dictionary
The following arguments are supported:
- Check
Override bool - Whether to check if override is allowed
- Infra
Id string - The infrastructure ID to set up the image registry
- Org
Id string - The organization ID of the image registry
- Project
Id string - The project ID of the image registry
- Check
Override bool - Whether to check if override is allowed
- Infra
Id string - The infrastructure ID to set up the image registry
- Org
Id string - The organization ID of the image registry
- Project
Id string - The project ID of the image registry
- check
Override Boolean - Whether to check if override is allowed
- infra
Id String - The infrastructure ID to set up the image registry
- org
Id String - The organization ID of the image registry
- project
Id String - The project ID of the image registry
- check
Override boolean - Whether to check if override is allowed
- infra
Id string - The infrastructure ID to set up the image registry
- org
Id string - The organization ID of the image registry
- project
Id 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
- check
Override Boolean - Whether to check if override is allowed
- infra
Id String - The infrastructure ID to set up the image registry
- org
Id String - The organization ID of the image registry
- project
Id String - The project ID of the image registry
getImageRegistry Result
The following output properties are available:
- Created
At string - Creation timestamp
- Custom
Images List<GetImage Registry Custom Image> - Custom images configuration
- Id string
- 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 stringBy Scope - Indicates if override is blocked by scope (only populated if check_override is true)
- Registry
Account string - The registry account name
- Registry
Server string - The registry server URL
- Secret
Name string - The name of the secret for authentication
- Updated
At string - Last update timestamp
- Use
Custom boolImages - Whether custom images are used
- Check
Override bool - Whether to check if override is allowed
- Infra
Id string - The infrastructure ID to set up the image registry
- Org
Id string - The organization ID of the image registry
- Project
Id string - The project ID of the image registry
- Created
At string - Creation timestamp
- Custom
Images []GetImage Registry Custom Image - Custom images configuration
- Id string
- 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 stringBy Scope - Indicates if override is blocked by scope (only populated if check_override is true)
- Registry
Account string - The registry account name
- Registry
Server string - The registry server URL
- Secret
Name string - The name of the secret for authentication
- Updated
At string - Last update timestamp
- Use
Custom boolImages - Whether custom images are used
- Check
Override bool - Whether to check if override is allowed
- Infra
Id string - The infrastructure ID to set up the image registry
- Org
Id string - The organization ID of the image registry
- Project
Id string - The project ID of the image registry
- created
At String - Creation timestamp
- custom
Images List<GetImage Registry Custom Image> - Custom images configuration
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default registry
- is
Override BooleanAllowed - Whether override is allowed for this registry
- is
Private Boolean - Whether the registry is private
- override
Blocked StringBy Scope - Indicates if override is blocked by scope (only populated if check_override is true)
- registry
Account String - The registry account name
- registry
Server String - The registry server URL
- secret
Name String - The name of the secret for authentication
- updated
At String - Last update timestamp
- use
Custom BooleanImages - Whether custom images are used
- check
Override Boolean - Whether to check if override is allowed
- infra
Id String - The infrastructure ID to set up the image registry
- org
Id String - The organization ID of the image registry
- project
Id String - The project ID of the image registry
- created
At string - Creation timestamp
- custom
Images GetImage Registry Custom Image[] - Custom images configuration
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - Whether this is the default registry
- is
Override booleanAllowed - Whether override is allowed for this registry
- is
Private boolean - Whether the registry is private
- override
Blocked stringBy Scope - Indicates if override is blocked by scope (only populated if check_override is true)
- registry
Account string - The registry account name
- registry
Server string - The registry server URL
- secret
Name string - The name of the secret for authentication
- updated
At string - Last update timestamp
- use
Custom booleanImages - Whether custom images are used
- check
Override boolean - Whether to check if override is allowed
- infra
Id string - The infrastructure ID to set up the image registry
- org
Id string - The organization ID of the image registry
- project
Id 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
- created
At String - Creation timestamp
- custom
Images List<Property Map> - Custom images configuration
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default registry
- is
Override BooleanAllowed - Whether override is allowed for this registry
- is
Private Boolean - Whether the registry is private
- override
Blocked StringBy Scope - Indicates if override is blocked by scope (only populated if check_override is true)
- registry
Account String - The registry account name
- registry
Server String - The registry server URL
- secret
Name String - The name of the secret for authentication
- updated
At String - Last update timestamp
- use
Custom BooleanImages - Whether custom images are used
- check
Override Boolean - Whether to check if override is allowed
- infra
Id String - The infrastructure ID to set up the image registry
- org
Id String - The organization ID of the image registry
- project
Id String - The project ID of the image registry
Supporting Types
GetImageRegistryCustomImage
- Ddcr string
- Ddcr
Fault string - Ddcr
Lib string - Log
Watcher string
- Ddcr string
- Ddcr
Fault string - Ddcr
Lib string - Log
Watcher string
- ddcr String
- ddcr
Fault String - ddcr
Lib String - log
Watcher String
- ddcr string
- ddcr
Fault string - ddcr
Lib string - log
Watcher string
- ddcr str
- ddcr_
fault str - ddcr_
lib str - log_
watcher str
- ddcr String
- ddcr
Fault String - ddcr
Lib String - log
Watcher String
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.