1. Packages
  2. Artifactory
  3. API Docs
  4. VirtualNpmRepository
artifactory v6.4.2 published on Thursday, Mar 28, 2024 by Pulumi

artifactory.VirtualNpmRepository

Explore with Pulumi AI

artifactory logo
artifactory v6.4.2 published on Thursday, Mar 28, 2024 by Pulumi

    Creates a virtual repository resource with specific npm features. Official documentation can be found here.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const foo_npm = new artifactory.VirtualNpmRepository("foo-npm", {
        description: "A test virtual repo",
        excludesPattern: "com/google/**",
        includesPattern: "com/jfrog/**,cloud/jfrog/**",
        key: "foo-npm",
        notes: "Internal description",
        repositories: [],
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    foo_npm = artifactory.VirtualNpmRepository("foo-npm",
        description="A test virtual repo",
        excludes_pattern="com/google/**",
        includes_pattern="com/jfrog/**,cloud/jfrog/**",
        key="foo-npm",
        notes="Internal description",
        repositories=[])
    
    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.NewVirtualNpmRepository(ctx, "foo-npm", &artifactory.VirtualNpmRepositoryArgs{
    			Description:     pulumi.String("A test virtual repo"),
    			ExcludesPattern: pulumi.String("com/google/**"),
    			IncludesPattern: pulumi.String("com/jfrog/**,cloud/jfrog/**"),
    			Key:             pulumi.String("foo-npm"),
    			Notes:           pulumi.String("Internal description"),
    			Repositories:    pulumi.StringArray{},
    		})
    		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 foo_npm = new Artifactory.VirtualNpmRepository("foo-npm", new()
        {
            Description = "A test virtual repo",
            ExcludesPattern = "com/google/**",
            IncludesPattern = "com/jfrog/**,cloud/jfrog/**",
            Key = "foo-npm",
            Notes = "Internal description",
            Repositories = new[] {},
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.VirtualNpmRepository;
    import com.pulumi.artifactory.VirtualNpmRepositoryArgs;
    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) {
            var foo_npm = new VirtualNpmRepository("foo-npm", VirtualNpmRepositoryArgs.builder()        
                .description("A test virtual repo")
                .excludesPattern("com/google/**")
                .includesPattern("com/jfrog/**,cloud/jfrog/**")
                .key("foo-npm")
                .notes("Internal description")
                .repositories()
                .build());
    
        }
    }
    
    resources:
      foo-npm:
        type: artifactory:VirtualNpmRepository
        properties:
          description: A test virtual repo
          excludesPattern: com/google/**
          includesPattern: com/jfrog/**,cloud/jfrog/**
          key: foo-npm
          notes: Internal description
          repositories: []
    

    Create VirtualNpmRepository Resource

    new VirtualNpmRepository(name: string, args: VirtualNpmRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualNpmRepository(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             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,
                             external_dependencies_remote_repo: Optional[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,
                             retrieval_cache_period_seconds: Optional[int] = None)
    @overload
    def VirtualNpmRepository(resource_name: str,
                             args: VirtualNpmRepositoryArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewVirtualNpmRepository(ctx *Context, name string, args VirtualNpmRepositoryArgs, opts ...ResourceOption) (*VirtualNpmRepository, error)
    public VirtualNpmRepository(string name, VirtualNpmRepositoryArgs args, CustomResourceOptions? opts = null)
    public VirtualNpmRepository(String name, VirtualNpmRepositoryArgs args)
    public VirtualNpmRepository(String name, VirtualNpmRepositoryArgs args, CustomResourceOptions options)
    
    type: artifactory:VirtualNpmRepository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VirtualNpmRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualNpmRepositoryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualNpmRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualNpmRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualNpmRepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VirtualNpmRepository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VirtualNpmRepository resource accepts the following input properties:

    Key string
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    DefaultDeploymentRepo string
    Default repository to deploy artifacts.
    Description string
    Public description.
    ExcludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    ExternalDependenciesEnabled bool
    When set, external dependencies are rewritten. Default value is false.
    ExternalDependenciesPatterns List<string>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    ExternalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    IncludesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    Notes string
    Internal description.
    ProjectEnvironments List<string>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    ProjectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    RepoLayoutRef string
    Repository layout key for the virtual repository
    Repositories List<string>
    The effective list of actual repositories included in this virtual repository.
    RetrievalCachePeriodSeconds int
    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
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    DefaultDeploymentRepo string
    Default repository to deploy artifacts.
    Description string
    Public description.
    ExcludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    ExternalDependenciesEnabled bool
    When set, external dependencies are rewritten. Default value is false.
    ExternalDependenciesPatterns []string
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    ExternalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    IncludesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    Notes string
    Internal description.
    ProjectEnvironments []string
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    ProjectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    RepoLayoutRef string
    Repository layout key for the virtual repository
    Repositories []string
    The effective list of actual repositories included in this virtual repository.
    RetrievalCachePeriodSeconds int
    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
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo String
    Default repository to deploy artifacts.
    description String
    Public description.
    excludesPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled Boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns List<String>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo String
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern String
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    notes String
    Internal description.
    projectEnvironments List<String>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey String
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef String
    Repository layout key for the virtual repository
    repositories List<String>
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds Integer
    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
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo string
    Default repository to deploy artifacts.
    description string
    Public description.
    excludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns string[]
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    notes string
    Internal description.
    projectEnvironments string[]
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef string
    Repository layout key for the virtual repository
    repositories string[]
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds number
    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
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    artifactory_requests_can_retrieve_remote_artifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    default_deployment_repo str
    Default repository to deploy artifacts.
    description str
    Public description.
    excludes_pattern str
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    external_dependencies_enabled bool
    When set, external dependencies are rewritten. Default value is false.
    external_dependencies_patterns Sequence[str]
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    external_dependencies_remote_repo str
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includes_pattern str
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    notes str
    Internal description.
    project_environments Sequence[str]
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    project_key str
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repo_layout_ref str
    Repository layout key for the virtual repository
    repositories Sequence[str]
    The effective list of actual repositories included in this virtual repository.
    retrieval_cache_period_seconds int
    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
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo String
    Default repository to deploy artifacts.
    description String
    Public description.
    excludesPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled Boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns List<String>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo String
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern String
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    notes String
    Internal description.
    projectEnvironments List<String>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey String
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef String
    Repository layout key for the virtual repository
    repositories List<String>
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds Number
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualNpmRepository resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PackageType string
    Id string
    The provider-assigned unique ID for this managed resource.
    PackageType string
    id String
    The provider-assigned unique ID for this managed resource.
    packageType String
    id string
    The provider-assigned unique ID for this managed resource.
    packageType string
    id str
    The provider-assigned unique ID for this managed resource.
    package_type str
    id String
    The provider-assigned unique ID for this managed resource.
    packageType String

    Look up Existing VirtualNpmRepository Resource

    Get an existing VirtualNpmRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualNpmRepositoryState, opts?: CustomResourceOptions): VirtualNpmRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            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,
            external_dependencies_remote_repo: Optional[str] = None,
            includes_pattern: Optional[str] = None,
            key: Optional[str] = None,
            notes: Optional[str] = None,
            package_type: 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) -> VirtualNpmRepository
    func GetVirtualNpmRepository(ctx *Context, name string, id IDInput, state *VirtualNpmRepositoryState, opts ...ResourceOption) (*VirtualNpmRepository, error)
    public static VirtualNpmRepository Get(string name, Input<string> id, VirtualNpmRepositoryState? state, CustomResourceOptions? opts = null)
    public static VirtualNpmRepository get(String name, Output<String> id, VirtualNpmRepositoryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    DefaultDeploymentRepo string
    Default repository to deploy artifacts.
    Description string
    Public description.
    ExcludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    ExternalDependenciesEnabled bool
    When set, external dependencies are rewritten. Default value is false.
    ExternalDependenciesPatterns List<string>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    ExternalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    IncludesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    Key string
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    Notes string
    Internal description.
    PackageType string
    ProjectEnvironments List<string>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    ProjectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    RepoLayoutRef string
    Repository layout key for the virtual repository
    Repositories List<string>
    The effective list of actual repositories included in this virtual repository.
    RetrievalCachePeriodSeconds int
    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.
    ArtifactoryRequestsCanRetrieveRemoteArtifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    DefaultDeploymentRepo string
    Default repository to deploy artifacts.
    Description string
    Public description.
    ExcludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    ExternalDependenciesEnabled bool
    When set, external dependencies are rewritten. Default value is false.
    ExternalDependenciesPatterns []string
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    ExternalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    IncludesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    Key string
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    Notes string
    Internal description.
    PackageType string
    ProjectEnvironments []string
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    ProjectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    RepoLayoutRef string
    Repository layout key for the virtual repository
    Repositories []string
    The effective list of actual repositories included in this virtual repository.
    RetrievalCachePeriodSeconds int
    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.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo String
    Default repository to deploy artifacts.
    description String
    Public description.
    excludesPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled Boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns List<String>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo String
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern String
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    key String
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    notes String
    Internal description.
    packageType String
    projectEnvironments List<String>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey String
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef String
    Repository layout key for the virtual repository
    repositories List<String>
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds Integer
    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.
    artifactoryRequestsCanRetrieveRemoteArtifacts boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo string
    Default repository to deploy artifacts.
    description string
    Public description.
    excludesPattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns string[]
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo string
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern string
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    key string
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    notes string
    Internal description.
    packageType string
    projectEnvironments string[]
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey string
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef string
    Repository layout key for the virtual repository
    repositories string[]
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds number
    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.
    artifactory_requests_can_retrieve_remote_artifacts bool
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    default_deployment_repo str
    Default repository to deploy artifacts.
    description str
    Public description.
    excludes_pattern str
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    external_dependencies_enabled bool
    When set, external dependencies are rewritten. Default value is false.
    external_dependencies_patterns Sequence[str]
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    external_dependencies_remote_repo str
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includes_pattern str
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    key str
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    notes str
    Internal description.
    package_type str
    project_environments Sequence[str]
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    project_key str
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repo_layout_ref str
    Repository layout key for the virtual repository
    repositories Sequence[str]
    The effective list of actual repositories included in this virtual repository.
    retrieval_cache_period_seconds int
    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.
    artifactoryRequestsCanRetrieveRemoteArtifacts Boolean
    Whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance.
    defaultDeploymentRepo String
    Default repository to deploy artifacts.
    description String
    Public description.
    excludesPattern String
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    externalDependenciesEnabled Boolean
    When set, external dependencies are rewritten. Default value is false.
    externalDependenciesPatterns List<String>
    An Allow List of Ant-style path expressions that specify where external dependencies may be downloaded from. By default, this is set to ** which means that dependencies may be downloaded from any external source.
    externalDependenciesRemoteRepo String
    The remote repository aggregated by this virtual repository in which the external dependency will be cached.
    includesPattern String
    List of comma-separated artifact patterns to include when evaluating artifact requests in the form of x/y//z/*. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (/*).
    key String
    A mandatory identifier for the repository that must be unique. It cannot begin with a number or contain spaces or special characters.
    notes String
    Internal description.
    packageType String
    projectEnvironments List<String>
    Project environment for assigning this repository to. Allow values: "DEV", "PROD", or one of custom environment. Before Artifactory 7.53.1, up to 2 values ("DEV" and "PROD") are allowed. From 7.53.1 onward, only one value is allowed. The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
    projectKey String
    Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
    repoLayoutRef String
    Repository layout key for the virtual repository
    repositories List<String>
    The effective list of actual repositories included in this virtual repository.
    retrievalCachePeriodSeconds Number
    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.

    Import

    Virtual repositories can be imported using their name, e.g.

    $ pulumi import artifactory:index/virtualNpmRepository:VirtualNpmRepository foo-npm foo-npm
    

    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.4.2 published on Thursday, Mar 28, 2024 by Pulumi