1. Packages
  2. Artifactory Provider
  3. API Docs
  4. getVirtualConanRepository
artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi

artifactory.getVirtualConanRepository

Explore with Pulumi AI

artifactory logo
artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi

    Retrieves a virtual Conan repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const virtual-conan = artifactory.getVirtualConanRepository({
        key: "virtual-conan",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    virtual_conan = artifactory.get_virtual_conan_repository(key="virtual-conan")
    
    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.LookupVirtualConanRepository(ctx, &artifactory.LookupVirtualConanRepositoryArgs{
    			Key: "virtual-conan",
    		}, 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_conan = Artifactory.GetVirtualConanRepository.Invoke(new()
        {
            Key = "virtual-conan",
        });
    
    });
    
    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.GetVirtualConanRepositoryArgs;
    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-conan = ArtifactoryFunctions.getVirtualConanRepository(GetVirtualConanRepositoryArgs.builder()
                .key("virtual-conan")
                .build());
    
        }
    }
    
    variables:
      virtual-conan:
        fn::invoke:
          Function: artifactory:getVirtualConanRepository
          Arguments:
            key: virtual-conan
    

    Using getVirtualConanRepository

    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 getVirtualConanRepository(args: GetVirtualConanRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualConanRepositoryResult>
    function getVirtualConanRepositoryOutput(args: GetVirtualConanRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualConanRepositoryResult>
    def get_virtual_conan_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_conan_authentication: Optional[bool] = 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,
                                     retrieval_cache_period_seconds: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetVirtualConanRepositoryResult
    def get_virtual_conan_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_conan_authentication: Optional[pulumi.Input[bool]] = 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,
                                     retrieval_cache_period_seconds: Optional[pulumi.Input[int]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetVirtualConanRepositoryResult]
    func LookupVirtualConanRepository(ctx *Context, args *LookupVirtualConanRepositoryArgs, opts ...InvokeOption) (*LookupVirtualConanRepositoryResult, error)
    func LookupVirtualConanRepositoryOutput(ctx *Context, args *LookupVirtualConanRepositoryOutputArgs, opts ...InvokeOption) LookupVirtualConanRepositoryResultOutput

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

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

    The following arguments are supported:

    Key string
    the identity key of the repo.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceConanAuthentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    IncludesPattern string
    Notes string
    ProjectEnvironments List<string>
    ProjectKey string
    RepoLayoutRef string
    Repositories List<string>
    RetrievalCachePeriodSeconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    Key string
    the identity key of the repo.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceConanAuthentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    IncludesPattern string
    Notes string
    ProjectEnvironments []string
    ProjectKey string
    RepoLayoutRef string
    Repositories []string
    RetrievalCachePeriodSeconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    key String
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceConanAuthentication Boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern String
    notes String
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String
    repositories List<String>
    retrievalCachePeriodSeconds Integer
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    key string
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    defaultDeploymentRepo string
    description string
    excludesPattern string
    forceConanAuthentication boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern string
    notes string
    projectEnvironments string[]
    projectKey string
    repoLayoutRef string
    repositories string[]
    retrievalCachePeriodSeconds number
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    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_conan_authentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    includes_pattern str
    notes str
    project_environments Sequence[str]
    project_key str
    repo_layout_ref str
    repositories Sequence[str]
    retrieval_cache_period_seconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    key String
    the identity key of the repo.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceConanAuthentication Boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern String
    notes String
    projectEnvironments List<String>
    projectKey String
    repoLayoutRef String
    repositories List<String>
    retrievalCachePeriodSeconds Number
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.

    getVirtualConanRepository Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    PackageType string
    ProjectEnvironments List<string>
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceConanAuthentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    IncludesPattern string
    Notes string
    ProjectKey string
    RepoLayoutRef string
    Repositories List<string>
    RetrievalCachePeriodSeconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    PackageType string
    ProjectEnvironments []string
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    DefaultDeploymentRepo string
    Description string
    ExcludesPattern string
    ForceConanAuthentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    IncludesPattern string
    Notes string
    ProjectKey string
    RepoLayoutRef string
    Repositories []string
    RetrievalCachePeriodSeconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    packageType String
    projectEnvironments List<String>
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceConanAuthentication Boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern String
    notes String
    projectKey String
    repoLayoutRef String
    repositories List<String>
    retrievalCachePeriodSeconds Integer
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    packageType string
    projectEnvironments string[]
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    defaultDeploymentRepo string
    description string
    excludesPattern string
    forceConanAuthentication boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern string
    notes string
    projectKey string
    repoLayoutRef string
    repositories string[]
    retrievalCachePeriodSeconds number
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    package_type str
    project_environments Sequence[str]
    artifactory_requests_can_retrieve_remote_artifacts bool
    default_deployment_repo str
    description str
    excludes_pattern str
    force_conan_authentication bool
    Force basic authentication credentials in order to use this repository. Default is false.
    includes_pattern str
    notes str
    project_key str
    repo_layout_ref str
    repositories Sequence[str]
    retrieval_cache_period_seconds int
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    packageType String
    projectEnvironments List<String>
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    defaultDeploymentRepo String
    description String
    excludesPattern String
    forceConanAuthentication Boolean
    Force basic authentication credentials in order to use this repository. Default is false.
    includesPattern String
    notes String
    projectKey String
    repoLayoutRef String
    repositories List<String>
    retrievalCachePeriodSeconds Number
    (Optional, Default: 7200) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.

    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.1.0 published on Saturday, Sep 28, 2024 by Pulumi