Skip to content

Commit b89f01b

Browse files
committed
add doc
1 parent f526883 commit b89f01b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/resources/instance_server.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ attached to the server. Updates to this field will trigger a stop/start of the s
254254

255255
- `replace_on_type_change` - (Defaults to false) If true, the server will be replaced if `type` is changed. Otherwise, the server will migrate.
256256

257+
- `protected` - (Optional) Set to true to activate server protection option.
258+
257259
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the server should be created.
258260

259261
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the server is associated with.

internal/services/instance/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
834834

835835
if d.HasChange("protected") {
836836
serverShouldUpdate = true
837-
updateRequest.Protected = scw.BoolPtr(d.Get("protected").(bool))
837+
updateRequest.Protected = types.ExpandBoolPtr(d.Get("protected").(bool))
838838
}
839839

840840
if d.HasChanges("additional_volume_ids", "root_volume") {

0 commit comments

Comments
 (0)