1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. BackupUnit
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.BackupUnit

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    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
    BackupUnitId string
    Name string
    [string] The name of the Backup Unit. This argument is immutable.
    Timeouts BackupUnitTimeouts
    Email string
    [string] The email address assigned to the backup unit
    Password string
    [string] The desired password for the Backup Unit
    BackupUnitId string
    Name string
    [string] The name of the Backup Unit. This argument is immutable.
    Timeouts BackupUnitTimeoutsArgs
    email String
    [string] The email address assigned to the backup unit
    password String
    [string] The desired password for the Backup Unit
    backupUnitId String
    name String
    [string] The name of the Backup Unit. This argument is immutable.
    timeouts BackupUnitTimeouts
    email string
    [string] The email address assigned to the backup unit
    password string
    [string] The desired password for the Backup Unit
    backupUnitId string
    name string
    [string] The name of the Backup Unit. This argument is immutable.
    timeouts BackupUnitTimeouts
    email str
    [string] The email address assigned to the backup unit
    password str
    [string] The desired password for the Backup Unit
    backup_unit_id str
    name str
    [string] The name of the Backup Unit. This argument is immutable.
    timeouts BackupUnitTimeoutsArgs
    email String
    [string] The email address assigned to the backup unit
    password String
    [string] The desired password for the Backup Unit
    backupUnitId String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Login string
    The login associated with the backup unit. Derived from the contract number
    Id string
    The provider-assigned unique ID for this managed resource.
    Login string
    The login associated with the backup unit. Derived from the contract number
    id String
    The provider-assigned unique ID for this managed resource.
    login String
    The login associated with the backup unit. Derived from the contract number
    id string
    The provider-assigned unique ID for this managed resource.
    login string
    The login associated with the backup unit. Derived from the contract number
    id str
    The provider-assigned unique ID for this managed resource.
    login str
    The login associated with the backup unit. Derived from the contract number
    id String
    The provider-assigned unique ID for this managed resource.
    login String
    The login associated with the backup unit. Derived from the contract number

    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.
    The following state arguments are supported:
    BackupUnitId string
    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 BackupUnitTimeouts
    BackupUnitId string
    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 BackupUnitTimeoutsArgs
    backupUnitId String
    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 BackupUnitTimeouts
    backupUnitId string
    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 BackupUnitTimeouts
    backup_unit_id str
    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 BackupUnitTimeoutsArgs
    backupUnitId String
    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

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud