published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
Deprecated: Use
proxmoxve.apt/standard.Repositoryinstead. This resource will be removed in v1.0.
Manages an APT standard repository of a Proxmox VE node.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = new proxmoxve.apt.standard.RepositoryLegacy("example", {
handle: "no-subscription",
node: "pve",
});
const exampleRepositoryLegacy = new proxmoxve.apt.RepositoryLegacy("example", {
enabled: true,
filePath: example.filePath,
index: example.index,
node: example.node,
});
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.apt.standard.RepositoryLegacy("example",
handle="no-subscription",
node="pve")
example_repository_legacy = proxmoxve.apt.RepositoryLegacy("example",
enabled=True,
file_path=example.file_path,
index=example.index,
node=example.node)
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve/apt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apt.NewRepositoryLegacy(ctx, "example", &apt.RepositoryLegacyArgs{
Handle: pulumi.String("no-subscription"),
Node: pulumi.String("pve"),
})
if err != nil {
return err
}
_, err = apt.NewRepositoryLegacy(ctx, "example", &apt.RepositoryLegacyArgs{
Enabled: pulumi.Bool(true),
FilePath: example.FilePath,
Index: example.Index,
Node: example.Node,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = new ProxmoxVE.Apt.Standard.RepositoryLegacy("example", new()
{
Handle = "no-subscription",
Node = "pve",
});
var exampleRepositoryLegacy = new ProxmoxVE.Apt.RepositoryLegacy("example", new()
{
Enabled = true,
FilePath = example.FilePath,
Index = example.Index,
Node = example.Node,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.apt.RepositoryLegacy;
import io.muehlbachler.pulumi.proxmoxve.apt.RepositoryLegacyArgs;
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 example = new RepositoryLegacy("example", RepositoryLegacyArgs.builder()
.handle("no-subscription")
.node("pve")
.build());
var exampleRepositoryLegacy = new RepositoryLegacy("exampleRepositoryLegacy", RepositoryLegacyArgs.builder()
.enabled(true)
.filePath(example.filePath())
.index(example.index())
.node(example.node())
.build());
}
}
resources:
example:
type: proxmoxve:apt/standard:RepositoryLegacy
properties:
handle: no-subscription
node: pve
exampleRepositoryLegacy:
type: proxmoxve:apt:RepositoryLegacy
name: example
properties:
enabled: true
filePath: ${example.filePath}
index: ${example.index}
node: ${example.node}
Create RepositoryLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryLegacy(name: string, args: RepositoryLegacyArgs, opts?: CustomResourceOptions);@overload
def RepositoryLegacy(resource_name: str,
args: RepositoryLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
handle: Optional[str] = None,
node: Optional[str] = None)func NewRepositoryLegacy(ctx *Context, name string, args RepositoryLegacyArgs, opts ...ResourceOption) (*RepositoryLegacy, error)public RepositoryLegacy(string name, RepositoryLegacyArgs args, CustomResourceOptions? opts = null)
public RepositoryLegacy(String name, RepositoryLegacyArgs args)
public RepositoryLegacy(String name, RepositoryLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:apt/standard/repositoryLegacy:RepositoryLegacy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryLegacyArgs
- 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 RepositoryLegacyArgs
- 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 RepositoryLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RepositoryLegacy 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 RepositoryLegacy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryLegacy resource produces the following output properties:
- Description string
- The description of the APT standard repository.
- File
Path string - The absolute path of the source list file that contains this standard repository.
- Id string
- The provider-assigned unique ID for this managed resource.
- Index int
- The index within the defining source list file.
- Name string
- The name of the APT standard repository.
- Status int
- Indicates the activation status.
- Description string
- The description of the APT standard repository.
- File
Path string - The absolute path of the source list file that contains this standard repository.
- Id string
- The provider-assigned unique ID for this managed resource.
- Index int
- The index within the defining source list file.
- Name string
- The name of the APT standard repository.
- Status int
- Indicates the activation status.
- description String
- The description of the APT standard repository.
- file
Path String - The absolute path of the source list file that contains this standard repository.
- id String
- The provider-assigned unique ID for this managed resource.
- index Integer
- The index within the defining source list file.
- name String
- The name of the APT standard repository.
- status Integer
- Indicates the activation status.
- description string
- The description of the APT standard repository.
- file
Path string - The absolute path of the source list file that contains this standard repository.
- id string
- The provider-assigned unique ID for this managed resource.
- index number
- The index within the defining source list file.
- name string
- The name of the APT standard repository.
- status number
- Indicates the activation status.
- description str
- The description of the APT standard repository.
- file_
path str - The absolute path of the source list file that contains this standard repository.
- id str
- The provider-assigned unique ID for this managed resource.
- index int
- The index within the defining source list file.
- name str
- The name of the APT standard repository.
- status int
- Indicates the activation status.
- description String
- The description of the APT standard repository.
- file
Path String - The absolute path of the source list file that contains this standard repository.
- id String
- The provider-assigned unique ID for this managed resource.
- index Number
- The index within the defining source list file.
- name String
- The name of the APT standard repository.
- status Number
- Indicates the activation status.
Look up Existing RepositoryLegacy Resource
Get an existing RepositoryLegacy 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?: RepositoryLegacyState, opts?: CustomResourceOptions): RepositoryLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
file_path: Optional[str] = None,
handle: Optional[str] = None,
index: Optional[int] = None,
name: Optional[str] = None,
node: Optional[str] = None,
status: Optional[int] = None) -> RepositoryLegacyfunc GetRepositoryLegacy(ctx *Context, name string, id IDInput, state *RepositoryLegacyState, opts ...ResourceOption) (*RepositoryLegacy, error)public static RepositoryLegacy Get(string name, Input<string> id, RepositoryLegacyState? state, CustomResourceOptions? opts = null)public static RepositoryLegacy get(String name, Output<String> id, RepositoryLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:apt/standard/repositoryLegacy:RepositoryLegacy get: 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.
- Description string
- The description of the APT standard repository.
- File
Path string - The absolute path of the source list file that contains this standard repository.
- Handle string
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - Index int
- The index within the defining source list file.
- Name string
- The name of the APT standard repository.
- Node string
- The name of the target Proxmox VE node.
- Status int
- Indicates the activation status.
- Description string
- The description of the APT standard repository.
- File
Path string - The absolute path of the source list file that contains this standard repository.
- Handle string
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - Index int
- The index within the defining source list file.
- Name string
- The name of the APT standard repository.
- Node string
- The name of the target Proxmox VE node.
- Status int
- Indicates the activation status.
- description String
- The description of the APT standard repository.
- file
Path String - The absolute path of the source list file that contains this standard repository.
- handle String
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - index Integer
- The index within the defining source list file.
- name String
- The name of the APT standard repository.
- node String
- The name of the target Proxmox VE node.
- status Integer
- Indicates the activation status.
- description string
- The description of the APT standard repository.
- file
Path string - The absolute path of the source list file that contains this standard repository.
- handle string
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - index number
- The index within the defining source list file.
- name string
- The name of the APT standard repository.
- node string
- The name of the target Proxmox VE node.
- status number
- Indicates the activation status.
- description str
- The description of the APT standard repository.
- file_
path str - The absolute path of the source list file that contains this standard repository.
- handle str
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - index int
- The index within the defining source list file.
- name str
- The name of the APT standard repository.
- node str
- The name of the target Proxmox VE node.
- status int
- Indicates the activation status.
- description String
- The description of the APT standard repository.
- file
Path String - The absolute path of the source list file that contains this standard repository.
- handle String
- The handle of the APT standard repository. Must be
ceph-squid-enterprise|ceph-squid-no-subscription|ceph-squid-test|enterprise|no-subscription|test. - index Number
- The index within the defining source list file.
- name String
- The name of the APT standard repository.
- node String
- The name of the target Proxmox VE node.
- status Number
- Indicates the activation status.
Import
!/usr/bin/env sh An APT standard repository can be imported using a comma-separated list consisting of the name of the Proxmox VE node, and the standard repository handle in the exact same order, e.g.:
$ pulumi import proxmoxve:apt/standard/repositoryLegacy:RepositoryLegacy example pve,no-subscription
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
