1. Packages
  2. Packages
  3. Artifactory Provider
  4. API Docs
  5. getRemoteBazelRepository
Viewing docs for artifactory v8.11.5
published on Wednesday, Jul 22, 2026 by Pulumi
artifactory logo
Viewing docs for artifactory v8.11.5
published on Wednesday, Jul 22, 2026 by Pulumi

    Retrieves configuration for a remote Bazel Modules repository. See Bazel Modules Repositories.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const example = artifactory.getRemoteBazelRepository({
        key: "my-remote-bazelmodules",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    example = artifactory.get_remote_bazel_repository(key="my-remote-bazelmodules")
    
    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.GetRemoteBazelRepository(ctx, &artifactory.LookupRemoteBazelRepositoryArgs{
    			Key: "my-remote-bazelmodules",
    		}, 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 example = Artifactory.GetRemoteBazelRepository.Invoke(new()
        {
            Key = "my-remote-bazelmodules",
        });
    
    });
    
    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.GetRemoteBazelRepositoryArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = ArtifactoryFunctions.getRemoteBazelRepository(GetRemoteBazelRepositoryArgs.builder()
                .key("my-remote-bazelmodules")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: artifactory:getRemoteBazelRepository
          arguments:
            key: my-remote-bazelmodules
    
    pulumi {
      required_providers {
        artifactory = {
          source = "pulumi/artifactory"
        }
      }
    }
    
    data "artifactory_getremotebazelrepository" "example" {
      key = "my-remote-bazelmodules"
    }
    

    Using getRemoteBazelRepository

    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 getRemoteBazelRepository(args: GetRemoteBazelRepositoryArgs, opts?: InvokeOptions): Promise<GetRemoteBazelRepositoryResult>
    function getRemoteBazelRepositoryOutput(args: GetRemoteBazelRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRemoteBazelRepositoryResult>
    def get_remote_bazel_repository(key: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetRemoteBazelRepositoryResult
    def get_remote_bazel_repository_output(key: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetRemoteBazelRepositoryResult]
    func LookupRemoteBazelRepository(ctx *Context, args *LookupRemoteBazelRepositoryArgs, opts ...InvokeOption) (*LookupRemoteBazelRepositoryResult, error)
    func LookupRemoteBazelRepositoryOutput(ctx *Context, args *LookupRemoteBazelRepositoryOutputArgs, opts ...InvokeOption) LookupRemoteBazelRepositoryResultOutput

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

    public static class GetRemoteBazelRepository 
    {
        public static Task<GetRemoteBazelRepositoryResult> InvokeAsync(GetRemoteBazelRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRemoteBazelRepositoryResult> Invoke(GetRemoteBazelRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRemoteBazelRepositoryResult> getRemoteBazelRepository(GetRemoteBazelRepositoryArgs args, InvokeOptions options)
    public static Output<GetRemoteBazelRepositoryResult> getRemoteBazelRepository(GetRemoteBazelRepositoryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: artifactory:index/getRemoteBazelRepository:getRemoteBazelRepository
      arguments:
        # arguments dictionary
    data "artifactory_get_remote_bazel_repository" "name" {
        # arguments
    }

    The following arguments are supported:

    Key string
    Repository key.
    Key string
    Repository key.
    key string
    Repository key.
    key String
    Repository key.
    key string
    Repository key.
    key str
    Repository key.
    key String
    Repository key.

    getRemoteBazelRepository Result

    The following output properties are available:

    AllowAnyHostAuth bool
    AssumedOfflinePeriodSecs int
    BlockMismatchingMimeTypes bool
    BypassHeadRequests bool
    ClientTlsCertificate string
    Description string
    DisableProxy bool
    DisableUrlNormalization bool
    EnableCookieManagement bool
    ExcludesPattern string
    HardFail bool
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludesPattern string
    Key string
    ListRemoteFolderItems bool
    LocalAddress string
    MetadataRetrievalTimeoutSecs int
    MismatchingMimeTypesOverrideList string
    MissedCachePeriodSeconds int
    Notes string
    Offline bool
    PackageType string
    Password string
    ProjectEnvironments List<string>
    ProjectKey string
    Proxy string
    QueryParams string
    RemoteRepoLayoutRef string
    RepoLayoutRef string
    RetrievalCachePeriodSeconds int
    ShareConfiguration bool
    SocketTimeoutMillis int
    StoreArtifactsLocally bool
    SynchronizeProperties bool
    UnusedArtifactsCleanupPeriodHours int
    Url string
    Username string
    AllowAnyHostAuth bool
    AssumedOfflinePeriodSecs int
    BlockMismatchingMimeTypes bool
    BypassHeadRequests bool
    ClientTlsCertificate string
    Description string
    DisableProxy bool
    DisableUrlNormalization bool
    EnableCookieManagement bool
    ExcludesPattern string
    HardFail bool
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludesPattern string
    Key string
    ListRemoteFolderItems bool
    LocalAddress string
    MetadataRetrievalTimeoutSecs int
    MismatchingMimeTypesOverrideList string
    MissedCachePeriodSeconds int
    Notes string
    Offline bool
    PackageType string
    Password string
    ProjectEnvironments []string
    ProjectKey string
    Proxy string
    QueryParams string
    RemoteRepoLayoutRef string
    RepoLayoutRef string
    RetrievalCachePeriodSeconds int
    ShareConfiguration bool
    SocketTimeoutMillis int
    StoreArtifactsLocally bool
    SynchronizeProperties bool
    UnusedArtifactsCleanupPeriodHours int
    Url string
    Username string
    allow_any_host_auth bool
    assumed_offline_period_secs number
    block_mismatching_mime_types bool
    bypass_head_requests bool
    client_tls_certificate string
    description string
    disable_proxy bool
    disable_url_normalization bool
    enable_cookie_management bool
    excludes_pattern string
    hard_fail bool
    id string
    The provider-assigned unique ID for this managed resource.
    includes_pattern string
    key string
    list_remote_folder_items bool
    local_address string
    metadata_retrieval_timeout_secs number
    mismatching_mime_types_override_list string
    missed_cache_period_seconds number
    notes string
    offline bool
    package_type string
    password string
    project_environments list(string)
    project_key string
    proxy string
    query_params string
    remote_repo_layout_ref string
    repo_layout_ref string
    retrieval_cache_period_seconds number
    share_configuration bool
    socket_timeout_millis number
    store_artifacts_locally bool
    synchronize_properties bool
    unused_artifacts_cleanup_period_hours number
    url string
    username string
    allowAnyHostAuth Boolean
    assumedOfflinePeriodSecs Integer
    blockMismatchingMimeTypes Boolean
    bypassHeadRequests Boolean
    clientTlsCertificate String
    description String
    disableProxy Boolean
    disableUrlNormalization Boolean
    enableCookieManagement Boolean
    excludesPattern String
    hardFail Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    includesPattern String
    key String
    listRemoteFolderItems Boolean
    localAddress String
    metadataRetrievalTimeoutSecs Integer
    mismatchingMimeTypesOverrideList String
    missedCachePeriodSeconds Integer
    notes String
    offline Boolean
    packageType String
    password String
    projectEnvironments List<String>
    projectKey String
    proxy String
    queryParams String
    remoteRepoLayoutRef String
    repoLayoutRef String
    retrievalCachePeriodSeconds Integer
    shareConfiguration Boolean
    socketTimeoutMillis Integer
    storeArtifactsLocally Boolean
    synchronizeProperties Boolean
    unusedArtifactsCleanupPeriodHours Integer
    url String
    username String
    allowAnyHostAuth boolean
    assumedOfflinePeriodSecs number
    blockMismatchingMimeTypes boolean
    bypassHeadRequests boolean
    clientTlsCertificate string
    description string
    disableProxy boolean
    disableUrlNormalization boolean
    enableCookieManagement boolean
    excludesPattern string
    hardFail boolean
    id string
    The provider-assigned unique ID for this managed resource.
    includesPattern string
    key string
    listRemoteFolderItems boolean
    localAddress string
    metadataRetrievalTimeoutSecs number
    mismatchingMimeTypesOverrideList string
    missedCachePeriodSeconds number
    notes string
    offline boolean
    packageType string
    password string
    projectEnvironments string[]
    projectKey string
    proxy string
    queryParams string
    remoteRepoLayoutRef string
    repoLayoutRef string
    retrievalCachePeriodSeconds number
    shareConfiguration boolean
    socketTimeoutMillis number
    storeArtifactsLocally boolean
    synchronizeProperties boolean
    unusedArtifactsCleanupPeriodHours number
    url string
    username string
    allow_any_host_auth bool
    assumed_offline_period_secs int
    block_mismatching_mime_types bool
    bypass_head_requests bool
    client_tls_certificate str
    description str
    disable_proxy bool
    disable_url_normalization bool
    enable_cookie_management bool
    excludes_pattern str
    hard_fail bool
    id str
    The provider-assigned unique ID for this managed resource.
    includes_pattern str
    key str
    list_remote_folder_items bool
    local_address str
    metadata_retrieval_timeout_secs int
    mismatching_mime_types_override_list str
    missed_cache_period_seconds int
    notes str
    offline bool
    package_type str
    password str
    project_environments Sequence[str]
    project_key str
    proxy str
    query_params str
    remote_repo_layout_ref str
    repo_layout_ref str
    retrieval_cache_period_seconds int
    share_configuration bool
    socket_timeout_millis int
    store_artifacts_locally bool
    synchronize_properties bool
    unused_artifacts_cleanup_period_hours int
    url str
    username str
    allowAnyHostAuth Boolean
    assumedOfflinePeriodSecs Number
    blockMismatchingMimeTypes Boolean
    bypassHeadRequests Boolean
    clientTlsCertificate String
    description String
    disableProxy Boolean
    disableUrlNormalization Boolean
    enableCookieManagement Boolean
    excludesPattern String
    hardFail Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    includesPattern String
    key String
    listRemoteFolderItems Boolean
    localAddress String
    metadataRetrievalTimeoutSecs Number
    mismatchingMimeTypesOverrideList String
    missedCachePeriodSeconds Number
    notes String
    offline Boolean
    packageType String
    password String
    projectEnvironments List<String>
    projectKey String
    proxy String
    queryParams String
    remoteRepoLayoutRef String
    repoLayoutRef String
    retrievalCachePeriodSeconds Number
    shareConfiguration Boolean
    socketTimeoutMillis Number
    storeArtifactsLocally Boolean
    synchronizeProperties Boolean
    unusedArtifactsCleanupPeriodHours Number
    url String
    username 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
    Viewing docs for artifactory v8.11.5
    published on Wednesday, Jul 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial