1. Packages
  2. Packages
  3. Proxmox Virtual Environment (Proxmox VE)
  4. API Docs
  5. getReplication
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski

    Retrieves information about an existing Replication.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const example = proxmoxve.getReplication({
        id: "100-0",
    });
    export const dataProxmoxReplication = {
        id: example.then(example => example.id),
        target: example.then(example => example.target),
        type: example.then(example => example.type),
        jobnum: example.then(example => example.jobnum),
        guest: example.then(example => example.guest),
    };
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    example = proxmoxve.get_replication(id="100-0")
    pulumi.export("dataProxmoxReplication", {
        "id": example.id,
        "target": example.target,
        "type": example.type,
        "jobnum": example.jobnum,
        "guest": example.guest,
    })
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := proxmoxve.GetReplication(ctx, &proxmoxve.LookupReplicationArgs{
    			Id: "100-0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dataProxmoxReplication", pulumi.Map{
    			"id":     example.Id,
    			"target": example.Target,
    			"type":   example.Type,
    			"jobnum": example.Jobnum,
    			"guest":  example.Guest,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ProxmoxVE.Index.GetReplication.Invoke(new()
        {
            Id = "100-0",
        });
    
        return new Dictionary<string, object?>
        {
            ["dataProxmoxReplication"] = 
            {
                { "id", example.Apply(getReplicationResult => getReplicationResult.Id) },
                { "target", example.Apply(getReplicationResult => getReplicationResult.Target) },
                { "type", example.Apply(getReplicationResult => getReplicationResult.Type) },
                { "jobnum", example.Apply(getReplicationResult => getReplicationResult.Jobnum) },
                { "guest", example.Apply(getReplicationResult => getReplicationResult.Guest) },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.proxmoxve.ProxmoxveFunctions;
    import com.pulumi.proxmoxve.inputs.GetReplicationArgs;
    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 = ProxmoxveFunctions.getReplication(GetReplicationArgs.builder()
                .id("100-0")
                .build());
    
            ctx.export("dataProxmoxReplication", Map.ofEntries(
                Map.entry("id", example.id()),
                Map.entry("target", example.target()),
                Map.entry("type", example.type()),
                Map.entry("jobnum", example.jobnum()),
                Map.entry("guest", example.guest())
            ));
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: proxmoxve:getReplication
          arguments:
            id: 100-0
    outputs:
      dataProxmoxReplication:
        id: ${example.id}
        target: ${example.target}
        type: ${example.type}
        jobnum: ${example.jobnum}
        guest: ${example.guest}
    

    Using getReplication

    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 getReplication(args: GetReplicationArgs, opts?: InvokeOptions): Promise<GetReplicationResult>
    function getReplicationOutput(args: GetReplicationOutputArgs, opts?: InvokeOptions): Output<GetReplicationResult>
    def get_replication(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetReplicationResult
    def get_replication_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetReplicationResult]
    func LookupReplication(ctx *Context, args *LookupReplicationArgs, opts ...InvokeOption) (*LookupReplicationResult, error)
    func LookupReplicationOutput(ctx *Context, args *LookupReplicationOutputArgs, opts ...InvokeOption) LookupReplicationResultOutput

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

    public static class GetReplication 
    {
        public static Task<GetReplicationResult> InvokeAsync(GetReplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetReplicationResult> Invoke(GetReplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetReplicationResult> getReplication(GetReplicationArgs args, InvokeOptions options)
    public static Output<GetReplicationResult> getReplication(GetReplicationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:index/getReplication:getReplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    Id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    id String
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    id str
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    id String
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.

    getReplication Result

    The following output properties are available:

    Comment string
    Description.
    Disable bool
    Flag to disable/deactivate this replication.
    Guest int
    Guest ID.
    Id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    Jobnum int
    Unique, sequential ID assigned to each job.
    Rate double
    Rate limit in mbps (megabytes per second) as floating point number.
    Schedule string
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    Source string
    For internal use, to detect if the guest was stolen.
    Target string
    Target node.
    Type string
    Section type.
    Comment string
    Description.
    Disable bool
    Flag to disable/deactivate this replication.
    Guest int
    Guest ID.
    Id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    Jobnum int
    Unique, sequential ID assigned to each job.
    Rate float64
    Rate limit in mbps (megabytes per second) as floating point number.
    Schedule string
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    Source string
    For internal use, to detect if the guest was stolen.
    Target string
    Target node.
    Type string
    Section type.
    comment String
    Description.
    disable Boolean
    Flag to disable/deactivate this replication.
    guest Integer
    Guest ID.
    id String
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    jobnum Integer
    Unique, sequential ID assigned to each job.
    rate Double
    Rate limit in mbps (megabytes per second) as floating point number.
    schedule String
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    source String
    For internal use, to detect if the guest was stolen.
    target String
    Target node.
    type String
    Section type.
    comment string
    Description.
    disable boolean
    Flag to disable/deactivate this replication.
    guest number
    Guest ID.
    id string
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    jobnum number
    Unique, sequential ID assigned to each job.
    rate number
    Rate limit in mbps (megabytes per second) as floating point number.
    schedule string
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    source string
    For internal use, to detect if the guest was stolen.
    target string
    Target node.
    type string
    Section type.
    comment str
    Description.
    disable bool
    Flag to disable/deactivate this replication.
    guest int
    Guest ID.
    id str
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    jobnum int
    Unique, sequential ID assigned to each job.
    rate float
    Rate limit in mbps (megabytes per second) as floating point number.
    schedule str
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    source str
    For internal use, to detect if the guest was stolen.
    target str
    Target node.
    type str
    Section type.
    comment String
    Description.
    disable Boolean
    Flag to disable/deactivate this replication.
    guest Number
    Guest ID.
    id String
    Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '\n\n-\n\n'.
    jobnum Number
    Unique, sequential ID assigned to each job.
    rate Number
    Rate limit in mbps (megabytes per second) as floating point number.
    schedule String
    Storage replication schedule. The format is a subset of systemd calendar events. Defaults to */15
    source String
    For internal use, to detect if the guest was stolen.
    target String
    Target node.
    type String
    Section type.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.1.0
    published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.