1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getBackupProvider
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getBackupProvider

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get backup provider info

    New since v0.4.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const cloudServers = vkcs.getBackupProvider({
        name: "cloud_servers",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    cloud_servers = vkcs.get_backup_provider(name="cloud_servers")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.GetBackupProvider(ctx, &vkcs.GetBackupProviderArgs{
    			Name: "cloud_servers",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudServers = Vkcs.GetBackupProvider.Invoke(new()
        {
            Name = "cloud_servers",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetBackupProviderArgs;
    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 cloudServers = VkcsFunctions.getBackupProvider(GetBackupProviderArgs.builder()
                .name("cloud_servers")
                .build());
    
        }
    }
    
    variables:
      cloudServers:
        fn::invoke:
          function: vkcs:getBackupProvider
          arguments:
            name: cloud_servers
    

    Using getBackupProvider

    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 getBackupProvider(args: GetBackupProviderArgs, opts?: InvokeOptions): Promise<GetBackupProviderResult>
    function getBackupProviderOutput(args: GetBackupProviderOutputArgs, opts?: InvokeOptions): Output<GetBackupProviderResult>
    def get_backup_provider(name: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBackupProviderResult
    def get_backup_provider_output(name: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBackupProviderResult]
    func GetBackupProvider(ctx *Context, args *GetBackupProviderArgs, opts ...InvokeOption) (*GetBackupProviderResult, error)
    func GetBackupProviderOutput(ctx *Context, args *GetBackupProviderOutputArgs, opts ...InvokeOption) GetBackupProviderResultOutput

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

    public static class GetBackupProvider 
    {
        public static Task<GetBackupProviderResult> InvokeAsync(GetBackupProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetBackupProviderResult> Invoke(GetBackupProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBackupProviderResult> getBackupProvider(GetBackupProviderArgs args, InvokeOptions options)
    public static Output<GetBackupProviderResult> getBackupProvider(GetBackupProviderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getBackupProvider:getBackupProvider
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    required string → Name of the backup provider
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    Name string
    required string → Name of the backup provider
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    name String
    required string → Name of the backup provider
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    name string
    required string → Name of the backup provider
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    name str
    required string → Name of the backup provider
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    name String
    required string → Name of the backup provider
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.

    getBackupProvider Result

    The following output properties are available:

    Id string
    string → ID of the resource
    Name string
    Region string
    Id string
    string → ID of the resource
    Name string
    Region string
    id String
    string → ID of the resource
    name String
    region String
    id string
    string → ID of the resource
    name string
    region string
    id str
    string → ID of the resource
    name str
    region str
    id String
    string → ID of the resource
    name String
    region String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs