1. Packages
  2. Artifactory
  3. API Docs
  4. getVirtualGradleRepository
artifactory v6.8.4 published on Thursday, Jun 6, 2024 by Pulumi

artifactory.getVirtualGradleRepository

Explore with Pulumi AI

artifactory logo
artifactory v6.8.4 published on Thursday, Jun 6, 2024 by Pulumi

    Retrieves a virtual Gradle repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const virtual-gradle = artifactory.getVirtualGradleRepository({
        key: "virtual-gradle",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    virtual_gradle = artifactory.get_virtual_gradle_repository(key="virtual-gradle")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v6/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifactory.LookupVirtualGradleRepository(ctx, &artifactory.LookupVirtualGradleRepositoryArgs{
    			Key: "virtual-gradle",
    		}, 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_gradle = Artifactory.GetVirtualGradleRepository.Invoke(new()
        {
            Key = "virtual-gradle",
        });
    
    });
    
    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.GetVirtualGradleRepositoryArgs;
    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-gradle = ArtifactoryFunctions.getVirtualGradleRepository(GetVirtualGradleRepositoryArgs.builder()
                .key("virtual-gradle")
                .build());
    
        }
    }
    
    variables:
      virtual-gradle:
        fn::invoke:
          Function: artifactory:getVirtualGradleRepository
          Arguments:
            key: virtual-gradle
    

    Using getVirtualGradleRepository

    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 getVirtualGradleRepository(args: GetVirtualGradleRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualGradleRepositoryResult>
    function getVirtualGradleRepositoryOutput(args: GetVirtualGradleRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualGradleRepositoryResult>
    def get_virtual_gradle_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,
                                      force_maven_authentication: Optional[bool] = None,
                                      includes_pattern: Optional[str] = None,
                                      key: Optional[str] = None,
                                      key_pair: Optional[str] = None,
                                      notes: Optional[str] = None,
                                      pom_repository_references_cleanup_policy: 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) -> GetVirtualGradleRepositoryResult
    def get_virtual_gradle_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,
                                      force_maven_authentication: Optional[pulumi.Input[bool]] = None,
                                      includes_pattern: Optional[pulumi.Input[str]] = None,
                                      key: Optional[pulumi.Input[str]] = None,
                                      key_pair: Optional[pulumi.Input[str]] = None,
                                      notes: Optional[pulumi.Input[str]] = None,
                                      pom_repository_references_cleanup_policy: 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[GetVirtualGradleRepositoryResult]
    func LookupVirtualGradleRepository(ctx *Context, args *LookupVirtualGradleRepositoryArgs, opts ...InvokeOption) (*LookupVirtualGradleRepositoryResult, error)
    func LookupVirtualGradleRepositoryOutput(ctx *Context, args *LookupVirtualGradleRepositoryOutputArgs, opts ...InvokeOption) LookupVirtualGradleRepositoryResultOutput

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

    public static class GetVirtualGradleRepository 
    {
        public static Task<GetVirtualGradleRepositoryResult> InvokeAsync(GetVirtualGradleRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualGradleRepositoryResult> Invoke(GetVirtualGradleRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualGradleRepositoryResult> getVirtualGradleRepository(GetVirtualGradleRepositoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: artifactory:index/getVirtualGradleRepository:getVirtualGradleRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    the identity key of the repo.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceMavenAuthentication bool
    IncludesPattern string
    KeyPair string
    (Optional) The keypair used to sign artifacts.
    Notes string
    PomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    ProjectEnvironments List<string>
    ProjectKey string
    RepoLayoutRef string
    Repositories List<string>
    Key string
    the identity key of the repo.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceMavenAuthentication bool
    IncludesPattern string
    KeyPair string
    (Optional) The keypair used to sign artifacts.
    Notes string
    PomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    ProjectEnvironments []string
    ProjectKey string
    RepoLayoutRef string
    Repositories []string
    key String
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceMavenAuthentication Boolean
    includesPattern String
    keyPair String
    (Optional) The keypair used to sign artifacts.
    notes String
    pomRepositoryReferencesCleanupPolicy String
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String
    repositories List<String>
    key string
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    defaultDeploymentRepo string
    description string
    excludesPattern string
    forceMavenAuthentication boolean
    includesPattern string
    keyPair string
    (Optional) The keypair used to sign artifacts.
    notes string
    pomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments string[]
    projectKey string
    repoLayoutRef string
    repositories string[]
    key str
    the identity key of the repo.
    artifactory_requests_can_retrieve_remote_artifacts bool
    default_deployment_repo str
    description str
    excludes_pattern str
    force_maven_authentication bool
    includes_pattern str
    key_pair str
    (Optional) The keypair used to sign artifacts.
    notes str
    pom_repository_references_cleanup_policy str
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    project_environments Sequence[str]
    project_key str
    repo_layout_ref str
    repositories Sequence[str]
    key String
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceMavenAuthentication Boolean
    includesPattern String
    keyPair String
    (Optional) The keypair used to sign artifacts.
    notes String
    pomRepositoryReferencesCleanupPolicy String
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String
    repositories List<String>

    getVirtualGradleRepository Result

    The following output properties are available:

    ForceMavenAuthentication bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    PackageType string
    PomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    ProjectEnvironments List<string>
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    IncludesPattern string
    KeyPair string
    (Optional) The keypair used to sign artifacts.
    Notes string
    ProjectKey string
    RepoLayoutRef string
    Repositories List<string>
    ForceMavenAuthentication bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    PackageType string
    PomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    ProjectEnvironments []string
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    IncludesPattern string
    KeyPair string
    (Optional) The keypair used to sign artifacts.
    Notes string
    ProjectKey string
    RepoLayoutRef string
    Repositories []string
    forceMavenAuthentication Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    packageType String
    pomRepositoryReferencesCleanupPolicy String
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments List<String>
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    includesPattern String
    keyPair String
    (Optional) The keypair used to sign artifacts.
    notes String
    projectKey String
    repoLayoutRef String
    repositories List<String>
    forceMavenAuthentication boolean
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    packageType string
    pomRepositoryReferencesCleanupPolicy string
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments string[]
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    defaultDeploymentRepo string
    description string
    excludesPattern string
    includesPattern string
    keyPair string
    (Optional) The keypair used to sign artifacts.
    notes string
    projectKey string
    repoLayoutRef string
    repositories string[]
    force_maven_authentication bool
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    package_type str
    pom_repository_references_cleanup_policy str
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    project_environments Sequence[str]
    artifactory_requests_can_retrieve_remote_artifacts bool
    default_deployment_repo str
    description str
    excludes_pattern str
    includes_pattern str
    key_pair str
    (Optional) The keypair used to sign artifacts.
    notes str
    project_key str
    repo_layout_ref str
    repositories Sequence[str]
    forceMavenAuthentication Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    packageType String
    pomRepositoryReferencesCleanupPolicy String
    (Optional)

    • (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
    • (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
    • (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
    projectEnvironments List<String>
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    includesPattern String
    keyPair String
    (Optional) The keypair used to sign artifacts.
    notes String
    projectKey String
    repoLayoutRef String
    repositories List<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 v6.8.4 published on Thursday, Jun 6, 2024 by Pulumi