Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi
harness.platform.getHarRegistry
Explore with Pulumi AI
Resource for creating and managing Harness Registries.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = harness.platform.getHarRegistry({
identifier: "test_registry",
spaceRef: "accountId/orgId/projectId",
});
import pulumi
import pulumi_harness as harness
test = harness.platform.get_har_registry(identifier="test_registry",
space_ref="accountId/orgId/projectId")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.LookupHarRegistry(ctx, &platform.LookupHarRegistryArgs{
Identifier: "test_registry",
SpaceRef: pulumi.StringRef("accountId/orgId/projectId"),
}, 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(() =>
{
var test = Harness.Platform.GetHarRegistry.Invoke(new()
{
Identifier = "test_registry",
SpaceRef = "accountId/orgId/projectId",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetHarRegistryArgs;
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) {
final var test = PlatformFunctions.getHarRegistry(GetHarRegistryArgs.builder()
.identifier("test_registry")
.spaceRef("accountId/orgId/projectId")
.build());
}
}
variables:
test:
fn::invoke:
function: harness:platform:getHarRegistry
arguments:
identifier: test_registry
spaceRef: accountId/orgId/projectId
Using getHarRegistry
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 getHarRegistry(args: GetHarRegistryArgs, opts?: InvokeOptions): Promise<GetHarRegistryResult>
function getHarRegistryOutput(args: GetHarRegistryOutputArgs, opts?: InvokeOptions): Output<GetHarRegistryResult>
def get_har_registry(allowed_patterns: Optional[Sequence[str]] = None,
blocked_patterns: Optional[Sequence[str]] = None,
configs: Optional[Sequence[GetHarRegistryConfig]] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
package_type: Optional[str] = None,
parent_ref: Optional[str] = None,
space_ref: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHarRegistryResult
def get_har_registry_output(allowed_patterns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
blocked_patterns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
configs: Optional[pulumi.Input[Sequence[pulumi.Input[GetHarRegistryConfigArgs]]]] = None,
description: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
package_type: Optional[pulumi.Input[str]] = None,
parent_ref: Optional[pulumi.Input[str]] = None,
space_ref: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHarRegistryResult]
func LookupHarRegistry(ctx *Context, args *LookupHarRegistryArgs, opts ...InvokeOption) (*LookupHarRegistryResult, error)
func LookupHarRegistryOutput(ctx *Context, args *LookupHarRegistryOutputArgs, opts ...InvokeOption) LookupHarRegistryResultOutput
> Note: This function is named LookupHarRegistry
in the Go SDK.
public static class GetHarRegistry
{
public static Task<GetHarRegistryResult> InvokeAsync(GetHarRegistryArgs args, InvokeOptions? opts = null)
public static Output<GetHarRegistryResult> Invoke(GetHarRegistryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHarRegistryResult> getHarRegistry(GetHarRegistryArgs args, InvokeOptions options)
public static Output<GetHarRegistryResult> getHarRegistry(GetHarRegistryArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getHarRegistry:getHarRegistry
arguments:
# arguments dictionary
The following arguments are supported:
- Identifier string
- Unique identifier of the registry
- Allowed
Patterns List<string> - Allowed artifact patterns
- Blocked
Patterns List<string> - Blocked artifact patterns
- Configs
List<Get
Har Registry Config> - Configuration for the registry
- Description string
- Description of the registry
- Package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- Parent
Ref string - Parent reference for the registry
- Space
Ref string - Space reference for the registry
- Identifier string
- Unique identifier of the registry
- Allowed
Patterns []string - Allowed artifact patterns
- Blocked
Patterns []string - Blocked artifact patterns
- Configs
[]Get
Har Registry Config - Configuration for the registry
- Description string
- Description of the registry
- Package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- Parent
Ref string - Parent reference for the registry
- Space
Ref string - Space reference for the registry
- identifier String
- Unique identifier of the registry
- allowed
Patterns List<String> - Allowed artifact patterns
- blocked
Patterns List<String> - Blocked artifact patterns
- configs
List<Get
Har Registry Config> - Configuration for the registry
- description String
- Description of the registry
- package
Type String - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref String - Parent reference for the registry
- space
Ref String - Space reference for the registry
- identifier string
- Unique identifier of the registry
- allowed
Patterns string[] - Allowed artifact patterns
- blocked
Patterns string[] - Blocked artifact patterns
- configs
Get
Har Registry Config[] - Configuration for the registry
- description string
- Description of the registry
- package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref string - Parent reference for the registry
- space
Ref string - Space reference for the registry
- identifier str
- Unique identifier of the registry
- allowed_
patterns Sequence[str] - Allowed artifact patterns
- blocked_
patterns Sequence[str] - Blocked artifact patterns
- configs
Sequence[Get
Har Registry Config] - Configuration for the registry
- description str
- Description of the registry
- package_
type str - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent_
ref str - Parent reference for the registry
- space_
ref str - Space reference for the registry
- identifier String
- Unique identifier of the registry
- allowed
Patterns List<String> - Allowed artifact patterns
- blocked
Patterns List<String> - Blocked artifact patterns
- configs List<Property Map>
- Configuration for the registry
- description String
- Description of the registry
- package
Type String - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref String - Parent reference for the registry
- space
Ref String - Space reference for the registry
getHarRegistry Result
The following output properties are available:
- Created
At string - Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the registry
- Url string
- URL of the registry
- Allowed
Patterns List<string> - Allowed artifact patterns
- Blocked
Patterns List<string> - Blocked artifact patterns
- Configs
List<Get
Har Registry Config> - Configuration for the registry
- Description string
- Description of the registry
- Package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- Parent
Ref string - Parent reference for the registry
- Space
Ref string - Space reference for the registry
- Created
At string - Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the registry
- Url string
- URL of the registry
- Allowed
Patterns []string - Allowed artifact patterns
- Blocked
Patterns []string - Blocked artifact patterns
- Configs
[]Get
Har Registry Config - Configuration for the registry
- Description string
- Description of the registry
- Package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- Parent
Ref string - Parent reference for the registry
- Space
Ref string - Space reference for the registry
- created
At String - Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the registry
- url String
- URL of the registry
- allowed
Patterns List<String> - Allowed artifact patterns
- blocked
Patterns List<String> - Blocked artifact patterns
- configs
List<Get
Har Registry Config> - Configuration for the registry
- description String
- Description of the registry
- package
Type String - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref String - Parent reference for the registry
- space
Ref String - Space reference for the registry
- created
At string - Creation timestamp
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the registry
- url string
- URL of the registry
- allowed
Patterns string[] - Allowed artifact patterns
- blocked
Patterns string[] - Blocked artifact patterns
- configs
Get
Har Registry Config[] - Configuration for the registry
- description string
- Description of the registry
- package
Type string - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref string - Parent reference for the registry
- space
Ref string - Space reference for the registry
- created_
at str - Creation timestamp
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the registry
- url str
- URL of the registry
- allowed_
patterns Sequence[str] - Allowed artifact patterns
- blocked_
patterns Sequence[str] - Blocked artifact patterns
- configs
Sequence[Get
Har Registry Config] - Configuration for the registry
- description str
- Description of the registry
- package_
type str - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent_
ref str - Parent reference for the registry
- space_
ref str - Space reference for the registry
- created
At String - Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the registry
- url String
- URL of the registry
- allowed
Patterns List<String> - Allowed artifact patterns
- blocked
Patterns List<String> - Blocked artifact patterns
- configs List<Property Map>
- Configuration for the registry
- description String
- Description of the registry
- package
Type String - Type of package (DOCKER, HELM, MAVEN, etc.)
- parent
Ref String - Parent reference for the registry
- space
Ref String - Space reference for the registry
Supporting Types
GetHarRegistryConfig
- Type string
- Type of registry (VIRTUAL or UPSTREAM)
- Auth
Type string - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- Auths
List<Get
Har Registry Config Auth> - Authentication configuration for UPSTREAM registry type
- Source string
- Upstream source
- Upstream
Proxies List<string> - List of upstream proxies for VIRTUAL registry type
- Url string
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
- Type string
- Type of registry (VIRTUAL or UPSTREAM)
- Auth
Type string - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- Auths
[]Get
Har Registry Config Auth - Authentication configuration for UPSTREAM registry type
- Source string
- Upstream source
- Upstream
Proxies []string - List of upstream proxies for VIRTUAL registry type
- Url string
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
- type String
- Type of registry (VIRTUAL or UPSTREAM)
- auth
Type String - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- auths
List<Get
Har Registry Config Auth> - Authentication configuration for UPSTREAM registry type
- source String
- Upstream source
- upstream
Proxies List<String> - List of upstream proxies for VIRTUAL registry type
- url String
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
- type string
- Type of registry (VIRTUAL or UPSTREAM)
- auth
Type string - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- auths
Get
Har Registry Config Auth[] - Authentication configuration for UPSTREAM registry type
- source string
- Upstream source
- upstream
Proxies string[] - List of upstream proxies for VIRTUAL registry type
- url string
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
- type str
- Type of registry (VIRTUAL or UPSTREAM)
- auth_
type str - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- auths
Sequence[Get
Har Registry Config Auth] - Authentication configuration for UPSTREAM registry type
- source str
- Upstream source
- upstream_
proxies Sequence[str] - List of upstream proxies for VIRTUAL registry type
- url str
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
- type String
- Type of registry (VIRTUAL or UPSTREAM)
- auth
Type String - Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
- auths List<Property Map>
- Authentication configuration for UPSTREAM registry type
- source String
- Upstream source
- upstream
Proxies List<String> - List of upstream proxies for VIRTUAL registry type
- url String
- URL of the upstream (required if type=UPSTREAM & package_type=HELM)
GetHarRegistryConfigAuth
- Auth
Type string - Type of authentication (UserPassword, Anonymous)
- Access
Key string - Access
Key stringIdentifier - Access
Key stringSecret Path - Secret
Identifier string - Secret identifier for UserPassword auth type
- Secret
Key stringIdentifier - Secret
Key stringSecret Path - Secret
Space stringPath - Secret space path for UserPassword auth type
- User
Name string - User name for UserPassword auth type
- Auth
Type string - Type of authentication (UserPassword, Anonymous)
- Access
Key string - Access
Key stringIdentifier - Access
Key stringSecret Path - Secret
Identifier string - Secret identifier for UserPassword auth type
- Secret
Key stringIdentifier - Secret
Key stringSecret Path - Secret
Space stringPath - Secret space path for UserPassword auth type
- User
Name string - User name for UserPassword auth type
- auth
Type String - Type of authentication (UserPassword, Anonymous)
- access
Key String - access
Key StringIdentifier - access
Key StringSecret Path - secret
Identifier String - Secret identifier for UserPassword auth type
- secret
Key StringIdentifier - secret
Key StringSecret Path - secret
Space StringPath - Secret space path for UserPassword auth type
- user
Name String - User name for UserPassword auth type
- auth
Type string - Type of authentication (UserPassword, Anonymous)
- access
Key string - access
Key stringIdentifier - access
Key stringSecret Path - secret
Identifier string - Secret identifier for UserPassword auth type
- secret
Key stringIdentifier - secret
Key stringSecret Path - secret
Space stringPath - Secret space path for UserPassword auth type
- user
Name string - User name for UserPassword auth type
- auth_
type str - Type of authentication (UserPassword, Anonymous)
- access_
key str - access_
key_ stridentifier - access_
key_ strsecret_ path - secret_
identifier str - Secret identifier for UserPassword auth type
- secret_
key_ stridentifier - secret_
key_ strsecret_ path - secret_
space_ strpath - Secret space path for UserPassword auth type
- user_
name str - User name for UserPassword auth type
- auth
Type String - Type of authentication (UserPassword, Anonymous)
- access
Key String - access
Key StringIdentifier - access
Key StringSecret Path - secret
Identifier String - Secret identifier for UserPassword auth type
- secret
Key StringIdentifier - secret
Key StringSecret Path - secret
Space StringPath - Secret space path for UserPassword auth type
- user
Name String - User name for UserPassword auth type
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.