1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getHarRegistry
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.platform.getHarRegistry

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    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
    AllowedPatterns List<string>
    Allowed artifact patterns
    BlockedPatterns List<string>
    Blocked artifact patterns
    Configs List<GetHarRegistryConfig>
    Configuration for the registry
    Description string
    Description of the registry
    PackageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    ParentRef string
    Parent reference for the registry
    SpaceRef string
    Space reference for the registry
    Identifier string
    Unique identifier of the registry
    AllowedPatterns []string
    Allowed artifact patterns
    BlockedPatterns []string
    Blocked artifact patterns
    Configs []GetHarRegistryConfig
    Configuration for the registry
    Description string
    Description of the registry
    PackageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    ParentRef string
    Parent reference for the registry
    SpaceRef string
    Space reference for the registry
    identifier String
    Unique identifier of the registry
    allowedPatterns List<String>
    Allowed artifact patterns
    blockedPatterns List<String>
    Blocked artifact patterns
    configs List<GetHarRegistryConfig>
    Configuration for the registry
    description String
    Description of the registry
    packageType String
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef String
    Parent reference for the registry
    spaceRef String
    Space reference for the registry
    identifier string
    Unique identifier of the registry
    allowedPatterns string[]
    Allowed artifact patterns
    blockedPatterns string[]
    Blocked artifact patterns
    configs GetHarRegistryConfig[]
    Configuration for the registry
    description string
    Description of the registry
    packageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef string
    Parent reference for the registry
    spaceRef 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[GetHarRegistryConfig]
    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
    allowedPatterns List<String>
    Allowed artifact patterns
    blockedPatterns List<String>
    Blocked artifact patterns
    configs List<Property Map>
    Configuration for the registry
    description String
    Description of the registry
    packageType String
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef String
    Parent reference for the registry
    spaceRef String
    Space reference for the registry

    getHarRegistry Result

    The following output properties are available:

    CreatedAt 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
    AllowedPatterns List<string>
    Allowed artifact patterns
    BlockedPatterns List<string>
    Blocked artifact patterns
    Configs List<GetHarRegistryConfig>
    Configuration for the registry
    Description string
    Description of the registry
    PackageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    ParentRef string
    Parent reference for the registry
    SpaceRef string
    Space reference for the registry
    CreatedAt 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
    AllowedPatterns []string
    Allowed artifact patterns
    BlockedPatterns []string
    Blocked artifact patterns
    Configs []GetHarRegistryConfig
    Configuration for the registry
    Description string
    Description of the registry
    PackageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    ParentRef string
    Parent reference for the registry
    SpaceRef string
    Space reference for the registry
    createdAt 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
    allowedPatterns List<String>
    Allowed artifact patterns
    blockedPatterns List<String>
    Blocked artifact patterns
    configs List<GetHarRegistryConfig>
    Configuration for the registry
    description String
    Description of the registry
    packageType String
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef String
    Parent reference for the registry
    spaceRef String
    Space reference for the registry
    createdAt 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
    allowedPatterns string[]
    Allowed artifact patterns
    blockedPatterns string[]
    Blocked artifact patterns
    configs GetHarRegistryConfig[]
    Configuration for the registry
    description string
    Description of the registry
    packageType string
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef string
    Parent reference for the registry
    spaceRef 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[GetHarRegistryConfig]
    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
    createdAt 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
    allowedPatterns List<String>
    Allowed artifact patterns
    blockedPatterns List<String>
    Blocked artifact patterns
    configs List<Property Map>
    Configuration for the registry
    description String
    Description of the registry
    packageType String
    Type of package (DOCKER, HELM, MAVEN, etc.)
    parentRef String
    Parent reference for the registry
    spaceRef String
    Space reference for the registry

    Supporting Types

    GetHarRegistryConfig

    Type string
    Type of registry (VIRTUAL or UPSTREAM)
    AuthType string
    Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
    Auths List<GetHarRegistryConfigAuth>
    Authentication configuration for UPSTREAM registry type
    Source string
    Upstream source
    UpstreamProxies 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)
    AuthType string
    Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
    Auths []GetHarRegistryConfigAuth
    Authentication configuration for UPSTREAM registry type
    Source string
    Upstream source
    UpstreamProxies []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)
    authType String
    Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
    auths List<GetHarRegistryConfigAuth>
    Authentication configuration for UPSTREAM registry type
    source String
    Upstream source
    upstreamProxies 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)
    authType string
    Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
    auths GetHarRegistryConfigAuth[]
    Authentication configuration for UPSTREAM registry type
    source string
    Upstream source
    upstreamProxies 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[GetHarRegistryConfigAuth]
    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)
    authType String
    Type of authentication for UPSTREAM registry type (UserPassword, Anonymous)
    auths List<Property Map>
    Authentication configuration for UPSTREAM registry type
    source String
    Upstream source
    upstreamProxies List<String>
    List of upstream proxies for VIRTUAL registry type
    url String
    URL of the upstream (required if type=UPSTREAM & package_type=HELM)

    GetHarRegistryConfigAuth

    AuthType string
    Type of authentication (UserPassword, Anonymous)
    AccessKey string
    AccessKeyIdentifier string
    AccessKeySecretPath string
    SecretIdentifier string
    Secret identifier for UserPassword auth type
    SecretKeyIdentifier string
    SecretKeySecretPath string
    SecretSpacePath string
    Secret space path for UserPassword auth type
    UserName string
    User name for UserPassword auth type
    AuthType string
    Type of authentication (UserPassword, Anonymous)
    AccessKey string
    AccessKeyIdentifier string
    AccessKeySecretPath string
    SecretIdentifier string
    Secret identifier for UserPassword auth type
    SecretKeyIdentifier string
    SecretKeySecretPath string
    SecretSpacePath string
    Secret space path for UserPassword auth type
    UserName string
    User name for UserPassword auth type
    authType String
    Type of authentication (UserPassword, Anonymous)
    accessKey String
    accessKeyIdentifier String
    accessKeySecretPath String
    secretIdentifier String
    Secret identifier for UserPassword auth type
    secretKeyIdentifier String
    secretKeySecretPath String
    secretSpacePath String
    Secret space path for UserPassword auth type
    userName String
    User name for UserPassword auth type
    authType string
    Type of authentication (UserPassword, Anonymous)
    accessKey string
    accessKeyIdentifier string
    accessKeySecretPath string
    secretIdentifier string
    Secret identifier for UserPassword auth type
    secretKeyIdentifier string
    secretKeySecretPath string
    secretSpacePath string
    Secret space path for UserPassword auth type
    userName string
    User name for UserPassword auth type
    auth_type str
    Type of authentication (UserPassword, Anonymous)
    access_key str
    access_key_identifier str
    access_key_secret_path str
    secret_identifier str
    Secret identifier for UserPassword auth type
    secret_key_identifier str
    secret_key_secret_path str
    secret_space_path str
    Secret space path for UserPassword auth type
    user_name str
    User name for UserPassword auth type
    authType String
    Type of authentication (UserPassword, Anonymous)
    accessKey String
    accessKeyIdentifier String
    accessKeySecretPath String
    secretIdentifier String
    Secret identifier for UserPassword auth type
    secretKeyIdentifier String
    secretKeySecretPath String
    secretSpacePath String
    Secret space path for UserPassword auth type
    userName 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.
    harness logo
    Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi