1. Packages
  2. Packages
  3. Artifactory Provider
  4. API Docs
  5. LocalNixRepository
Viewing docs for artifactory v8.11.1
published on Tuesday, May 26, 2026 by Pulumi
artifactory logo
Viewing docs for artifactory v8.11.1
published on Tuesday, May 26, 2026 by Pulumi

    Creates a local Nix repository for hosting Nix store artifacts and channels. See Nix repositories in the JFrog documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const my_nix_local = new artifactory.LocalNixRepository("my-nix-local", {
        key: "my-nix-local",
        description: "Local Nix repository",
        notes: "Internal repository",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    my_nix_local = artifactory.LocalNixRepository("my-nix-local",
        key="my-nix-local",
        description="Local Nix repository",
        notes="Internal repository")
    
    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.NewLocalNixRepository(ctx, "my-nix-local", &artifactory.LocalNixRepositoryArgs{
    			Key:         pulumi.String("my-nix-local"),
    			Description: pulumi.String("Local Nix repository"),
    			Notes:       pulumi.String("Internal repository"),
    		})
    		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 my_nix_local = new Artifactory.LocalNixRepository("my-nix-local", new()
        {
            Key = "my-nix-local",
            Description = "Local Nix repository",
            Notes = "Internal repository",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.artifactory.LocalNixRepository;
    import com.pulumi.artifactory.LocalNixRepositoryArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 my_nix_local = new LocalNixRepository("my-nix-local", LocalNixRepositoryArgs.builder()
                .key("my-nix-local")
                .description("Local Nix repository")
                .notes("Internal repository")
                .build());
    
        }
    }
    
    resources:
      my-nix-local:
        type: artifactory:LocalNixRepository
        properties:
          key: my-nix-local
          description: Local Nix repository
          notes: Internal repository
    
    pulumi {
      required_providers {
        artifactory = {
          source = "pulumi/artifactory"
        }
      }
    }
    
    resource "artifactory_localnixrepository" "my-nix-local" {
      key         = "my-nix-local"
      description = "Local Nix repository"
      notes       = "Internal repository"
    }
    

    Create LocalNixRepository Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LocalNixRepository(name: string, args: LocalNixRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def LocalNixRepository(resource_name: str,
                           args: LocalNixRepositoryArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalNixRepository(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           key: Optional[str] = None,
                           includes_pattern: Optional[str] = None,
                           notes: Optional[str] = None,
                           description: Optional[str] = None,
                           download_direct: Optional[bool] = None,
                           excludes_pattern: Optional[str] = None,
                           archive_browsing_enabled: Optional[bool] = None,
                           blacked_out: Optional[bool] = None,
                           cdn_redirect: Optional[bool] = None,
                           priority_resolution: Optional[bool] = None,
                           project_environments: Optional[Sequence[str]] = None,
                           project_key: Optional[str] = None,
                           property_sets: Optional[Sequence[str]] = None,
                           repo_layout_ref: Optional[str] = None,
                           xray_index: Optional[bool] = None)
    func NewLocalNixRepository(ctx *Context, name string, args LocalNixRepositoryArgs, opts ...ResourceOption) (*LocalNixRepository, error)
    public LocalNixRepository(string name, LocalNixRepositoryArgs args, CustomResourceOptions? opts = null)
    public LocalNixRepository(String name, LocalNixRepositoryArgs args)
    public LocalNixRepository(String name, LocalNixRepositoryArgs args, CustomResourceOptions options)
    
    type: artifactory:LocalNixRepository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "artifactory_localnixrepository" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LocalNixRepositoryArgs
    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 LocalNixRepositoryArgs
    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 LocalNixRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalNixRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalNixRepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var localNixRepositoryResource = new Artifactory.LocalNixRepository("localNixRepositoryResource", new()
    {
        Key = "string",
        IncludesPattern = "string",
        Notes = "string",
        Description = "string",
        DownloadDirect = false,
        ExcludesPattern = "string",
        ArchiveBrowsingEnabled = false,
        BlackedOut = false,
        CdnRedirect = false,
        PriorityResolution = false,
        ProjectEnvironments = new[]
        {
            "string",
        },
        ProjectKey = "string",
        PropertySets = new[]
        {
            "string",
        },
        RepoLayoutRef = "string",
        XrayIndex = false,
    });
    
    example, err := artifactory.NewLocalNixRepository(ctx, "localNixRepositoryResource", &artifactory.LocalNixRepositoryArgs{
    	Key:                    pulumi.String("string"),
    	IncludesPattern:        pulumi.String("string"),
    	Notes:                  pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	DownloadDirect:         pulumi.Bool(false),
    	ExcludesPattern:        pulumi.String("string"),
    	ArchiveBrowsingEnabled: pulumi.Bool(false),
    	BlackedOut:             pulumi.Bool(false),
    	CdnRedirect:            pulumi.Bool(false),
    	PriorityResolution:     pulumi.Bool(false),
    	ProjectEnvironments: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProjectKey: pulumi.String("string"),
    	PropertySets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RepoLayoutRef: pulumi.String("string"),
    	XrayIndex:     pulumi.Bool(false),
    })
    
    resource "artifactory_localnixrepository" "localNixRepositoryResource" {
      key                      = "string"
      includes_pattern         = "string"
      notes                    = "string"
      description              = "string"
      download_direct          = false
      excludes_pattern         = "string"
      archive_browsing_enabled = false
      blacked_out              = false
      cdn_redirect             = false
      priority_resolution      = false
      project_environments     = ["string"]
      project_key              = "string"
      property_sets            = ["string"]
      repo_layout_ref          = "string"
      xray_index               = false
    }
    
    var localNixRepositoryResource = new LocalNixRepository("localNixRepositoryResource", LocalNixRepositoryArgs.builder()
        .key("string")
        .includesPattern("string")
        .notes("string")
        .description("string")
        .downloadDirect(false)
        .excludesPattern("string")
        .archiveBrowsingEnabled(false)
        .blackedOut(false)
        .cdnRedirect(false)
        .priorityResolution(false)
        .projectEnvironments("string")
        .projectKey("string")
        .propertySets("string")
        .repoLayoutRef("string")
        .xrayIndex(false)
        .build());
    
    local_nix_repository_resource = artifactory.LocalNixRepository("localNixRepositoryResource",
        key="string",
        includes_pattern="string",
        notes="string",
        description="string",
        download_direct=False,
        excludes_pattern="string",
        archive_browsing_enabled=False,
        blacked_out=False,
        cdn_redirect=False,
        priority_resolution=False,
        project_environments=["string"],
        project_key="string",
        property_sets=["string"],
        repo_layout_ref="string",
        xray_index=False)
    
    const localNixRepositoryResource = new artifactory.LocalNixRepository("localNixRepositoryResource", {
        key: "string",
        includesPattern: "string",
        notes: "string",
        description: "string",
        downloadDirect: false,
        excludesPattern: "string",
        archiveBrowsingEnabled: false,
        blackedOut: false,
        cdnRedirect: false,
        priorityResolution: false,
        projectEnvironments: ["string"],
        projectKey: "string",
        propertySets: ["string"],
        repoLayoutRef: "string",
        xrayIndex: false,
    });
    
    type: artifactory:LocalNixRepository
    properties:
        archiveBrowsingEnabled: false
        blackedOut: false
        cdnRedirect: false
        description: string
        downloadDirect: false
        excludesPattern: string
        includesPattern: string
        key: string
        notes: string
        priorityResolution: false
        projectEnvironments:
            - string
        projectKey: string
        propertySets:
            - string
        repoLayoutRef: string
        xrayIndex: false
    

    LocalNixRepository Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LocalNixRepository resource accepts the following input properties:

    Key string
    Repository key.
    ArchiveBrowsingEnabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    BlackedOut bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    CdnRedirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    Description string
    Public description.
    DownloadDirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    PriorityResolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    ProjectEnvironments List<string>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    PropertySets List<string>
    List of property set name
    RepoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    XrayIndex bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    Key string
    Repository key.
    ArchiveBrowsingEnabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    BlackedOut bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    CdnRedirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    Description string
    Public description.
    DownloadDirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    PriorityResolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    ProjectEnvironments []string
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    PropertySets []string
    List of property set name
    RepoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    XrayIndex bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    key string
    Repository key.
    archive_browsing_enabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blacked_out bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdn_redirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description string
    Public description.
    download_direct bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    excludes_pattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    includes_pattern 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.
    priority_resolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    project_environments list(string)
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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 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.
    property_sets list(string)
    List of property set name
    repo_layout_ref string
    Repository layout reference. Defaults to nix-default when unset.
    xray_index bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    key String
    Repository key.
    archiveBrowsingEnabled Boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut Boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description String
    Public description.
    downloadDirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    priorityResolution Boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments List<String>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets List<String>
    List of property set name
    repoLayoutRef String
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex Boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    key string
    Repository key.
    archiveBrowsingEnabled boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description string
    Public description.
    downloadDirect boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    priorityResolution boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments string[]
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets string[]
    List of property set name
    repoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    key str
    Repository key.
    archive_browsing_enabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blacked_out bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdn_redirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description str
    Public description.
    download_direct bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    priority_resolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    project_environments Sequence[str]
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    property_sets Sequence[str]
    List of property set name
    repo_layout_ref str
    Repository layout reference. Defaults to nix-default when unset.
    xray_index bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    key String
    Repository key.
    archiveBrowsingEnabled Boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut Boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description String
    Public description.
    downloadDirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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.
    priorityResolution Boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments List<String>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets List<String>
    List of property set name
    repoLayoutRef String
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex Boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.

    Outputs

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

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

    Look up Existing LocalNixRepository Resource

    Get an existing LocalNixRepository 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?: LocalNixRepositoryState, opts?: CustomResourceOptions): LocalNixRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            archive_browsing_enabled: Optional[bool] = None,
            blacked_out: Optional[bool] = None,
            cdn_redirect: Optional[bool] = None,
            description: Optional[str] = None,
            download_direct: Optional[bool] = None,
            excludes_pattern: Optional[str] = None,
            includes_pattern: Optional[str] = None,
            key: Optional[str] = None,
            notes: Optional[str] = None,
            priority_resolution: Optional[bool] = None,
            project_environments: Optional[Sequence[str]] = None,
            project_key: Optional[str] = None,
            property_sets: Optional[Sequence[str]] = None,
            repo_layout_ref: Optional[str] = None,
            xray_index: Optional[bool] = None) -> LocalNixRepository
    func GetLocalNixRepository(ctx *Context, name string, id IDInput, state *LocalNixRepositoryState, opts ...ResourceOption) (*LocalNixRepository, error)
    public static LocalNixRepository Get(string name, Input<string> id, LocalNixRepositoryState? state, CustomResourceOptions? opts = null)
    public static LocalNixRepository get(String name, Output<String> id, LocalNixRepositoryState state, CustomResourceOptions options)
    resources:  _:    type: artifactory:LocalNixRepository    get:      id: ${id}
    import {
      to = artifactory_localnixrepository.example
      id = "${id}"
    }
    
    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:
    ArchiveBrowsingEnabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    BlackedOut bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    CdnRedirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    Description string
    Public description.
    DownloadDirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    Notes string
    Internal description.
    PriorityResolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    ProjectEnvironments List<string>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    PropertySets List<string>
    List of property set name
    RepoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    XrayIndex bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    ArchiveBrowsingEnabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    BlackedOut bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    CdnRedirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    Description string
    Public description.
    DownloadDirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    Notes string
    Internal description.
    PriorityResolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    ProjectEnvironments []string
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    PropertySets []string
    List of property set name
    RepoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    XrayIndex bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    archive_browsing_enabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blacked_out bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdn_redirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description string
    Public description.
    download_direct bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    excludes_pattern string
    List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*.By default no artifacts are excluded.
    includes_pattern 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
    Repository key.
    notes string
    Internal description.
    priority_resolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    project_environments list(string)
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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 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.
    property_sets list(string)
    List of property set name
    repo_layout_ref string
    Repository layout reference. Defaults to nix-default when unset.
    xray_index bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    archiveBrowsingEnabled Boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut Boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description String
    Public description.
    downloadDirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    notes String
    Internal description.
    priorityResolution Boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments List<String>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets List<String>
    List of property set name
    repoLayoutRef String
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex Boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    archiveBrowsingEnabled boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description string
    Public description.
    downloadDirect boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    notes string
    Internal description.
    priorityResolution boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments string[]
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets string[]
    List of property set name
    repoLayoutRef string
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    archive_browsing_enabled bool
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blacked_out bool
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdn_redirect bool
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description str
    Public description.
    download_direct bool
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    notes str
    Internal description.
    priority_resolution bool
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    project_environments Sequence[str]
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    property_sets Sequence[str]
    List of property set name
    repo_layout_ref str
    Repository layout reference. Defaults to nix-default when unset.
    xray_index bool
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
    archiveBrowsingEnabled Boolean
    When set, you may view content such as HTML or Javadoc files directly from Artifactory. This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
    blackedOut Boolean
    When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
    cdnRedirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
    description String
    Public description.
    downloadDirect Boolean
    When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
    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.
    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
    Repository key.
    notes String
    Internal description.
    priorityResolution Boolean
    Setting repositories with priority will cause metadata to be merged only from repositories set with this field
    projectEnvironments List<String>
    Before Artifactory 7.53.1, up to 2 values (DEV and PROD) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are 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.
    propertySets List<String>
    List of property set name
    repoLayoutRef String
    Repository layout reference. Defaults to nix-default when unset.
    xrayIndex Boolean
    Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.

    Import

    Repositories can be imported using the repository key, for example:

    $ pulumi import artifactory:index/localNixRepository:LocalNixRepository my-nix-local my-nix-local
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    Viewing docs for artifactory v8.11.1
    published on Tuesday, May 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial