1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. BackupStorageLocation
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.BackupStorageLocation

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const bsl1 = new spectrocloud.BackupStorageLocation("bsl1", {
        context: "tenant",
        isDefault: false,
        region: "us-east-2",
        bucketName: "dev-backup",
        s3: {
            credentialType: _var.credential_type,
            accessKey: _var.aws_access_key,
            secretKey: _var.aws_secret_key,
            s3ForcePathStyle: false,
        },
    });
    const bsl2 = new spectrocloud.BackupStorageLocation("bsl2", {
        isDefault: false,
        region: "us-east-2",
        bucketName: "prod-backup",
        s3: {
            credentialType: _var.credential_type,
            arn: _var.arn,
            externalId: _var.external_id,
            s3ForcePathStyle: false,
        },
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    bsl1 = spectrocloud.BackupStorageLocation("bsl1",
        context="tenant",
        is_default=False,
        region="us-east-2",
        bucket_name="dev-backup",
        s3={
            "credential_type": var["credential_type"],
            "access_key": var["aws_access_key"],
            "secret_key": var["aws_secret_key"],
            "s3_force_path_style": False,
        })
    bsl2 = spectrocloud.BackupStorageLocation("bsl2",
        is_default=False,
        region="us-east-2",
        bucket_name="prod-backup",
        s3={
            "credential_type": var["credential_type"],
            "arn": var["arn"],
            "external_id": var["external_id"],
            "s3_force_path_style": False,
        })
    
    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.NewBackupStorageLocation(ctx, "bsl1", &spectrocloud.BackupStorageLocationArgs{
    			Context:    pulumi.String("tenant"),
    			IsDefault:  pulumi.Bool(false),
    			Region:     pulumi.String("us-east-2"),
    			BucketName: pulumi.String("dev-backup"),
    			S3: &spectrocloud.BackupStorageLocationS3Args{
    				CredentialType:   pulumi.Any(_var.Credential_type),
    				AccessKey:        pulumi.Any(_var.Aws_access_key),
    				SecretKey:        pulumi.Any(_var.Aws_secret_key),
    				S3ForcePathStyle: pulumi.Bool(false),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = spectrocloud.NewBackupStorageLocation(ctx, "bsl2", &spectrocloud.BackupStorageLocationArgs{
    			IsDefault:  pulumi.Bool(false),
    			Region:     pulumi.String("us-east-2"),
    			BucketName: pulumi.String("prod-backup"),
    			S3: &spectrocloud.BackupStorageLocationS3Args{
    				CredentialType:   pulumi.Any(_var.Credential_type),
    				Arn:              pulumi.Any(_var.Arn),
    				ExternalId:       pulumi.Any(_var.External_id),
    				S3ForcePathStyle: pulumi.Bool(false),
    			},
    		})
    		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 bsl1 = new Spectrocloud.BackupStorageLocation("bsl1", new()
        {
            Context = "tenant",
            IsDefault = false,
            Region = "us-east-2",
            BucketName = "dev-backup",
            S3 = new Spectrocloud.Inputs.BackupStorageLocationS3Args
            {
                CredentialType = @var.Credential_type,
                AccessKey = @var.Aws_access_key,
                SecretKey = @var.Aws_secret_key,
                S3ForcePathStyle = false,
            },
        });
    
        var bsl2 = new Spectrocloud.BackupStorageLocation("bsl2", new()
        {
            IsDefault = false,
            Region = "us-east-2",
            BucketName = "prod-backup",
            S3 = new Spectrocloud.Inputs.BackupStorageLocationS3Args
            {
                CredentialType = @var.Credential_type,
                Arn = @var.Arn,
                ExternalId = @var.External_id,
                S3ForcePathStyle = false,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.BackupStorageLocation;
    import com.pulumi.spectrocloud.BackupStorageLocationArgs;
    import com.pulumi.spectrocloud.inputs.BackupStorageLocationS3Args;
    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 bsl1 = new BackupStorageLocation("bsl1", BackupStorageLocationArgs.builder()
                .context("tenant")
                .isDefault(false)
                .region("us-east-2")
                .bucketName("dev-backup")
                .s3(BackupStorageLocationS3Args.builder()
                    .credentialType(var_.credential_type())
                    .accessKey(var_.aws_access_key())
                    .secretKey(var_.aws_secret_key())
                    .s3ForcePathStyle(false)
                    .build())
                .build());
    
            var bsl2 = new BackupStorageLocation("bsl2", BackupStorageLocationArgs.builder()
                .isDefault(false)
                .region("us-east-2")
                .bucketName("prod-backup")
                .s3(BackupStorageLocationS3Args.builder()
                    .credentialType(var_.credential_type())
                    .arn(var_.arn())
                    .externalId(var_.external_id())
                    .s3ForcePathStyle(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      bsl1:
        type: spectrocloud:BackupStorageLocation
        properties:
          context: tenant
          isDefault: false
          region: us-east-2
          bucketName: dev-backup
          s3:
            credentialType: ${var.credential_type}
            accessKey: ${var.aws_access_key}
            secretKey: ${var.aws_secret_key}
            s3ForcePathStyle: false
      bsl2:
        type: spectrocloud:BackupStorageLocation
        properties:
          isDefault: false
          region: us-east-2
          bucketName: prod-backup
          s3:
            credentialType: ${var.credential_type}
            arn: ${var.arn}
            externalId: ${var.external_id}
            s3ForcePathStyle: false
    

    Create BackupStorageLocation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BackupStorageLocation(name: string, args?: BackupStorageLocationArgs, opts?: CustomResourceOptions);
    @overload
    def BackupStorageLocation(resource_name: str,
                              args: Optional[BackupStorageLocationArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupStorageLocation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              azure_storage_config: Optional[BackupStorageLocationAzureStorageConfigArgs] = None,
                              backup_storage_location_id: Optional[str] = None,
                              bucket_name: Optional[str] = None,
                              ca_cert: Optional[str] = None,
                              context: Optional[str] = None,
                              gcp_storage_config: Optional[BackupStorageLocationGcpStorageConfigArgs] = None,
                              is_default: Optional[bool] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              s3: Optional[BackupStorageLocationS3Args] = None,
                              storage_provider: Optional[str] = None,
                              timeouts: Optional[BackupStorageLocationTimeoutsArgs] = None)
    func NewBackupStorageLocation(ctx *Context, name string, args *BackupStorageLocationArgs, opts ...ResourceOption) (*BackupStorageLocation, error)
    public BackupStorageLocation(string name, BackupStorageLocationArgs? args = null, CustomResourceOptions? opts = null)
    public BackupStorageLocation(String name, BackupStorageLocationArgs args)
    public BackupStorageLocation(String name, BackupStorageLocationArgs args, CustomResourceOptions options)
    
    type: spectrocloud:BackupStorageLocation
    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 BackupStorageLocationArgs
    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 BackupStorageLocationArgs
    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 BackupStorageLocationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupStorageLocationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupStorageLocationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var backupStorageLocationResource = new Spectrocloud.BackupStorageLocation("backupStorageLocationResource", new()
    {
        AzureStorageConfig = new Spectrocloud.Inputs.BackupStorageLocationAzureStorageConfigArgs
        {
            AzureClientId = "string",
            AzureClientSecret = "string",
            AzureTenantId = "string",
            ContainerName = "string",
            ResourceGroup = "string",
            StockKeepingUnit = "string",
            StorageName = "string",
            SubscriptionId = "string",
        },
        BackupStorageLocationId = "string",
        BucketName = "string",
        CaCert = "string",
        Context = "string",
        GcpStorageConfig = new Spectrocloud.Inputs.BackupStorageLocationGcpStorageConfigArgs
        {
            GcpJsonCredentials = "string",
            ProjectId = "string",
        },
        IsDefault = false,
        Name = "string",
        Region = "string",
        S3 = new Spectrocloud.Inputs.BackupStorageLocationS3Args
        {
            CredentialType = "string",
            AccessKey = "string",
            Arn = "string",
            ExternalId = "string",
            S3ForcePathStyle = false,
            S3Url = "string",
            SecretKey = "string",
        },
        StorageProvider = "string",
        Timeouts = new Spectrocloud.Inputs.BackupStorageLocationTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := spectrocloud.NewBackupStorageLocation(ctx, "backupStorageLocationResource", &spectrocloud.BackupStorageLocationArgs{
    	AzureStorageConfig: &spectrocloud.BackupStorageLocationAzureStorageConfigArgs{
    		AzureClientId:     pulumi.String("string"),
    		AzureClientSecret: pulumi.String("string"),
    		AzureTenantId:     pulumi.String("string"),
    		ContainerName:     pulumi.String("string"),
    		ResourceGroup:     pulumi.String("string"),
    		StockKeepingUnit:  pulumi.String("string"),
    		StorageName:       pulumi.String("string"),
    		SubscriptionId:    pulumi.String("string"),
    	},
    	BackupStorageLocationId: pulumi.String("string"),
    	BucketName:              pulumi.String("string"),
    	CaCert:                  pulumi.String("string"),
    	Context:                 pulumi.String("string"),
    	GcpStorageConfig: &spectrocloud.BackupStorageLocationGcpStorageConfigArgs{
    		GcpJsonCredentials: pulumi.String("string"),
    		ProjectId:          pulumi.String("string"),
    	},
    	IsDefault: pulumi.Bool(false),
    	Name:      pulumi.String("string"),
    	Region:    pulumi.String("string"),
    	S3: &spectrocloud.BackupStorageLocationS3Args{
    		CredentialType:   pulumi.String("string"),
    		AccessKey:        pulumi.String("string"),
    		Arn:              pulumi.String("string"),
    		ExternalId:       pulumi.String("string"),
    		S3ForcePathStyle: pulumi.Bool(false),
    		S3Url:            pulumi.String("string"),
    		SecretKey:        pulumi.String("string"),
    	},
    	StorageProvider: pulumi.String("string"),
    	Timeouts: &spectrocloud.BackupStorageLocationTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var backupStorageLocationResource = new BackupStorageLocation("backupStorageLocationResource", BackupStorageLocationArgs.builder()
        .azureStorageConfig(BackupStorageLocationAzureStorageConfigArgs.builder()
            .azureClientId("string")
            .azureClientSecret("string")
            .azureTenantId("string")
            .containerName("string")
            .resourceGroup("string")
            .stockKeepingUnit("string")
            .storageName("string")
            .subscriptionId("string")
            .build())
        .backupStorageLocationId("string")
        .bucketName("string")
        .caCert("string")
        .context("string")
        .gcpStorageConfig(BackupStorageLocationGcpStorageConfigArgs.builder()
            .gcpJsonCredentials("string")
            .projectId("string")
            .build())
        .isDefault(false)
        .name("string")
        .region("string")
        .s3(BackupStorageLocationS3Args.builder()
            .credentialType("string")
            .accessKey("string")
            .arn("string")
            .externalId("string")
            .s3ForcePathStyle(false)
            .s3Url("string")
            .secretKey("string")
            .build())
        .storageProvider("string")
        .timeouts(BackupStorageLocationTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    backup_storage_location_resource = spectrocloud.BackupStorageLocation("backupStorageLocationResource",
        azure_storage_config={
            "azure_client_id": "string",
            "azure_client_secret": "string",
            "azure_tenant_id": "string",
            "container_name": "string",
            "resource_group": "string",
            "stock_keeping_unit": "string",
            "storage_name": "string",
            "subscription_id": "string",
        },
        backup_storage_location_id="string",
        bucket_name="string",
        ca_cert="string",
        context="string",
        gcp_storage_config={
            "gcp_json_credentials": "string",
            "project_id": "string",
        },
        is_default=False,
        name="string",
        region="string",
        s3={
            "credential_type": "string",
            "access_key": "string",
            "arn": "string",
            "external_id": "string",
            "s3_force_path_style": False,
            "s3_url": "string",
            "secret_key": "string",
        },
        storage_provider="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const backupStorageLocationResource = new spectrocloud.BackupStorageLocation("backupStorageLocationResource", {
        azureStorageConfig: {
            azureClientId: "string",
            azureClientSecret: "string",
            azureTenantId: "string",
            containerName: "string",
            resourceGroup: "string",
            stockKeepingUnit: "string",
            storageName: "string",
            subscriptionId: "string",
        },
        backupStorageLocationId: "string",
        bucketName: "string",
        caCert: "string",
        context: "string",
        gcpStorageConfig: {
            gcpJsonCredentials: "string",
            projectId: "string",
        },
        isDefault: false,
        name: "string",
        region: "string",
        s3: {
            credentialType: "string",
            accessKey: "string",
            arn: "string",
            externalId: "string",
            s3ForcePathStyle: false,
            s3Url: "string",
            secretKey: "string",
        },
        storageProvider: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: spectrocloud:BackupStorageLocation
    properties:
        azureStorageConfig:
            azureClientId: string
            azureClientSecret: string
            azureTenantId: string
            containerName: string
            resourceGroup: string
            stockKeepingUnit: string
            storageName: string
            subscriptionId: string
        backupStorageLocationId: string
        bucketName: string
        caCert: string
        context: string
        gcpStorageConfig:
            gcpJsonCredentials: string
            projectId: string
        isDefault: false
        name: string
        region: string
        s3:
            accessKey: string
            arn: string
            credentialType: string
            externalId: string
            s3ForcePathStyle: false
            s3Url: string
            secretKey: string
        storageProvider: string
        timeouts:
            create: string
            delete: string
            update: string
    

    BackupStorageLocation 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 BackupStorageLocation resource accepts the following input properties:

    AzureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    BackupStorageLocationId string
    The ID of this resource.
    BucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    CaCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    Context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    GcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    IsDefault bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    Name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    Region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    S3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    StorageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    Timeouts BackupStorageLocationTimeouts
    AzureStorageConfig BackupStorageLocationAzureStorageConfigArgs
    Azure storage settings for configuring the backup storage location.
    BackupStorageLocationId string
    The ID of this resource.
    BucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    CaCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    Context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    GcpStorageConfig BackupStorageLocationGcpStorageConfigArgs
    GCP storage settings for configuring the backup storage location.
    IsDefault bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    Name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    Region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    S3 BackupStorageLocationS3Args
    S3-specific settings for configuring the backup storage location.
    StorageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    Timeouts BackupStorageLocationTimeoutsArgs
    azureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId String
    The ID of this resource.
    bucketName String
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert String
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context String
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    isDefault Boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name String
    The name of the backup storage location. This is a unique identifier for the backup location.
    region String
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    storageProvider String
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeouts
    azureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId string
    The ID of this resource.
    bucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    isDefault boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    storageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeouts
    azure_storage_config BackupStorageLocationAzureStorageConfigArgs
    Azure storage settings for configuring the backup storage location.
    backup_storage_location_id str
    The ID of this resource.
    bucket_name str
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    ca_cert str
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context str
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcp_storage_config BackupStorageLocationGcpStorageConfigArgs
    GCP storage settings for configuring the backup storage location.
    is_default bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    name str
    The name of the backup storage location. This is a unique identifier for the backup location.
    region str
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3Args
    S3-specific settings for configuring the backup storage location.
    storage_provider str
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeoutsArgs
    azureStorageConfig Property Map
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId String
    The ID of this resource.
    bucketName String
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert String
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context String
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig Property Map
    GCP storage settings for configuring the backup storage location.
    isDefault Boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name String
    The name of the backup storage location. This is a unique identifier for the backup location.
    region String
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 Property Map
    S3-specific settings for configuring the backup storage location.
    storageProvider String
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BackupStorageLocation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BackupStorageLocation Resource

    Get an existing BackupStorageLocation 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?: BackupStorageLocationState, opts?: CustomResourceOptions): BackupStorageLocation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            azure_storage_config: Optional[BackupStorageLocationAzureStorageConfigArgs] = None,
            backup_storage_location_id: Optional[str] = None,
            bucket_name: Optional[str] = None,
            ca_cert: Optional[str] = None,
            context: Optional[str] = None,
            gcp_storage_config: Optional[BackupStorageLocationGcpStorageConfigArgs] = None,
            is_default: Optional[bool] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            s3: Optional[BackupStorageLocationS3Args] = None,
            storage_provider: Optional[str] = None,
            timeouts: Optional[BackupStorageLocationTimeoutsArgs] = None) -> BackupStorageLocation
    func GetBackupStorageLocation(ctx *Context, name string, id IDInput, state *BackupStorageLocationState, opts ...ResourceOption) (*BackupStorageLocation, error)
    public static BackupStorageLocation Get(string name, Input<string> id, BackupStorageLocationState? state, CustomResourceOptions? opts = null)
    public static BackupStorageLocation get(String name, Output<String> id, BackupStorageLocationState state, CustomResourceOptions options)
    resources:  _:    type: spectrocloud:BackupStorageLocation    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.
    The following state arguments are supported:
    AzureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    BackupStorageLocationId string
    The ID of this resource.
    BucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    CaCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    Context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    GcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    IsDefault bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    Name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    Region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    S3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    StorageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    Timeouts BackupStorageLocationTimeouts
    AzureStorageConfig BackupStorageLocationAzureStorageConfigArgs
    Azure storage settings for configuring the backup storage location.
    BackupStorageLocationId string
    The ID of this resource.
    BucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    CaCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    Context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    GcpStorageConfig BackupStorageLocationGcpStorageConfigArgs
    GCP storage settings for configuring the backup storage location.
    IsDefault bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    Name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    Region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    S3 BackupStorageLocationS3Args
    S3-specific settings for configuring the backup storage location.
    StorageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    Timeouts BackupStorageLocationTimeoutsArgs
    azureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId String
    The ID of this resource.
    bucketName String
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert String
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context String
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    isDefault Boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name String
    The name of the backup storage location. This is a unique identifier for the backup location.
    region String
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    storageProvider String
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeouts
    azureStorageConfig BackupStorageLocationAzureStorageConfig
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId string
    The ID of this resource.
    bucketName string
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert string
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context string
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig BackupStorageLocationGcpStorageConfig
    GCP storage settings for configuring the backup storage location.
    isDefault boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name string
    The name of the backup storage location. This is a unique identifier for the backup location.
    region string
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3
    S3-specific settings for configuring the backup storage location.
    storageProvider string
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeouts
    azure_storage_config BackupStorageLocationAzureStorageConfigArgs
    Azure storage settings for configuring the backup storage location.
    backup_storage_location_id str
    The ID of this resource.
    bucket_name str
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    ca_cert str
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context str
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcp_storage_config BackupStorageLocationGcpStorageConfigArgs
    GCP storage settings for configuring the backup storage location.
    is_default bool
    Specifies if this backup storage location should be used as the default location for storing backups.
    name str
    The name of the backup storage location. This is a unique identifier for the backup location.
    region str
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 BackupStorageLocationS3Args
    S3-specific settings for configuring the backup storage location.
    storage_provider str
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts BackupStorageLocationTimeoutsArgs
    azureStorageConfig Property Map
    Azure storage settings for configuring the backup storage location.
    backupStorageLocationId String
    The ID of this resource.
    bucketName String
    The name of the storage bucket where backups are stored. This is relevant for S3 or S3-compatible(minio) or gcp storage services.
    caCert String
    An optional CA certificate used for SSL connections to ensure secure communication with the storage provider. This is relevant for S3 or S3-compatible(minio) storage services.
    context String
    The context of the backup storage location. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    gcpStorageConfig Property Map
    GCP storage settings for configuring the backup storage location.
    isDefault Boolean
    Specifies if this backup storage location should be used as the default location for storing backups.
    name String
    The name of the backup storage location. This is a unique identifier for the backup location.
    region String
    The region where the backup storage is located, typically corresponding to the region of the cloud provider. This is relevant for S3 or S3-compatible(minio) storage services.
    s3 Property Map
    S3-specific settings for configuring the backup storage location.
    storageProvider String
    The storage location provider for backup storage. Allowed values are aws or minio or gcp or azure. Default value is aws.
    timeouts Property Map

    Supporting Types

    BackupStorageLocationAzureStorageConfig, BackupStorageLocationAzureStorageConfigArgs

    AzureClientId string
    Unique client Id from Azure console.
    AzureClientSecret string
    Azure secret for authentication.
    AzureTenantId string
    Unique tenant Id from Azure console.
    ContainerName string
    The container name.
    ResourceGroup string
    The resource group name.
    StockKeepingUnit string
    The stop-keeping unit. eg: Standard_LRS
    StorageName string
    The storage name.
    SubscriptionId string
    Unique subscription Id from Azure console.
    AzureClientId string
    Unique client Id from Azure console.
    AzureClientSecret string
    Azure secret for authentication.
    AzureTenantId string
    Unique tenant Id from Azure console.
    ContainerName string
    The container name.
    ResourceGroup string
    The resource group name.
    StockKeepingUnit string
    The stop-keeping unit. eg: Standard_LRS
    StorageName string
    The storage name.
    SubscriptionId string
    Unique subscription Id from Azure console.
    azureClientId String
    Unique client Id from Azure console.
    azureClientSecret String
    Azure secret for authentication.
    azureTenantId String
    Unique tenant Id from Azure console.
    containerName String
    The container name.
    resourceGroup String
    The resource group name.
    stockKeepingUnit String
    The stop-keeping unit. eg: Standard_LRS
    storageName String
    The storage name.
    subscriptionId String
    Unique subscription Id from Azure console.
    azureClientId string
    Unique client Id from Azure console.
    azureClientSecret string
    Azure secret for authentication.
    azureTenantId string
    Unique tenant Id from Azure console.
    containerName string
    The container name.
    resourceGroup string
    The resource group name.
    stockKeepingUnit string
    The stop-keeping unit. eg: Standard_LRS
    storageName string
    The storage name.
    subscriptionId string
    Unique subscription Id from Azure console.
    azure_client_id str
    Unique client Id from Azure console.
    azure_client_secret str
    Azure secret for authentication.
    azure_tenant_id str
    Unique tenant Id from Azure console.
    container_name str
    The container name.
    resource_group str
    The resource group name.
    stock_keeping_unit str
    The stop-keeping unit. eg: Standard_LRS
    storage_name str
    The storage name.
    subscription_id str
    Unique subscription Id from Azure console.
    azureClientId String
    Unique client Id from Azure console.
    azureClientSecret String
    Azure secret for authentication.
    azureTenantId String
    Unique tenant Id from Azure console.
    containerName String
    The container name.
    resourceGroup String
    The resource group name.
    stockKeepingUnit String
    The stop-keeping unit. eg: Standard_LRS
    storageName String
    The storage name.
    subscriptionId String
    Unique subscription Id from Azure console.

    BackupStorageLocationGcpStorageConfig, BackupStorageLocationGcpStorageConfigArgs

    GcpJsonCredentials string
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    ProjectId string
    The GCP project ID.
    GcpJsonCredentials string
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    ProjectId string
    The GCP project ID.
    gcpJsonCredentials String
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    projectId String
    The GCP project ID.
    gcpJsonCredentials string
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    projectId string
    The GCP project ID.
    gcp_json_credentials str
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    project_id str
    The GCP project ID.
    gcpJsonCredentials String
    The GCP credentials in JSON format. These credentials are required to authenticate and manage.
    projectId String
    The GCP project ID.

    BackupStorageLocationS3, BackupStorageLocationS3Args

    CredentialType string
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    AccessKey string
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    Arn string
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    ExternalId string
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    S3ForcePathStyle bool
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    S3Url string
    The S3 URL endpoint.
    SecretKey string
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
    CredentialType string
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    AccessKey string
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    Arn string
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    ExternalId string
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    S3ForcePathStyle bool
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    S3Url string
    The S3 URL endpoint.
    SecretKey string
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
    credentialType String
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    accessKey String
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    arn String
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    externalId String
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    s3ForcePathStyle Boolean
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    s3Url String
    The S3 URL endpoint.
    secretKey String
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
    credentialType string
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    accessKey string
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    arn string
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    externalId string
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    s3ForcePathStyle boolean
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    s3Url string
    The S3 URL endpoint.
    secretKey string
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
    credential_type str
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    access_key str
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    arn str
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    external_id str
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    s3_force_path_style bool
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    s3_url str
    The S3 URL endpoint.
    secret_key str
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
    credentialType String
    The type of credentials used to access the S3 storage. Supported values are 'secret' for static credentials and 'sts' for temporary, token-based credentials.
    accessKey String
    The access key for S3 authentication, required if 'credential_type' is set to 'secret'.
    arn String
    The Amazon Resource Name (ARN) of the IAM role to assume for accessing S3 when using 'sts' credentials.
    externalId String
    An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
    s3ForcePathStyle Boolean
    A boolean flag indicating whether to enforce the path-style URL for accessing S3.
    s3Url String
    The S3 URL endpoint.
    secretKey String
    The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.

    BackupStorageLocationTimeouts, BackupStorageLocationTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud