Viewing docs for artifactory v8.10.3
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Viewing docs for artifactory v8.10.3
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Retrieves a virtual Go repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const virtual_go = artifactory.getVirtualGoRepository({
key: "virtual-go",
});
import pulumi
import pulumi_artifactory as artifactory
virtual_go = artifactory.get_virtual_go_repository(key="virtual-go")
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.GetVirtualGoRepository(ctx, &artifactory.GetVirtualGoRepositoryArgs{
Key: "virtual-go",
}, 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_go = Artifactory.GetVirtualGoRepository.Invoke(new()
{
Key = "virtual-go",
});
});
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.GetVirtualGoRepositoryArgs;
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-go = ArtifactoryFunctions.getVirtualGoRepository(GetVirtualGoRepositoryArgs.builder()
.key("virtual-go")
.build());
}
}
variables:
virtual-go:
fn::invoke:
function: artifactory:getVirtualGoRepository
arguments:
key: virtual-go
Using getVirtualGoRepository
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 getVirtualGoRepository(args: GetVirtualGoRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualGoRepositoryResult>
function getVirtualGoRepositoryOutput(args: GetVirtualGoRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualGoRepositoryResult>def get_virtual_go_repository(artifactory_requests_can_retrieve_remote_artifacts: Optional[bool] = None,
default_deployment_repo: Optional[str] = None,
description: Optional[str] = None,
excludes_pattern: Optional[str] = None,
external_dependencies_enabled: Optional[bool] = None,
external_dependencies_patterns: Optional[Sequence[str]] = None,
includes_pattern: Optional[str] = None,
key: Optional[str] = None,
notes: Optional[str] = None,
project_environments: Optional[Sequence[str]] = None,
project_key: Optional[str] = None,
repo_layout_ref: Optional[str] = None,
repositories: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualGoRepositoryResult
def get_virtual_go_repository_output(artifactory_requests_can_retrieve_remote_artifacts: Optional[pulumi.Input[bool]] = None,
default_deployment_repo: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
excludes_pattern: Optional[pulumi.Input[str]] = None,
external_dependencies_enabled: Optional[pulumi.Input[bool]] = None,
external_dependencies_patterns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
includes_pattern: Optional[pulumi.Input[str]] = None,
key: Optional[pulumi.Input[str]] = None,
notes: Optional[pulumi.Input[str]] = None,
project_environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
project_key: Optional[pulumi.Input[str]] = None,
repo_layout_ref: Optional[pulumi.Input[str]] = None,
repositories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualGoRepositoryResult]func GetVirtualGoRepository(ctx *Context, args *GetVirtualGoRepositoryArgs, opts ...InvokeOption) (*GetVirtualGoRepositoryResult, error)
func GetVirtualGoRepositoryOutput(ctx *Context, args *GetVirtualGoRepositoryOutputArgs, opts ...InvokeOption) GetVirtualGoRepositoryResultOutput> Note: This function is named GetVirtualGoRepository in the Go SDK.
public static class GetVirtualGoRepository
{
public static Task<GetVirtualGoRepositoryResult> InvokeAsync(GetVirtualGoRepositoryArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualGoRepositoryResult> Invoke(GetVirtualGoRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualGoRepositoryResult> getVirtualGoRepository(GetVirtualGoRepositoryArgs args, InvokeOptions options)
public static Output<GetVirtualGoRepositoryResult> getVirtualGoRepository(GetVirtualGoRepositoryArgs args, InvokeOptions options)
fn::invoke:
function: artifactory:index/getVirtualGoRepository:getVirtualGoRepository
arguments:
# arguments dictionaryThe following arguments are supported:
- Key string
- the identity key of the repo.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - External
Dependencies boolEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- External
Dependencies List<string>Patterns - (Optional) 'go-import' Allow List on the UI.
- Includes
Pattern string - Notes string
- Project
Environments List<string> - Project
Key string - Repo
Layout stringRef - Repositories List<string>
- Key string
- the identity key of the repo.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - External
Dependencies boolEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- External
Dependencies []stringPatterns - (Optional) 'go-import' Allow List on the UI.
- Includes
Pattern string - Notes string
- Project
Environments []string - Project
Key string - Repo
Layout stringRef - Repositories []string
- key String
- the identity key of the repo.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - external
Dependencies BooleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies List<String>Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern String - notes String
- project
Environments List<String> - project
Key String - repo
Layout StringRef - repositories List<String>
- key string
- the identity key of the repo.
- artifactory
Requests booleanCan Retrieve Remote Artifacts - default
Deployment stringRepo - description string
- excludes
Pattern string - external
Dependencies booleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies string[]Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern string - notes string
- project
Environments string[] - project
Key string - repo
Layout stringRef - repositories string[]
- key str
- the identity key of the repo.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - default_
deployment_ strrepo - description str
- excludes_
pattern str - external_
dependencies_ boolenabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external_
dependencies_ Sequence[str]patterns - (Optional) 'go-import' Allow List on the UI.
- includes_
pattern str - notes str
- project_
environments Sequence[str] - project_
key str - repo_
layout_ strref - repositories Sequence[str]
- key String
- the identity key of the repo.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - external
Dependencies BooleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies List<String>Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern String - notes String
- project
Environments List<String> - project
Key String - repo
Layout StringRef - repositories List<String>
getVirtualGoRepository Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Package
Type string - Project
Environments List<string> - Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - External
Dependencies boolEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- External
Dependencies List<string>Patterns - (Optional) 'go-import' Allow List on the UI.
- Includes
Pattern string - Notes string
- Project
Key string - Repo
Layout stringRef - Repositories List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Package
Type string - Project
Environments []string - Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - External
Dependencies boolEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- External
Dependencies []stringPatterns - (Optional) 'go-import' Allow List on the UI.
- Includes
Pattern string - Notes string
- Project
Key string - Repo
Layout stringRef - Repositories []string
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- package
Type String - project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - external
Dependencies BooleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies List<String>Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern String - notes String
- project
Key String - repo
Layout StringRef - repositories List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- package
Type string - project
Environments string[] - artifactory
Requests booleanCan Retrieve Remote Artifacts - default
Deployment stringRepo - description string
- excludes
Pattern string - external
Dependencies booleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies string[]Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern string - notes string
- project
Key string - repo
Layout stringRef - repositories string[]
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- package_
type str - project_
environments Sequence[str] - artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - default_
deployment_ strrepo - description str
- excludes_
pattern str - external_
dependencies_ boolenabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external_
dependencies_ Sequence[str]patterns - (Optional) 'go-import' Allow List on the UI.
- includes_
pattern str - notes str
- project_
key str - repo_
layout_ strref - repositories Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- package
Type String - project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - external
Dependencies BooleanEnabled - (Optional) Shorthand for "Enable 'go-import' Meta Tags" on the UI. This must be set to true in order to use the allow list. When checked (default), Artifactory will automatically follow remote VCS roots in 'go-import' meta tags to download remote modules.
- external
Dependencies List<String>Patterns - (Optional) 'go-import' Allow List on the UI.
- includes
Pattern String - notes String
- project
Key String - repo
Layout StringRef - repositories List<String>
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactoryTerraform Provider.
Viewing docs for artifactory v8.10.3
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
