artifactory v8.8.1 published on Wednesday, Apr 9, 2025 by Pulumi
artifactory.getVirtualAlpineRepository
Explore with Pulumi AI
Retrieves a virtual Alpine repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const virtual_alpine = artifactory.getVirtualAlpineRepository({
    key: "virtual-alpine",
});
import pulumi
import pulumi_artifactory as artifactory
virtual_alpine = artifactory.get_virtual_alpine_repository(key="virtual-alpine")
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.LookupVirtualAlpineRepository(ctx, &artifactory.LookupVirtualAlpineRepositoryArgs{
			Key: "virtual-alpine",
		}, 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_alpine = Artifactory.GetVirtualAlpineRepository.Invoke(new()
    {
        Key = "virtual-alpine",
    });
});
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.GetVirtualAlpineRepositoryArgs;
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-alpine = ArtifactoryFunctions.getVirtualAlpineRepository(GetVirtualAlpineRepositoryArgs.builder()
            .key("virtual-alpine")
            .build());
    }
}
variables:
  virtual-alpine:
    fn::invoke:
      function: artifactory:getVirtualAlpineRepository
      arguments:
        key: virtual-alpine
Using getVirtualAlpineRepository
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 getVirtualAlpineRepository(args: GetVirtualAlpineRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualAlpineRepositoryResult>
function getVirtualAlpineRepositoryOutput(args: GetVirtualAlpineRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualAlpineRepositoryResult>def get_virtual_alpine_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,
                                  includes_pattern: Optional[str] = None,
                                  key: Optional[str] = None,
                                  notes: Optional[str] = None,
                                  primary_keypair_ref: 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) -> GetVirtualAlpineRepositoryResult
def get_virtual_alpine_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,
                                  includes_pattern: Optional[pulumi.Input[str]] = None,
                                  key: Optional[pulumi.Input[str]] = None,
                                  notes: Optional[pulumi.Input[str]] = None,
                                  primary_keypair_ref: 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[GetVirtualAlpineRepositoryResult]func LookupVirtualAlpineRepository(ctx *Context, args *LookupVirtualAlpineRepositoryArgs, opts ...InvokeOption) (*LookupVirtualAlpineRepositoryResult, error)
func LookupVirtualAlpineRepositoryOutput(ctx *Context, args *LookupVirtualAlpineRepositoryOutputArgs, opts ...InvokeOption) LookupVirtualAlpineRepositoryResultOutput> Note: This function is named LookupVirtualAlpineRepository in the Go SDK.
public static class GetVirtualAlpineRepository 
{
    public static Task<GetVirtualAlpineRepositoryResult> InvokeAsync(GetVirtualAlpineRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualAlpineRepositoryResult> Invoke(GetVirtualAlpineRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualAlpineRepositoryResult> getVirtualAlpineRepository(GetVirtualAlpineRepositoryArgs args, InvokeOptions options)
public static Output<GetVirtualAlpineRepositoryResult> getVirtualAlpineRepository(GetVirtualAlpineRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: artifactory:index/getVirtualAlpineRepository:getVirtualAlpineRepository
  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 - Includes
Pattern string - Notes string
 - Primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - Project
Environments List<string> - Project
Key string - Repo
Layout stringRef  - Repositories List<string>
 - Retrieval
Cache intPeriod Seconds  - (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.
 - Artifactory
Requests boolCan Retrieve Remote Artifacts  - Default
Deployment stringRepo  - Description string
 - Excludes
Pattern string - Includes
Pattern string - Notes string
 - Primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - Project
Environments []string - Project
Key string - Repo
Layout stringRef  - Repositories []string
 - Retrieval
Cache intPeriod Seconds  - (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.
 - artifactory
Requests BooleanCan Retrieve Remote Artifacts  - default
Deployment StringRepo  - description String
 - excludes
Pattern String - includes
Pattern String - notes String
 - primary
Keypair StringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Environments List<String> - project
Key String - repo
Layout StringRef  - repositories List<String>
 - retrieval
Cache IntegerPeriod Seconds  - (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.
 - artifactory
Requests booleanCan Retrieve Remote Artifacts  - default
Deployment stringRepo  - description string
 - excludes
Pattern string - includes
Pattern string - notes string
 - primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Environments string[] - project
Key string - repo
Layout stringRef  - repositories string[]
 - retrieval
Cache numberPeriod Seconds  - (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_ boolcan_ retrieve_ remote_ artifacts  - default_
deployment_ strrepo  - description str
 - excludes_
pattern str - includes_
pattern str - notes str
 - primary_
keypair_ strref  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project_
environments Sequence[str] - project_
key str - repo_
layout_ strref  - repositories Sequence[str]
 - retrieval_
cache_ intperiod_ seconds  - (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.
 - artifactory
Requests BooleanCan Retrieve Remote Artifacts  - default
Deployment StringRepo  - description String
 - excludes
Pattern String - includes
Pattern String - notes String
 - primary
Keypair StringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Environments List<String> - project
Key String - repo
Layout StringRef  - repositories List<String>
 - retrieval
Cache NumberPeriod Seconds  - (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. 
getVirtualAlpineRepository 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 - Includes
Pattern string - Notes string
 - Primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - Project
Key string - Repo
Layout stringRef  - Repositories List<string>
 - Retrieval
Cache intPeriod Seconds  - (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
 - Package
Type string - Project
Environments []string - Artifactory
Requests boolCan Retrieve Remote Artifacts  - Default
Deployment stringRepo  - Description string
 - Excludes
Pattern string - Includes
Pattern string - Notes string
 - Primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - Project
Key string - Repo
Layout stringRef  - Repositories []string
 - Retrieval
Cache intPeriod Seconds  - (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
 - package
Type String - project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts  - default
Deployment StringRepo  - description String
 - excludes
Pattern String - includes
Pattern String - notes String
 - primary
Keypair StringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Key String - repo
Layout StringRef  - repositories List<String>
 - retrieval
Cache IntegerPeriod Seconds  - (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
 - package
Type string - project
Environments string[] - artifactory
Requests booleanCan Retrieve Remote Artifacts  - default
Deployment stringRepo  - description string
 - excludes
Pattern string - includes
Pattern string - notes string
 - primary
Keypair stringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Key string - repo
Layout stringRef  - repositories string[]
 - retrieval
Cache numberPeriod Seconds  - (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_ boolcan_ retrieve_ remote_ artifacts  - default_
deployment_ strrepo  - description str
 - excludes_
pattern str - includes_
pattern str - notes str
 - primary_
keypair_ strref  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project_
key str - repo_
layout_ strref  - repositories Sequence[str]
 - retrieval_
cache_ intperiod_ seconds  - (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
 - package
Type String - project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts  - default
Deployment StringRepo  - description String
 - excludes
Pattern String - includes
Pattern String - notes String
 - primary
Keypair StringRef  - (Optional) Primary keypair used to sign artifacts. Default value is empty.
 - project
Key String - repo
Layout StringRef  - repositories List<String>
 - retrieval
Cache NumberPeriod Seconds  - (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 
artifactoryTerraform Provider.