1. Packages
  2. Artifactory Provider
  3. API Docs
  4. getLocalHexRepository
artifactory v8.10.1 published on Saturday, Dec 20, 2025 by Pulumi
artifactory logo
artifactory v8.10.1 published on Saturday, Dec 20, 2025 by Pulumi

    Retrieves a local Hex repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const local_test_hex_repo = artifactory.getLocalHexRepository({
        key: "local-test-hex-repo",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    local_test_hex_repo = artifactory.get_local_hex_repository(key="local-test-hex-repo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifactory.LookupLocalHexRepository(ctx, &artifactory.LookupLocalHexRepositoryArgs{
    			Key: "local-test-hex-repo",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Artifactory = Pulumi.Artifactory;
    
    return await Deployment.RunAsync(() => 
    {
        var local_test_hex_repo = Artifactory.GetLocalHexRepository.Invoke(new()
        {
            Key = "local-test-hex-repo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.ArtifactoryFunctions;
    import com.pulumi.artifactory.inputs.GetLocalHexRepositoryArgs;
    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 local-test-hex-repo = ArtifactoryFunctions.getLocalHexRepository(GetLocalHexRepositoryArgs.builder()
                .key("local-test-hex-repo")
                .build());
    
        }
    }
    
    variables:
      local-test-hex-repo:
        fn::invoke:
          function: artifactory:getLocalHexRepository
          arguments:
            key: local-test-hex-repo
    

    Using getLocalHexRepository

    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 getLocalHexRepository(args: GetLocalHexRepositoryArgs, opts?: InvokeOptions): Promise<GetLocalHexRepositoryResult>
    function getLocalHexRepositoryOutput(args: GetLocalHexRepositoryOutputArgs, opts?: InvokeOptions): Output<GetLocalHexRepositoryResult>
    def get_local_hex_repository(key: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetLocalHexRepositoryResult
    def get_local_hex_repository_output(key: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetLocalHexRepositoryResult]
    func LookupLocalHexRepository(ctx *Context, args *LookupLocalHexRepositoryArgs, opts ...InvokeOption) (*LookupLocalHexRepositoryResult, error)
    func LookupLocalHexRepositoryOutput(ctx *Context, args *LookupLocalHexRepositoryOutputArgs, opts ...InvokeOption) LookupLocalHexRepositoryResultOutput

    > Note: This function is named LookupLocalHexRepository in the Go SDK.

    public static class GetLocalHexRepository 
    {
        public static Task<GetLocalHexRepositoryResult> InvokeAsync(GetLocalHexRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetLocalHexRepositoryResult> Invoke(GetLocalHexRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocalHexRepositoryResult> getLocalHexRepository(GetLocalHexRepositoryArgs args, InvokeOptions options)
    public static Output<GetLocalHexRepositoryResult> getLocalHexRepository(GetLocalHexRepositoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: artifactory:index/getLocalHexRepository:getLocalHexRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    the identity key of the repo.
    Key string
    the identity key of the repo.
    key String
    the identity key of the repo.
    key string
    the identity key of the repo.
    key str
    the identity key of the repo.
    key String
    the identity key of the repo.

    getLocalHexRepository Result

    The following output properties are available:

    ArchiveBrowsingEnabled bool
    BlackedOut bool
    CdnRedirect bool
    Description string
    DownloadDirect bool
    ExcludesPattern string
    HexPrimaryKeypairRef string
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludesPattern string
    Key string
    Notes string
    PackageType string
    PriorityResolution bool
    ProjectEnvironments List<string>
    ProjectKey string
    PropertySets List<string>
    RepoLayoutRef string
    XrayIndex bool
    ArchiveBrowsingEnabled bool
    BlackedOut bool
    CdnRedirect bool
    Description string
    DownloadDirect bool
    ExcludesPattern string
    HexPrimaryKeypairRef string
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludesPattern string
    Key string
    Notes string
    PackageType string
    PriorityResolution bool
    ProjectEnvironments []string
    ProjectKey string
    PropertySets []string
    RepoLayoutRef string
    XrayIndex bool
    archiveBrowsingEnabled Boolean
    blackedOut Boolean
    cdnRedirect Boolean
    description String
    downloadDirect Boolean
    excludesPattern String
    hexPrimaryKeypairRef String
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    id String
    The provider-assigned unique ID for this managed resource.
    includesPattern String
    key String
    notes String
    packageType String
    priorityResolution Boolean
    projectEnvironments List<String>
    projectKey String
    propertySets List<String>
    repoLayoutRef String
    xrayIndex Boolean
    archiveBrowsingEnabled boolean
    blackedOut boolean
    cdnRedirect boolean
    description string
    downloadDirect boolean
    excludesPattern string
    hexPrimaryKeypairRef string
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    id string
    The provider-assigned unique ID for this managed resource.
    includesPattern string
    key string
    notes string
    packageType string
    priorityResolution boolean
    projectEnvironments string[]
    projectKey string
    propertySets string[]
    repoLayoutRef string
    xrayIndex boolean
    archive_browsing_enabled bool
    blacked_out bool
    cdn_redirect bool
    description str
    download_direct bool
    excludes_pattern str
    hex_primary_keypair_ref str
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    id str
    The provider-assigned unique ID for this managed resource.
    includes_pattern str
    key str
    notes str
    package_type str
    priority_resolution bool
    project_environments Sequence[str]
    project_key str
    property_sets Sequence[str]
    repo_layout_ref str
    xray_index bool
    archiveBrowsingEnabled Boolean
    blackedOut Boolean
    cdnRedirect Boolean
    description String
    downloadDirect Boolean
    excludesPattern String
    hexPrimaryKeypairRef String
    Select the RSA key pair to sign and encrypt content for secure communication between Artifactory and the Mix client.
    id String
    The provider-assigned unique ID for this managed resource.
    includesPattern String
    key String
    notes String
    packageType String
    priorityResolution Boolean
    projectEnvironments List<String>
    projectKey String
    propertySets List<String>
    repoLayoutRef String
    xrayIndex Boolean

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    artifactory v8.10.1 published on Saturday, Dec 20, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate