1. Packages
  2. Artifactory Provider
  3. API Docs
  4. getVirtualHexRepository
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 virtual Hex repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const virtual_hex = artifactory.getVirtualHexRepository({
        key: "virtual-hex",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    virtual_hex = artifactory.get_virtual_hex_repository(key="virtual-hex")
    
    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.LookupVirtualHexRepository(ctx, &artifactory.LookupVirtualHexRepositoryArgs{
    			Key: "virtual-hex",
    		}, 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 virtual_hex = Artifactory.GetVirtualHexRepository.Invoke(new()
        {
            Key = "virtual-hex",
        });
    
    });
    
    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.GetVirtualHexRepositoryArgs;
    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 virtual-hex = ArtifactoryFunctions.getVirtualHexRepository(GetVirtualHexRepositoryArgs.builder()
                .key("virtual-hex")
                .build());
    
        }
    }
    
    variables:
      virtual-hex:
        fn::invoke:
          function: artifactory:getVirtualHexRepository
          arguments:
            key: virtual-hex
    

    Using getVirtualHexRepository

    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 getVirtualHexRepository(args: GetVirtualHexRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualHexRepositoryResult>
    function getVirtualHexRepositoryOutput(args: GetVirtualHexRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualHexRepositoryResult>
    def get_virtual_hex_repository(key: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetVirtualHexRepositoryResult
    def get_virtual_hex_repository_output(key: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetVirtualHexRepositoryResult]
    func LookupVirtualHexRepository(ctx *Context, args *LookupVirtualHexRepositoryArgs, opts ...InvokeOption) (*LookupVirtualHexRepositoryResult, error)
    func LookupVirtualHexRepositoryOutput(ctx *Context, args *LookupVirtualHexRepositoryOutputArgs, opts ...InvokeOption) LookupVirtualHexRepositoryResultOutput

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

    public static class GetVirtualHexRepository 
    {
        public static Task<GetVirtualHexRepositoryResult> InvokeAsync(GetVirtualHexRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualHexRepositoryResult> Invoke(GetVirtualHexRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualHexRepositoryResult> getVirtualHexRepository(GetVirtualHexRepositoryArgs args, InvokeOptions options)
    public static Output<GetVirtualHexRepositoryResult> getVirtualHexRepository(GetVirtualHexRepositoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: artifactory:index/getVirtualHexRepository:getVirtualHexRepository
      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.

    getVirtualHexRepository Result

    The following output properties are available:

    Description string
    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
    ProjectEnvironments List<string>
    ProjectKey string
    RepoLayoutRef string
    Description string
    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
    ProjectEnvironments []string
    ProjectKey string
    RepoLayoutRef string
    description String
    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
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String
    description string
    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
    projectEnvironments string[]
    projectKey string
    repoLayoutRef string
    description str
    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
    project_environments Sequence[str]
    project_key str
    repo_layout_ref str
    description String
    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
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String

    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