File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535)
3636
3737func GetMe (_ * cobra.Command , _ []string ) {
38- common .ManageObjectRequest ("/me" , "" , meTemplate )
38+ common .ManageObjectRequest ("/v1/ me" , "" , meTemplate )
3939}
4040
4141func ListSSHKeys (_ * cobra.Command , _ []string ) {
Original file line number Diff line number Diff line change @@ -1589,7 +1589,7 @@ func (m Model) fetchImages(region string) tea.Cmd {
15891589// deleteInstance deletes an instance by its ID
15901590func (m Model ) deleteInstance (instanceId string ) tea.Cmd {
15911591 return func () tea.Msg {
1592- endpoint := fmt .Sprintf ("/cloud/project/%s/instance/%s" , m .cloudProject , instanceId )
1592+ endpoint := fmt .Sprintf ("/v1/ cloud/project/%s/instance/%s" , m .cloudProject , instanceId )
15931593 err := httpLib .Client .Delete (endpoint , nil )
15941594 if err != nil {
15951595 return instanceDeletedMsg {err : fmt .Errorf ("failed to delete instance: %w" , err )}
@@ -2128,7 +2128,7 @@ func (m Model) cleanupCreatedResources() tea.Cmd {
21282128
21292129 // Delete instance if created
21302130 if m .wizard .createdInstanceId != "" {
2131- endpoint := fmt .Sprintf ("/cloud/project/%s/instance/%s" , m .cloudProject , m .wizard .createdInstanceId )
2131+ endpoint := fmt .Sprintf ("/v1/ cloud/project/%s/instance/%s" , m .cloudProject , m .wizard .createdInstanceId )
21322132 if err := httpLib .Client .Delete (endpoint , nil ); err != nil {
21332133 errors = append (errors , fmt .Sprintf ("Instance: %s" , err ))
21342134 } else {
You can’t perform that action at this time.
0 commit comments