---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "decort_bservice Resource - terraform-provider-decort"
subcategory: ""
description: |-
  
---

# decort_bservice (Resource)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `rg_id` (Number) ID of the Resource Group where this service will be placed
- `service_name` (String) Name of the service

### Optional

- `enable` (Boolean) Enable service. Enabling a service technically means setting model status of all computes and service itself to ENABLED. It does not start computes.
- `permanently` (Boolean) if set to False, Basic service will be deleted to recycle bin. Otherwise destroyed immediately
- `restore` (Boolean) Restores BasicService instance
- `service_id` (Number)
- `snapshots` (Block List) (see [below for nested schema](#nestedblock--snapshots))
- `ssh_key` (String) SSH key to deploy for the specified user. Same key will be deployed to all computes of the service.
- `ssh_user` (String) name of the user to deploy SSH key for. Pass empty string if no SSH key deployment is required
- `start` (Boolean) Start service. Starting a service technically means starting computes from all service groups according to group relations
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- `account_id` (Number)
- `account_name` (String)
- `base_domain` (String)
- `computes` (List of Object) (see [below for nested schema](#nestedatt--computes))
- `cpu_total` (Number)
- `created_by` (String)
- `created_time` (Number)
- `deleted_by` (String)
- `deleted_time` (Number)
- `disk_total` (Number)
- `gid` (Number)
- `groups` (List of Object) (see [below for nested schema](#nestedatt--groups))
- `guid` (Number)
- `id` (String) The ID of this resource.
- `milestones` (Number)
- `parent_srv_id` (Number)
- `parent_srv_type` (String)
- `ram_total` (Number)
- `rg_name` (String)
- `status` (String)
- `tech_status` (String)
- `updated_by` (String)
- `updated_time` (Number)
- `user_managed` (Boolean)

<a id="nestedblock--snapshots"></a>
### Nested Schema for `snapshots`

Optional:

- `label` (String)
- `rollback` (Boolean)

Read-Only:

- `guid` (String)
- `timestamp` (Number)
- `valid` (Boolean)


<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `create` (String)
- `default` (String)
- `delete` (String)
- `read` (String)
- `update` (String)


<a id="nestedatt--computes"></a>
### Nested Schema for `computes`

Read-Only:

- `account_id` (Number)
- `architecture` (String)
- `compgroup_id` (Number)
- `compgroup_name` (String)
- `compgroup_role` (String)
- `id` (Number)
- `name` (String)
- `rg_id` (Number)
- `stack_id` (Number)
- `status` (String)
- `tech_status` (String)


<a id="nestedatt--groups"></a>
### Nested Schema for `groups`

Read-Only:

- `computes` (Number)
- `consistency` (Boolean)
- `id` (Number)
- `name` (String)
- `status` (String)
- `tech_status` (String)
