Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi
harness.platform.getHarRegistry
Explore with Pulumi AI
Data Source for retrieving a Harness Artifact registry
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:   "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 dictionaryThe following arguments are supported:
- Identifier string
- Unique identifier of the resource.
- SpaceRef string
- Reference of the space.
- AllowedPatterns List<string>
- BlockedPatterns List<string>
- Configs
List<GetHar Registry Config> 
- Description string
- PackageType string
- ParentRef string
- Identifier string
- Unique identifier of the resource.
- SpaceRef string
- Reference of the space.
- AllowedPatterns []string
- BlockedPatterns []string
- Configs
[]GetHar Registry Config 
- Description string
- PackageType string
- ParentRef string
- identifier String
- Unique identifier of the resource.
- spaceRef String
- Reference of the space.
- allowedPatterns List<String>
- blockedPatterns List<String>
- configs
List<GetHar Registry Config> 
- description String
- packageType String
- parentRef String
- identifier string
- Unique identifier of the resource.
- spaceRef string
- Reference of the space.
- allowedPatterns string[]
- blockedPatterns string[]
- configs
GetHar Registry Config[] 
- description string
- packageType string
- parentRef string
- identifier str
- Unique identifier of the resource.
- space_ref str
- Reference of the space.
- allowed_patterns Sequence[str]
- blocked_patterns Sequence[str]
- configs
Sequence[GetHar Registry Config] 
- description str
- package_type str
- parent_ref str
- identifier String
- Unique identifier of the resource.
- spaceRef String
- Reference of the space.
- allowedPatterns List<String>
- blockedPatterns List<String>
- configs List<Property Map>
- description String
- packageType String
- parentRef String
getHarRegistry Result
The following output properties are available:
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- SpaceRef string
- Reference of the space.
- Url string
- AllowedPatterns List<string>
- BlockedPatterns List<string>
- Configs
List<GetHar Registry Config> 
- Description string
- PackageType string
- ParentRef string
- CreatedAt string
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- SpaceRef string
- Reference of the space.
- Url string
- AllowedPatterns []string
- BlockedPatterns []string
- Configs
[]GetHar Registry Config 
- Description string
- PackageType string
- ParentRef string
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- spaceRef String
- Reference of the space.
- url String
- allowedPatterns List<String>
- blockedPatterns List<String>
- configs
List<GetHar Registry Config> 
- description String
- packageType String
- parentRef String
- createdAt string
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- spaceRef string
- Reference of the space.
- url string
- allowedPatterns string[]
- blockedPatterns string[]
- configs
GetHar Registry Config[] 
- description string
- packageType string
- parentRef string
- created_at str
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource.
- space_ref str
- Reference of the space.
- url str
- allowed_patterns Sequence[str]
- blocked_patterns Sequence[str]
- configs
Sequence[GetHar Registry Config] 
- description str
- package_type str
- parent_ref str
- createdAt String
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- spaceRef String
- Reference of the space.
- url String
- allowedPatterns List<String>
- blockedPatterns List<String>
- configs List<Property Map>
- description String
- packageType String
- parentRef String
Supporting Types
GetHarRegistryConfig   
- Type string
- Type of registry (VIRTUAL, UPSTREAM)
- Auths
List<GetHar Registry Config Auth> 
- Authentication configuration for UPSTREAM type
- Source string
- Source of the upstream
- Url string
- URL of the upstream
- Type string
- Type of registry (VIRTUAL, UPSTREAM)
- Auths
[]GetHar Registry Config Auth 
- Authentication configuration for UPSTREAM type
- Source string
- Source of the upstream
- Url string
- URL of the upstream
- type String
- Type of registry (VIRTUAL, UPSTREAM)
- auths
List<GetHar Registry Config Auth> 
- Authentication configuration for UPSTREAM type
- source String
- Source of the upstream
- url String
- URL of the upstream
- type string
- Type of registry (VIRTUAL, UPSTREAM)
- auths
GetHar Registry Config Auth[] 
- Authentication configuration for UPSTREAM type
- source string
- Source of the upstream
- url string
- URL of the upstream
- type str
- Type of registry (VIRTUAL, UPSTREAM)
- auths
Sequence[GetHar Registry Config Auth] 
- Authentication configuration for UPSTREAM type
- source str
- Source of the upstream
- url str
- URL of the upstream
- type String
- Type of registry (VIRTUAL, UPSTREAM)
- auths List<Property Map>
- Authentication configuration for UPSTREAM type
- source String
- Source of the upstream
- url String
- URL of the upstream
GetHarRegistryConfigAuth    
- AuthType string
- Type of authentication (UserPassword, Anonymous)
- UserPassword GetHar Registry Config Auth User Password 
- User password authentication details
- AuthType string
- Type of authentication (UserPassword, Anonymous)
- UserPassword GetHar Registry Config Auth User Password 
- User password authentication details
- authType String
- Type of authentication (UserPassword, Anonymous)
- userPassword GetHar Registry Config Auth User Password 
- User password authentication details
- authType string
- Type of authentication (UserPassword, Anonymous)
- userPassword GetHar Registry Config Auth User Password 
- User password authentication details
- auth_type str
- Type of authentication (UserPassword, Anonymous)
- user_password GetHar Registry Config Auth User Password 
- User password authentication details
- authType String
- Type of authentication (UserPassword, Anonymous)
- userPassword Property Map
- User password authentication details
GetHarRegistryConfigAuthUserPassword      
- UserName string
- User name
- SecretIdentifier string
- Secret identifier
- SecretSpace intId 
- Secret space ID
- SecretSpace stringPath 
- Secret space path
- UserName string
- User name
- SecretIdentifier string
- Secret identifier
- SecretSpace intId 
- Secret space ID
- SecretSpace stringPath 
- Secret space path
- userName String
- User name
- secretIdentifier String
- Secret identifier
- secretSpace IntegerId 
- Secret space ID
- secretSpace StringPath 
- Secret space path
- userName string
- User name
- secretIdentifier string
- Secret identifier
- secretSpace numberId 
- Secret space ID
- secretSpace stringPath 
- Secret space path
- user_name str
- User name
- secret_identifier str
- Secret identifier
- secret_space_ intid 
- Secret space ID
- secret_space_ strpath 
- Secret space path
- userName String
- User name
- secretIdentifier String
- Secret identifier
- secretSpace NumberId 
- Secret space ID
- secretSpace StringPath 
- Secret space path
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
