Skip to content

fix(instance): document protected field on Create Server Request #2502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/instance/v1/instance_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -2398,6 +2398,9 @@ type CreateServerRequest struct {

// AdminPasswordEncryptionSSHKeyID: the public_key value of this key is used to encrypt the admin password.
AdminPasswordEncryptionSSHKeyID *string `json:"admin_password_encryption_ssh_key_id,omitempty"`

// Protected: true to activate server protection option.
Protected bool `json:"protected,omitempty"`
}

// CreateServerResponse: create server response.
Expand Down Expand Up @@ -3835,6 +3838,7 @@ type UpdateServerRequest struct {
// Deprecated
EnableIPv6 *bool `json:"enable_ipv6,omitempty"`

// Protected: true to activate server protection option.
Protected *bool `json:"protected,omitempty"`

SecurityGroup *SecurityGroupTemplate `json:"security_group,omitempty"`
Expand Down