client/lxd_containers.go
func (r *ProtocolLXD) RenameContainerBackup(containerName string, name string, backup api.ContainerBackupPost) (Operation, error) {
	if !r.HasExtension("container_backup") {
		return nil, fmt.Errorf("The server is missing the required \"container_backup\" API extension")
	}

	// Send the request
	op, _, err := r.queryOperation("POST", fmt.Sprintf("/containers/%s/backups/%s",
		url.QueryEscape(containerName), url.QueryEscape(name)), backup, "")
	if err != nil {
		return nil, err
	}

	return op, nil
}
func (r *ProtocolLXD) RenameContainerBackup(containerName string, name string, backup api.ContainerBackupPost) (Operation, error) {
	if !r.HasExtension("container_backup") {
		return nil, fmt.Errorf("The server is missing the required \"container_backup\" API extension")
	}

	// Send the request
	op, _, err := r.queryOperation("POST", fmt.Sprintf("/containers/%s/backups/%s",
		url.QueryEscape(containerName), url.QueryEscape(name)), backup, "")
	if err != nil {
		return nil, err
	}

	return op, nil
}
func ( r * ProtocolLXD ) RenameContainerBackup ( containerName string , name string , backup api . ContainerBackupPost ) ( Operation , error ) { if ! r . HasExtension ( " " ) { return nil , fmt . Errorf ( " \" \" " ) } // Send the request op , _ , err := r . queryOperation ( " " , fmt . Sprintf ( " " , url . QueryEscape ( containerName ) , url . QueryEscape ( name ) ) , backup , " " ) if err != nil { return nil , err } return op , nil }
// RenameContainerBackup requests that LXD renames the backup
RenameContainerBackup requests that LXD renames the backup