spectrocloud.BackupStorageLocation
Explore with Pulumi AI
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:
- Azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- Backup
Storage stringLocation Id - The ID of this resource.
- Bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Storage BackupConfig Storage Location Gcp Storage Config - 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 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- Storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - Timeouts
Backup
Storage Location Timeouts
- Azure
Storage BackupConfig Storage Location Azure Storage Config Args - Azure storage settings for configuring the backup storage location.
- Backup
Storage stringLocation Id - The ID of this resource.
- Bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Storage BackupConfig Storage Location Gcp Storage Config Args - 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 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
Backup
Storage Location S3Args - S3-specific settings for configuring the backup storage location.
- Storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - Timeouts
Backup
Storage Location Timeouts Args
- azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- backup
Storage StringLocation Id - The ID of this resource.
- bucket
Name String - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage BackupConfig Storage Location Gcp Storage Config - GCP storage settings for configuring the backup storage location.
- is
Default 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- storage
Provider String - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts
- azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- backup
Storage stringLocation Id - The ID of this resource.
- bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage BackupConfig Storage Location Gcp Storage Config - GCP storage settings for configuring the backup storage location.
- is
Default 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts
- azure_
storage_ Backupconfig Storage Location Azure Storage Config Args - Azure storage settings for configuring the backup storage location.
- backup_
storage_ strlocation_ id - 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp_
storage_ Backupconfig Storage Location Gcp Storage Config Args - 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
Backup
Storage Location S3Args - S3-specific settings for configuring the backup storage location.
- storage_
provider str - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts Args
- azure
Storage Property MapConfig - Azure storage settings for configuring the backup storage location.
- backup
Storage StringLocation Id - The ID of this resource.
- bucket
Name String - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage Property MapConfig - GCP storage settings for configuring the backup storage location.
- is
Default 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.
- storage
Provider String - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - 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.
- Azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- Backup
Storage stringLocation Id - The ID of this resource.
- Bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Storage BackupConfig Storage Location Gcp Storage Config - 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 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- Storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - Timeouts
Backup
Storage Location Timeouts
- Azure
Storage BackupConfig Storage Location Azure Storage Config Args - Azure storage settings for configuring the backup storage location.
- Backup
Storage stringLocation Id - The ID of this resource.
- Bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Storage BackupConfig Storage Location Gcp Storage Config Args - 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 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
Backup
Storage Location S3Args - S3-specific settings for configuring the backup storage location.
- Storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - Timeouts
Backup
Storage Location Timeouts Args
- azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- backup
Storage StringLocation Id - The ID of this resource.
- bucket
Name String - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage BackupConfig Storage Location Gcp Storage Config - GCP storage settings for configuring the backup storage location.
- is
Default 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- storage
Provider String - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts
- azure
Storage BackupConfig Storage Location Azure Storage Config - Azure storage settings for configuring the backup storage location.
- backup
Storage stringLocation Id - The ID of this resource.
- bucket
Name string - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage BackupConfig Storage Location Gcp Storage Config - GCP storage settings for configuring the backup storage location.
- is
Default 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
Backup
Storage Location S3 - S3-specific settings for configuring the backup storage location.
- storage
Provider string - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts
- azure_
storage_ Backupconfig Storage Location Azure Storage Config Args - Azure storage settings for configuring the backup storage location.
- backup_
storage_ strlocation_ id - 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp_
storage_ Backupconfig Storage Location Gcp Storage Config Args - 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
Backup
Storage Location S3Args - S3-specific settings for configuring the backup storage location.
- storage_
provider str - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts
Backup
Storage Location Timeouts Args
- azure
Storage Property MapConfig - Azure storage settings for configuring the backup storage location.
- backup
Storage StringLocation Id - The ID of this resource.
- bucket
Name String - 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 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
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Storage Property MapConfig - GCP storage settings for configuring the backup storage location.
- is
Default 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.
- storage
Provider String - The storage location provider for backup storage. Allowed values are
aws
orminio
orgcp
orazure
. Default value isaws
. - timeouts Property Map
Supporting Types
BackupStorageLocationAzureStorageConfig, BackupStorageLocationAzureStorageConfigArgs
- Azure
Client stringId - Unique client Id from Azure console.
- Azure
Client stringSecret - Azure secret for authentication.
- Azure
Tenant stringId - Unique tenant Id from Azure console.
- Container
Name string - The container name.
- Resource
Group string - The resource group name.
- Stock
Keeping stringUnit - The stop-keeping unit. eg:
Standard_LRS
- Storage
Name string - The storage name.
- Subscription
Id string - Unique subscription Id from Azure console.
- Azure
Client stringId - Unique client Id from Azure console.
- Azure
Client stringSecret - Azure secret for authentication.
- Azure
Tenant stringId - Unique tenant Id from Azure console.
- Container
Name string - The container name.
- Resource
Group string - The resource group name.
- Stock
Keeping stringUnit - The stop-keeping unit. eg:
Standard_LRS
- Storage
Name string - The storage name.
- Subscription
Id string - Unique subscription Id from Azure console.
- azure
Client StringId - Unique client Id from Azure console.
- azure
Client StringSecret - Azure secret for authentication.
- azure
Tenant StringId - Unique tenant Id from Azure console.
- container
Name String - The container name.
- resource
Group String - The resource group name.
- stock
Keeping StringUnit - The stop-keeping unit. eg:
Standard_LRS
- storage
Name String - The storage name.
- subscription
Id String - Unique subscription Id from Azure console.
- azure
Client stringId - Unique client Id from Azure console.
- azure
Client stringSecret - Azure secret for authentication.
- azure
Tenant stringId - Unique tenant Id from Azure console.
- container
Name string - The container name.
- resource
Group string - The resource group name.
- stock
Keeping stringUnit - The stop-keeping unit. eg:
Standard_LRS
- storage
Name string - The storage name.
- subscription
Id string - Unique subscription Id from Azure console.
- azure_
client_ strid - Unique client Id from Azure console.
- azure_
client_ strsecret - Azure secret for authentication.
- azure_
tenant_ strid - Unique tenant Id from Azure console.
- container_
name str - The container name.
- resource_
group str - The resource group name.
- stock_
keeping_ strunit - The stop-keeping unit. eg:
Standard_LRS
- storage_
name str - The storage name.
- subscription_
id str - Unique subscription Id from Azure console.
- azure
Client StringId - Unique client Id from Azure console.
- azure
Client StringSecret - Azure secret for authentication.
- azure
Tenant StringId - Unique tenant Id from Azure console.
- container
Name String - The container name.
- resource
Group String - The resource group name.
- stock
Keeping StringUnit - The stop-keeping unit. eg:
Standard_LRS
- storage
Name String - The storage name.
- subscription
Id String - Unique subscription Id from Azure console.
BackupStorageLocationGcpStorageConfig, BackupStorageLocationGcpStorageConfigArgs
- Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Project
Id string - The GCP project ID.
- Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Project
Id string - The GCP project ID.
- gcp
Json StringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- project
Id String - The GCP project ID.
- gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- project
Id string - The GCP project ID.
- gcp_
json_ strcredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- project_
id str - The GCP project ID.
- gcp
Json StringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- project
Id String - The GCP project ID.
BackupStorageLocationS3, BackupStorageLocationS3Args
- Credential
Type 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.
- Access
Key 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.
- External
Id string - An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
- S3Force
Path boolStyle - A boolean flag indicating whether to enforce the path-style URL for accessing S3.
- S3Url string
- The S3 URL endpoint.
- Secret
Key string - The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
- Credential
Type 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.
- Access
Key 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.
- External
Id string - An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
- S3Force
Path boolStyle - A boolean flag indicating whether to enforce the path-style URL for accessing S3.
- S3Url string
- The S3 URL endpoint.
- Secret
Key string - The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
- credential
Type 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.
- access
Key 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.
- external
Id String - An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
- s3Force
Path BooleanStyle - A boolean flag indicating whether to enforce the path-style URL for accessing S3.
- s3Url String
- The S3 URL endpoint.
- secret
Key String - The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
- credential
Type 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.
- access
Key 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.
- external
Id string - An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
- s3Force
Path booleanStyle - A boolean flag indicating whether to enforce the path-style URL for accessing S3.
- s3Url string
- The S3 URL endpoint.
- secret
Key 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_ boolpath_ style - 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'.
- credential
Type 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.
- access
Key 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.
- external
Id String - An external ID used for cross-account access to the S3 storage when using 'sts' credentials.
- s3Force
Path BooleanStyle - A boolean flag indicating whether to enforce the path-style URL for accessing S3.
- s3Url String
- The S3 URL endpoint.
- secret
Key String - The secret key for S3 authentication, required if 'credential_type' is set to 'secret'.
BackupStorageLocationTimeouts, BackupStorageLocationTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.