1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Apt
  5. Apt/standard
  6. getRepository
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Apt/standard.getRepository

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski

    Retrieves an APT standard repository from a Proxmox VE cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@pulumi/proxmoxve";
    
    const example = proxmoxve.Apt.standard.getRepository({
        handle: "no-subscription",
        node: "pve",
    });
    export const proxmoxVirtualEnvironmentAptStandardRepository = example;
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.Apt.standard.get_repository(handle="no-subscription",
        node="pve")
    pulumi.export("proxmoxVirtualEnvironmentAptStandardRepository", example)
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Apt"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := Apt.GetRepository(ctx, &standard.GetRepositoryArgs{
    			Handle: "no-subscription",
    			Node:   "pve",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("proxmoxVirtualEnvironmentAptStandardRepository", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ProxmoxVE.Apt.Standard.GetRepository.Invoke(new()
        {
            Handle = "no-subscription",
            Node = "pve",
        });
    
        return new Dictionary<string, object?>
        {
            ["proxmoxVirtualEnvironmentAptStandardRepository"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.Apt_standard.Apt_standardFunctions;
    import com.pulumi.proxmoxve.Apt.inputs.GetRepositoryArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = Apt/standardFunctions.getRepository(GetRepositoryArgs.builder()
                .handle("no-subscription")
                .node("pve")
                .build());
    
            ctx.export("proxmoxVirtualEnvironmentAptStandardRepository", example.applyValue(getRepositoryResult -> getRepositoryResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: proxmoxve:Apt/standard:getRepository
          Arguments:
            handle: no-subscription
            node: pve
    outputs:
      proxmoxVirtualEnvironmentAptStandardRepository: ${example}
    

    Using getRepository

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
    function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
    def get_repository(handle: Optional[str] = None,
                       node: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
    def get_repository_output(handle: Optional[pulumi.Input[str]] = None,
                       node: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
    func GetRepository(ctx *Context, args *GetRepositoryArgs, opts ...InvokeOption) (*GetRepositoryResult, error)
    func GetRepositoryOutput(ctx *Context, args *GetRepositoryOutputArgs, opts ...InvokeOption) GetRepositoryResultOutput

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

    public static class GetRepository 
    {
        public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: proxmoxve:Apt/standard/getRepository:getRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Handle string
    The handle of the APT standard repository.
    Node string
    The name of the target Proxmox VE node.
    Handle string
    The handle of the APT standard repository.
    Node string
    The name of the target Proxmox VE node.
    handle String
    The handle of the APT standard repository.
    node String
    The name of the target Proxmox VE node.
    handle string
    The handle of the APT standard repository.
    node string
    The name of the target Proxmox VE node.
    handle str
    The handle of the APT standard repository.
    node str
    The name of the target Proxmox VE node.
    handle String
    The handle of the APT standard repository.
    node String
    The name of the target Proxmox VE node.

    getRepository Result

    The following output properties are available:

    Description string
    The description of the APT standard repository.
    FilePath string
    The absolute path of the source list file that contains this standard repository.
    Handle string
    The handle of the APT standard repository.
    Id string
    The unique identifier of this APT standard repository data source.
    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.
    FilePath string
    The absolute path of the source list file that contains this standard repository.
    Handle string
    The handle of the APT standard repository.
    Id string
    The unique identifier of this APT standard repository data source.
    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.
    filePath String
    The absolute path of the source list file that contains this standard repository.
    handle String
    The handle of the APT standard repository.
    id String
    The unique identifier of this APT standard repository data source.
    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.
    filePath string
    The absolute path of the source list file that contains this standard repository.
    handle string
    The handle of the APT standard repository.
    id string
    The unique identifier of this APT standard repository data source.
    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.
    id str
    The unique identifier of this APT standard repository data source.
    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.
    filePath String
    The absolute path of the source list file that contains this standard repository.
    handle String
    The handle of the APT standard repository.
    id String
    The unique identifier of this APT standard repository data source.
    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.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v6.14.0 published on Monday, Sep 9, 2024 by Daniel Muehlbachler-Pietrzykowski