1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. ServerBackupEnable
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud

    Server backup enable resource schema. Must have a region specified in the provider configuration. Always use only one enable resource per server.

    Create ServerBackupEnable Resource

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

    Constructor syntax

    new ServerBackupEnable(name: string, args: ServerBackupEnableArgs, opts?: CustomResourceOptions);
    @overload
    def ServerBackupEnable(resource_name: str,
                           args: ServerBackupEnableArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerBackupEnable(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           project_id: Optional[str] = None,
                           server_id: Optional[str] = None,
                           backup_policy_id: Optional[str] = None,
                           region: Optional[str] = None)
    func NewServerBackupEnable(ctx *Context, name string, args ServerBackupEnableArgs, opts ...ResourceOption) (*ServerBackupEnable, error)
    public ServerBackupEnable(string name, ServerBackupEnableArgs args, CustomResourceOptions? opts = null)
    public ServerBackupEnable(String name, ServerBackupEnableArgs args)
    public ServerBackupEnable(String name, ServerBackupEnableArgs args, CustomResourceOptions options)
    
    type: stackit:ServerBackupEnable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "stackit_serverbackupenable" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ServerBackupEnableArgs
    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 ServerBackupEnableArgs
    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 ServerBackupEnableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerBackupEnableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerBackupEnableArgs
    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 serverBackupEnableResource = new Stackit.ServerBackupEnable("serverBackupEnableResource", new()
    {
        ProjectId = "string",
        ServerId = "string",
        BackupPolicyId = "string",
        Region = "string",
    });
    
    example, err := stackit.NewServerBackupEnable(ctx, "serverBackupEnableResource", &stackit.ServerBackupEnableArgs{
    	ProjectId:      pulumi.String("string"),
    	ServerId:       pulumi.String("string"),
    	BackupPolicyId: pulumi.String("string"),
    	Region:         pulumi.String("string"),
    })
    
    resource "stackit_serverbackupenable" "serverBackupEnableResource" {
      project_id       = "string"
      server_id        = "string"
      backup_policy_id = "string"
      region           = "string"
    }
    
    var serverBackupEnableResource = new ServerBackupEnable("serverBackupEnableResource", ServerBackupEnableArgs.builder()
        .projectId("string")
        .serverId("string")
        .backupPolicyId("string")
        .region("string")
        .build());
    
    server_backup_enable_resource = stackit.ServerBackupEnable("serverBackupEnableResource",
        project_id="string",
        server_id="string",
        backup_policy_id="string",
        region="string")
    
    const serverBackupEnableResource = new stackit.ServerBackupEnable("serverBackupEnableResource", {
        projectId: "string",
        serverId: "string",
        backupPolicyId: "string",
        region: "string",
    });
    
    type: stackit:ServerBackupEnable
    properties:
        backupPolicyId: string
        projectId: string
        region: string
        serverId: string
    

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

    ProjectId string
    STACKIT Project ID to which the server backup enable is associated.
    ServerId string
    Server ID to which the server backup enable is associated.
    BackupPolicyId string
    The backup policy ID.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT Project ID to which the server backup enable is associated.
    ServerId string
    Server ID to which the server backup enable is associated.
    BackupPolicyId string
    The backup policy ID.
    Region string
    The resource region. If not defined, the provider region is used.
    project_id string
    STACKIT Project ID to which the server backup enable is associated.
    server_id string
    Server ID to which the server backup enable is associated.
    backup_policy_id string
    The backup policy ID.
    region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the server backup enable is associated.
    serverId String
    Server ID to which the server backup enable is associated.
    backupPolicyId String
    The backup policy ID.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT Project ID to which the server backup enable is associated.
    serverId string
    Server ID to which the server backup enable is associated.
    backupPolicyId string
    The backup policy ID.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT Project ID to which the server backup enable is associated.
    server_id str
    Server ID to which the server backup enable is associated.
    backup_policy_id str
    The backup policy ID.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the server backup enable is associated.
    serverId String
    Server ID to which the server backup enable is associated.
    backupPolicyId String
    The backup policy ID.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

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

    Enabled bool
    Set to true if the service is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Enabled bool
    Set to true if the service is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    enabled bool
    Set to true if the service is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    enabled Boolean
    Set to true if the service is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    enabled boolean
    Set to true if the service is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    enabled bool
    Set to true if the service is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    enabled Boolean
    Set to true if the service is enabled.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServerBackupEnable Resource

    Get an existing ServerBackupEnable 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?: ServerBackupEnableState, opts?: CustomResourceOptions): ServerBackupEnable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_policy_id: Optional[str] = None,
            enabled: Optional[bool] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            server_id: Optional[str] = None) -> ServerBackupEnable
    func GetServerBackupEnable(ctx *Context, name string, id IDInput, state *ServerBackupEnableState, opts ...ResourceOption) (*ServerBackupEnable, error)
    public static ServerBackupEnable Get(string name, Input<string> id, ServerBackupEnableState? state, CustomResourceOptions? opts = null)
    public static ServerBackupEnable get(String name, Output<String> id, ServerBackupEnableState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ServerBackupEnable    get:      id: ${id}
    import {
      to = stackit_serverbackupenable.example
      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:
    BackupPolicyId string
    The backup policy ID.
    Enabled bool
    Set to true if the service is enabled.
    ProjectId string
    STACKIT Project ID to which the server backup enable is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    Server ID to which the server backup enable is associated.
    BackupPolicyId string
    The backup policy ID.
    Enabled bool
    Set to true if the service is enabled.
    ProjectId string
    STACKIT Project ID to which the server backup enable is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    Server ID to which the server backup enable is associated.
    backup_policy_id string
    The backup policy ID.
    enabled bool
    Set to true if the service is enabled.
    project_id string
    STACKIT Project ID to which the server backup enable is associated.
    region string
    The resource region. If not defined, the provider region is used.
    server_id string
    Server ID to which the server backup enable is associated.
    backupPolicyId String
    The backup policy ID.
    enabled Boolean
    Set to true if the service is enabled.
    projectId String
    STACKIT Project ID to which the server backup enable is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    Server ID to which the server backup enable is associated.
    backupPolicyId string
    The backup policy ID.
    enabled boolean
    Set to true if the service is enabled.
    projectId string
    STACKIT Project ID to which the server backup enable is associated.
    region string
    The resource region. If not defined, the provider region is used.
    serverId string
    Server ID to which the server backup enable is associated.
    backup_policy_id str
    The backup policy ID.
    enabled bool
    Set to true if the service is enabled.
    project_id str
    STACKIT Project ID to which the server backup enable is associated.
    region str
    The resource region. If not defined, the provider region is used.
    server_id str
    Server ID to which the server backup enable is associated.
    backupPolicyId String
    The backup policy ID.
    enabled Boolean
    Set to true if the service is enabled.
    projectId String
    STACKIT Project ID to which the server backup enable is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    Server ID to which the server backup enable is associated.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.6
    published on Wednesday, May 6, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.