Viewing docs for spectrocloud 0.29.0
published on Sunday, May 3, 2026 by spectrocloud
published on Sunday, May 3, 2026 by spectrocloud
Viewing docs for spectrocloud 0.29.0
published on Sunday, May 3, 2026 by spectrocloud
published on Sunday, May 3, 2026 by spectrocloud
Data source for looking up a backup storage location by ID or name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const example = spectrocloud.getBackupStorageLocation({
name: "default-backup-location",
});
import pulumi
import pulumi_spectrocloud as spectrocloud
example = spectrocloud.get_backup_storage_location(name="default-backup-location")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.LookupBackupStorageLocation(ctx, &spectrocloud.LookupBackupStorageLocationArgs{
Name: pulumi.StringRef("default-backup-location"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var example = Spectrocloud.GetBackupStorageLocation.Invoke(new()
{
Name = "default-backup-location",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetBackupStorageLocationArgs;
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 = SpectrocloudFunctions.getBackupStorageLocation(GetBackupStorageLocationArgs.builder()
.name("default-backup-location")
.build());
}
}
variables:
example:
fn::invoke:
function: spectrocloud:getBackupStorageLocation
arguments:
name: default-backup-location
Using getBackupStorageLocation
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 getBackupStorageLocation(args: GetBackupStorageLocationArgs, opts?: InvokeOptions): Promise<GetBackupStorageLocationResult>
function getBackupStorageLocationOutput(args: GetBackupStorageLocationOutputArgs, opts?: InvokeOptions): Output<GetBackupStorageLocationResult>def get_backup_storage_location(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupStorageLocationResult
def get_backup_storage_location_output(id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupStorageLocationResult]func LookupBackupStorageLocation(ctx *Context, args *LookupBackupStorageLocationArgs, opts ...InvokeOption) (*LookupBackupStorageLocationResult, error)
func LookupBackupStorageLocationOutput(ctx *Context, args *LookupBackupStorageLocationOutputArgs, opts ...InvokeOption) LookupBackupStorageLocationResultOutput> Note: This function is named LookupBackupStorageLocation in the Go SDK.
public static class GetBackupStorageLocation
{
public static Task<GetBackupStorageLocationResult> InvokeAsync(GetBackupStorageLocationArgs args, InvokeOptions? opts = null)
public static Output<GetBackupStorageLocationResult> Invoke(GetBackupStorageLocationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBackupStorageLocationResult> getBackupStorageLocation(GetBackupStorageLocationArgs args, InvokeOptions options)
public static Output<GetBackupStorageLocationResult> getBackupStorageLocation(GetBackupStorageLocationArgs args, InvokeOptions options)
fn::invoke:
function: spectrocloud:index/getBackupStorageLocation:getBackupStorageLocation
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id String
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name String
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id str
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name str
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id String
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name String
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
getBackupStorageLocation Result
The following output properties are available:
- Id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- Name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id String
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name String
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id string
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name string
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id str
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name str
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- id String
- The unique ID of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
- name String
- The name of the backup storage location. This is an optional field, but if provided, it will be used to retrieve the specific backup storage location.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloudTerraform Provider.
Viewing docs for spectrocloud 0.29.0
published on Sunday, May 3, 2026 by spectrocloud
published on Sunday, May 3, 2026 by spectrocloud
