Skip to content
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
13 changes: 13 additions & 0 deletions internal/services/applesilicon/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ func ResourceServer() *schema.Resource {
Computed: true,
Description: "The VPC status of the server",
},
"password": {
Type: schema.TypeString,
Computed: true,
Sensitive: true,
Description: "The password of the server",
},
"username": {
Type: schema.TypeString,
Computed: true,
Description: "The username of the server",
},

// Common
"zone": zonal.Schema(),
Expand Down Expand Up @@ -225,6 +236,8 @@ func ResourceAppleSiliconServerRead(ctx context.Context, d *schema.ResourceData,
_ = d.Set("zone", res.Zone.String())
_ = d.Set("organization_id", res.OrganizationID)
_ = d.Set("project_id", res.ProjectID)
_ = d.Set("password", res.SudoPassword)
_ = d.Set("username", res.SSHUsername)

listPrivateNetworks, err := privateNetworkAPI.ListServerPrivateNetworks(&applesilicon.PrivateNetworkAPIListServerPrivateNetworksRequest{
Zone: res.Zone,
Expand Down
Loading