ionoscloud.BackupUnit
Explore with Pulumi AI
Import
A Backup Unit resource can be imported using its resource id
, e.g.
$ pulumi import ionoscloud:index/backupUnit:BackupUnit demo backup_unit_uuid
This can be helpful when you want to import backup units which you have already created manually or using other means, outside of terraform. Please note that you need to manually specify the password when first declaring the resource in terraform, as there is no way to retrieve the password from the Cloud API.
Create BackupUnit Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupUnit(name: string, args: BackupUnitArgs, opts?: CustomResourceOptions);
@overload
def BackupUnit(resource_name: str,
args: BackupUnitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupUnit(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
password: Optional[str] = None,
backup_unit_id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[BackupUnitTimeoutsArgs] = None)
func NewBackupUnit(ctx *Context, name string, args BackupUnitArgs, opts ...ResourceOption) (*BackupUnit, error)
public BackupUnit(string name, BackupUnitArgs args, CustomResourceOptions? opts = null)
public BackupUnit(String name, BackupUnitArgs args)
public BackupUnit(String name, BackupUnitArgs args, CustomResourceOptions options)
type: ionoscloud:BackupUnit
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 BackupUnitArgs
- 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 BackupUnitArgs
- 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 BackupUnitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupUnitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupUnitArgs
- 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 backupUnitResource = new Ionoscloud.BackupUnit("backupUnitResource", new()
{
Email = "string",
Password = "string",
BackupUnitId = "string",
Name = "string",
Timeouts = new Ionoscloud.Inputs.BackupUnitTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := ionoscloud.NewBackupUnit(ctx, "backupUnitResource", &ionoscloud.BackupUnitArgs{
Email: pulumi.String("string"),
Password: pulumi.String("string"),
BackupUnitId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &ionoscloud.BackupUnitTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var backupUnitResource = new BackupUnit("backupUnitResource", BackupUnitArgs.builder()
.email("string")
.password("string")
.backupUnitId("string")
.name("string")
.timeouts(BackupUnitTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
backup_unit_resource = ionoscloud.BackupUnit("backupUnitResource",
email="string",
password="string",
backup_unit_id="string",
name="string",
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const backupUnitResource = new ionoscloud.BackupUnit("backupUnitResource", {
email: "string",
password: "string",
backupUnitId: "string",
name: "string",
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: ionoscloud:BackupUnit
properties:
backupUnitId: string
email: string
name: string
password: string
timeouts:
create: string
default: string
delete: string
update: string
BackupUnit 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 BackupUnit resource accepts the following input properties:
- Email string
- [string] The email address assigned to the backup unit
- Password string
- [string] The desired password for the Backup Unit
- Backup
Unit stringId - Name string
- [string] The name of the Backup Unit. This argument is immutable.
- Timeouts
Backup
Unit Timeouts
- Email string
- [string] The email address assigned to the backup unit
- Password string
- [string] The desired password for the Backup Unit
- Backup
Unit stringId - Name string
- [string] The name of the Backup Unit. This argument is immutable.
- Timeouts
Backup
Unit Timeouts Args
- email String
- [string] The email address assigned to the backup unit
- password String
- [string] The desired password for the Backup Unit
- backup
Unit StringId - name String
- [string] The name of the Backup Unit. This argument is immutable.
- timeouts
Backup
Unit Timeouts
- email string
- [string] The email address assigned to the backup unit
- password string
- [string] The desired password for the Backup Unit
- backup
Unit stringId - name string
- [string] The name of the Backup Unit. This argument is immutable.
- timeouts
Backup
Unit Timeouts
- email str
- [string] The email address assigned to the backup unit
- password str
- [string] The desired password for the Backup Unit
- backup_
unit_ strid - name str
- [string] The name of the Backup Unit. This argument is immutable.
- timeouts
Backup
Unit Timeouts Args
- email String
- [string] The email address assigned to the backup unit
- password String
- [string] The desired password for the Backup Unit
- backup
Unit StringId - name String
- [string] The name of the Backup Unit. This argument is immutable.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupUnit resource produces the following output properties:
Look up Existing BackupUnit Resource
Get an existing BackupUnit 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?: BackupUnitState, opts?: CustomResourceOptions): BackupUnit
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_unit_id: Optional[str] = None,
email: Optional[str] = None,
login: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
timeouts: Optional[BackupUnitTimeoutsArgs] = None) -> BackupUnit
func GetBackupUnit(ctx *Context, name string, id IDInput, state *BackupUnitState, opts ...ResourceOption) (*BackupUnit, error)
public static BackupUnit Get(string name, Input<string> id, BackupUnitState? state, CustomResourceOptions? opts = null)
public static BackupUnit get(String name, Output<String> id, BackupUnitState state, CustomResourceOptions options)
resources: _: type: ionoscloud:BackupUnit 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.
- Backup
Unit stringId - Email string
- [string] The email address assigned to the backup unit
- Login string
- The login associated with the backup unit. Derived from the contract number
- Name string
- [string] The name of the Backup Unit. This argument is immutable.
- Password string
- [string] The desired password for the Backup Unit
- Timeouts
Backup
Unit Timeouts
- Backup
Unit stringId - Email string
- [string] The email address assigned to the backup unit
- Login string
- The login associated with the backup unit. Derived from the contract number
- Name string
- [string] The name of the Backup Unit. This argument is immutable.
- Password string
- [string] The desired password for the Backup Unit
- Timeouts
Backup
Unit Timeouts Args
- backup
Unit StringId - email String
- [string] The email address assigned to the backup unit
- login String
- The login associated with the backup unit. Derived from the contract number
- name String
- [string] The name of the Backup Unit. This argument is immutable.
- password String
- [string] The desired password for the Backup Unit
- timeouts
Backup
Unit Timeouts
- backup
Unit stringId - email string
- [string] The email address assigned to the backup unit
- login string
- The login associated with the backup unit. Derived from the contract number
- name string
- [string] The name of the Backup Unit. This argument is immutable.
- password string
- [string] The desired password for the Backup Unit
- timeouts
Backup
Unit Timeouts
- backup_
unit_ strid - email str
- [string] The email address assigned to the backup unit
- login str
- The login associated with the backup unit. Derived from the contract number
- name str
- [string] The name of the Backup Unit. This argument is immutable.
- password str
- [string] The desired password for the Backup Unit
- timeouts
Backup
Unit Timeouts Args
- backup
Unit StringId - email String
- [string] The email address assigned to the backup unit
- login String
- The login associated with the backup unit. Derived from the contract number
- name String
- [string] The name of the Backup Unit. This argument is immutable.
- password String
- [string] The desired password for the Backup Unit
- timeouts Property Map
Supporting Types
BackupUnitTimeouts, BackupUnitTimeoutsArgs
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.